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
28b9348b26 Add tests of basic arithmetic for 8-bit integers.
tests/hard_coded/arith_int8.{m,exp}:
tests/hard_coded/arith_uint8.{m,exp}:
tests/hard_coded/Mmakefile:
     As above.
2017-08-21 21:27:01 +10:00