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

Function ZSTD_hash6Ptr

freebsd/contrib/zstd/lib/compress/zstd_compress_internal.h:690–690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688static const U64 prime6bytes = 227718039650203ULL;
689static size_t ZSTD_hash6(U64 u, U32 h) { return (size_t)(((u << (64-48)) * prime6bytes) >> (64-h)) ; }
690static size_t ZSTD_hash6Ptr(const void* p, U32 h) { return ZSTD_hash6(MEM_readLE64(p), h); }
691
692static const U64 prime7bytes = 58295818150454627ULL;
693static size_t ZSTD_hash7(U64 u, U32 h) { return (size_t)(((u << (64-56)) * prime7bytes) >> (64-h)) ; }

Callers 2

ZSTD_hashPtrFunction · 0.70
FASTCOVER_hashPtrToIndexFunction · 0.50

Calls 2

ZSTD_hash6Function · 0.70
MEM_readLE64Function · 0.50

Tested by

no test coverage detected