ocaml-containers/tests
Simon Cruanes 5a50d42352 CCInt64.hash: migrate to C stub, add tests
Replace the pure-OCaml FNV-1 implementation in CCInt64 with C stubs
that call the same cc_fnv_hash_int64 core as CCInt.hash:

- hash: int64 -> int via caml_cc_hash_int64 ([@unboxed] + [@@noalloc])
- hash_to_int64: int64 -> int64 via new caml_cc_hash_int64_to_int64
  entry points (masks result to non-negative, needs caml_copy_int64
  for bytecode so cannot be [@@noalloc])

Add 18 tests in t_int64.ml covering:
- Non-negativity of hash and hash_to_int64
- Consistency between hash and hash_to_int64
- Different inputs produce different hashes
- Determinism
- QuickCheck: hash is non-negative for random inputs
2026-02-16 23:58:49 +00:00
..
cbor move to dune 3.0, fix warnings 2024-05-13 21:42:54 -04:00
core CCInt64.hash: migrate to C stub, add tests 2026-02-16 23:58:49 +00:00
data fix (#485) 2026-02-09 21:16:31 -05:00
leb128 fix leb128 slice bug 2026-02-10 15:03:46 -05:00
pvec fix (#485) 2026-02-09 21:16:31 -05:00