MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / XXH_readLE64

Function XXH_readLE64

libCacheSim/dataStructure/hash/xxhash.h:1723–1729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1721#if (defined(XXH_FORCE_MEMORY_ACCESS) && (XXH_FORCE_MEMORY_ACCESS == 3))
1722
1723XXH_FORCE_INLINE xxh_u64 XXH_readLE64(const void* memPtr) {
1724 const xxh_u8* bytePtr = (const xxh_u8*)memPtr;
1725 return bytePtr[0] | ((xxh_u64)bytePtr[1] << 8) | ((xxh_u64)bytePtr[2] << 16) |
1726 ((xxh_u64)bytePtr[3] << 24) | ((xxh_u64)bytePtr[4] << 32) |
1727 ((xxh_u64)bytePtr[5] << 40) | ((xxh_u64)bytePtr[6] << 48) |
1728 ((xxh_u64)bytePtr[7] << 56);
1729}
1730
1731XXH_FORCE_INLINE xxh_u64 XXH_readBE64(const void* memPtr) {
1732 const xxh_u8* bytePtr = (const xxh_u8*)memPtr;

Calls 2

XXH_read64Function · 0.85
XXH_swap64Function · 0.85

Tested by

no test coverage detected