14 Commits

Author SHA1 Message Date
Jacek Sieka
ae665d6546
endians2: signed int fix (#163) 2024-12-04 08:33:24 +01:00
Jacek Sieka
b06bb210d9
Refresh endians2 (#160)
* speed up conversions by unrolling bulk limb conversion
* remove default from `toBytes`/`fromBytes` - the existing default did
not match `stew/endians2` which is an unnecessary risk - rather than
changing it to match, the safer option is to remove it for now so that
code in the wild gets a compile error
* deprecate redundant names like `toByteArrayXX` (`toBytesXX` etc do the
same thing)
* deprecate staticFor (now lives in stew)
2024-12-03 13:16:02 +01:00
jangko
13a9d31f9a
rename imp to impl 2023-06-15 14:31:59 +07:00
jangko
747978e1e5
fix misleading comments 2023-06-15 14:08:27 +07:00
jangko
41bfed6bb7
io test 2023-06-14 22:26:44 +07:00
jangko
79ad349fb5
cleanup tests 2023-06-14 09:41:01 +07:00
jangko
0dc6afe9d4
let the tests compileable and run 2023-06-12 21:07:15 +07:00
jangko
63a32129c8
rebase and try to make it works with clients 2023-06-12 20:26:36 +07:00
Mamy Ratsimbazafy
bff69b3f98
Add randomized testing vs GMP 2023-06-12 17:13:35 +07:00
Mamy Ratsimbazafy
4660dfe4a4
Use littleEndian for limb-endianness: bigEndian arch are very rare, untestable in CI, a pain to maintain and an intermediate serialization step instead of casting is cheap 2023-06-12 17:11:14 +07:00
Mamy André-Ratsimbazafy
777a84e9f5
Implement toHex/fromHex and fix shl 2023-06-12 17:08:20 +07:00
Mamy André-Ratsimbazafy
7f6c588ce3
Passing addition tests (however simple bitwise ops crash the int128 VM ... during compilation) 2023-06-12 17:08:20 +07:00
andri lim
d67cee6f8d tidying up compiletime helpers 2019-10-23 21:55:47 +09:00
Jacek Sieka
c5247e9d88
stew updates (#82)
* simplify int api (fixes #68)
* implement endians api
* implement some more bitops
2019-07-22 09:53:58 +02:00