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

Function ZSTD_hash5Ptr

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

Source from the content-addressed store, hash-verified

10524static const U64 prime5bytes = 889523592379ULL;
10525static size_t ZSTD_hash5(U64 u, U32 h) { return (size_t)(((u << (64-40)) * prime5bytes) >> (64-h)) ; }
10526static size_t ZSTD_hash5Ptr(const void* p, U32 h) { return ZSTD_hash5(MEM_readLE64(p), h); }
10527
10528static const U64 prime6bytes = 227718039650203ULL;
10529static size_t ZSTD_hash6(U64 u, U32 h) { return (size_t)(((u << (64-48)) * prime6bytes) >> (64-h)) ; }

Callers 1

ZSTD_hashPtrFunction · 0.70

Calls 2

ZSTD_hash5Function · 0.70
MEM_readLE64Function · 0.70

Tested by

no test coverage detected