Commit Graph

2 Commits

Author SHA1 Message Date
Peter Wang
ecdf8ae7dd Fix typos in test cases.
tests/hard_coded/bit_twiddle_int16.exp:
tests/hard_coded/bit_twiddle_int16.m:
tests/hard_coded/bitwise_int32.exp:
tests/hard_coded/bitwise_int32.m:
    Fix typos in test cases and update expected outputs.
2018-10-29 10:20:48 +11:00
Julien Fischer
ee76350044 Add more operations on 16-bit integers.
library/int16.m:
library/uint16.m:
    Add num_zeros/1, num_ones/1, num_leading_zeros/1, num_trailing_zeros/1
    and reverse_bits/1.

tests/hard_coded/Mmakefile:
tests/hard_coded/bit_twiddle_uint16.{m,exp}:
tests/hard_coded/bit_twiddle_int16.{m,exp}:
    Add tests of the above.
2018-03-31 22:29:25 +11:00