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

Function ZSTD_hash8Ptr

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

Source from the content-addressed store, hash-verified

696static const U64 prime8bytes = 0xCF1BBCDCB7A56463ULL;
697static size_t ZSTD_hash8(U64 u, U32 h) { return (size_t)(((u) * prime8bytes) >> (64-h)) ; }
698static size_t ZSTD_hash8Ptr(const void* p, U32 h) { return ZSTD_hash8(MEM_readLE64(p), h); }
699
700MEM_STATIC FORCE_INLINE_ATTR
701size_t ZSTD_hashPtr(const void* p, U32 hBits, U32 mls)

Callers 2

ZSTD_hashPtrFunction · 0.70
FASTCOVER_hashPtrToIndexFunction · 0.50

Calls 2

ZSTD_hash8Function · 0.70
MEM_readLE64Function · 0.50

Tested by

no test coverage detected