Commit Graph

2 Commits

Author SHA1 Message Date
Julien Fischer
6330b51b61 Implement checked division for uints.
library/uint.m:
     Add (//)/2, (/)/2 and rem/2 for uints.

     Add mod/2 and div/2 as synonyms for the above.

tests/hard_coded/uint_arith.m
     Enable the division tests.

tests/hard_coded/uint_bitwise.exp*:
     Update the expected outputs.
2017-05-12 21:59:36 +10:00
Julien Fischer
0a7cf0f261 Add a test of basic arithmetic on uints.
tests/hard_coded/Mmakefile:
tests/hard_coded/uint_arith.m:
tests/hard_coded/uint_arith.exp*:
     As above.  (The .exp file is for 64-bit machines; the .exp2 for
     32-bit.)
2017-04-26 16:29:55 +10:00