MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ZSTD_hash6Ptr

Function ZSTD_hash6Ptr

freebsd/contrib/openzfs/module/zstd/lib/zstd.c:10530–10530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10528static const U64 prime6bytes = 227718039650203ULL;
10529static size_t ZSTD_hash6(U64 u, U32 h) { return (size_t)(((u << (64-48)) * prime6bytes) >> (64-h)) ; }
10530static size_t ZSTD_hash6Ptr(const void* p, U32 h) { return ZSTD_hash6(MEM_readLE64(p), h); }
10531
10532static const U64 prime7bytes = 58295818150454627ULL;
10533static size_t ZSTD_hash7(U64 u, U32 h) { return (size_t)(((u << (64-56)) * prime7bytes) >> (64-h)) ; }

Callers 1

ZSTD_hashPtrFunction · 0.70

Calls 2

ZSTD_hash6Function · 0.70
MEM_readLE64Function · 0.70

Tested by

no test coverage detected