Commit Graph

2 Commits

Author SHA1 Message Date
Julien Fischer
c23ace77c8 Absolute value for fixed size signed integers.
library/int8.m:
library/int16.m:
library/int32.m:
    Implement abs/1, unchecked_abs/1 and nabs/1 for int8, in16 and int32.

tests/hard_coded/arith_int{8,16,32}.{m,exp}:
    Extend these tests to cover abs and nabs.
2018-01-14 19:54:26 -05:00
Julien Fischer
90cf8ee2f9 Add tests of basic arithmetic for 32-bit integers.
tests/hard_coded/Mmakefile:
tests/hard_coded/arith_int32.{m,exp}:
tests/hard_coded/arith-_uint32.{m,exp}:
     As above.
2017-08-22 22:05:24 +10:00