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

Function ZSTD_hash8Ptr

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

Source from the content-addressed store, hash-verified

10536static const U64 prime8bytes = 0xCF1BBCDCB7A56463ULL;
10537static size_t ZSTD_hash8(U64 u, U32 h) { return (size_t)(((u) * prime8bytes) >> (64-h)) ; }
10538static size_t ZSTD_hash8Ptr(const void* p, U32 h) { return ZSTD_hash8(MEM_readLE64(p), h); }
10539
10540MEM_STATIC size_t ZSTD_hashPtr(const void* p, U32 hBits, U32 mls)
10541{

Callers 1

ZSTD_hashPtrFunction · 0.70

Calls 2

ZSTD_hash8Function · 0.70
MEM_readLE64Function · 0.70

Tested by

no test coverage detected