inline the primitive numeric operations
auto merge of #6034 : thestinger/rust/num, r=catamorphism,pcwalton