Commit Graph

1 Commits

Author SHA1 Message Date
Julien Fischer
678922eba0 Add more operations on 8-bit integers.
library/int8.m:
library/uint8.m:
     Add num_zeros/1, num_ones/1, num_leading_zeros/1, num_trailing_zeros/1 and
     reverse_bits/1.

library/int16.m:
     Implement num_trailing_zeros/1 by calling the unsigned version.

tests/hard_coded/Mmakefile:
tests/hard_coded/bit_twiddle_int8.{m,exp}:
tests/hard_coded/bit_twiddle_uint8.{m,exp}:
     Add tests of the new operations.
2018-04-02 12:17:30 +10:00