Lines Matching refs:xxh_u32

1622 typedef XXH32_hash_t xxh_u32;  typedef
1627 # define U32 xxh_u32
1693 static xxh_u32 XXH_read32(const void* memPtr) { return *(const xxh_u32*) memPtr; } in XXH_read32()
1704 typedef union { xxh_u32 u32; } __attribute__((packed)) unalign;
1706 static xxh_u32 XXH_read32(const void* ptr) in XXH_read32()
1708 typedef union { xxh_u32 u32; } __attribute__((packed)) xxh_unalign; in XXH_read32()
1718 static xxh_u32 XXH_read32(const void* memPtr) in XXH_read32()
1720 xxh_u32 val; in XXH_read32()
1771 const union { xxh_u32 u; xxh_u8 c[4]; } one = { 1 }; in XXH_isLittleEndian()
1831 static xxh_u32 XXH_swap32 (xxh_u32 x) in XXH_swap32()
1861 XXH_FORCE_INLINE xxh_u32 XXH_readLE32(const void* memPtr) in XXH_readLE32()
1865 | ((xxh_u32)bytePtr[1] << 8) in XXH_readLE32()
1866 | ((xxh_u32)bytePtr[2] << 16) in XXH_readLE32()
1867 | ((xxh_u32)bytePtr[3] << 24); in XXH_readLE32()
1870 XXH_FORCE_INLINE xxh_u32 XXH_readBE32(const void* memPtr) in XXH_readBE32()
1874 | ((xxh_u32)bytePtr[2] << 8) in XXH_readBE32()
1875 | ((xxh_u32)bytePtr[1] << 16) in XXH_readBE32()
1876 | ((xxh_u32)bytePtr[0] << 24); in XXH_readBE32()
1880 XXH_FORCE_INLINE xxh_u32 XXH_readLE32(const void* ptr) in XXH_readLE32()
1885 static xxh_u32 XXH_readBE32(const void* ptr) in XXH_readBE32()
1891 XXH_FORCE_INLINE xxh_u32
1897 return XXH_CPU_LITTLE_ENDIAN ? *(const xxh_u32*)ptr : XXH_swap32(*(const xxh_u32*)ptr); in XXH_readLE32_align()
1944 static xxh_u32 XXH32_round(xxh_u32 acc, xxh_u32 input) in XXH32_round()
1998 static xxh_u32 XXH32_avalanche(xxh_u32 h32) in XXH32_avalanche()
2024 static xxh_u32
2025 XXH32_finalize(xxh_u32 h32, const xxh_u8* ptr, size_t len, XXH_alignment align) in XXH32_finalize()
2113 XXH_FORCE_INLINE xxh_u32
2114 XXH32_endian_align(const xxh_u8* input, size_t len, xxh_u32 seed, XXH_alignment align) in XXH32_endian_align()
2116 xxh_u32 h32; in XXH32_endian_align()
2123 xxh_u32 v1 = seed + XXH_PRIME32_1 + XXH_PRIME32_2; in XXH32_endian_align()
2124 xxh_u32 v2 = seed + XXH_PRIME32_2; in XXH32_endian_align()
2125 xxh_u32 v3 = seed + 0; in XXH32_endian_align()
2126 xxh_u32 v4 = seed - XXH_PRIME32_1; in XXH32_endian_align()
2141 h32 += (xxh_u32)len; in XXH32_endian_align()
2226 { const xxh_u32* p32 = state->mem32; in XXH32_update()
2261 xxh_u32 h32; in XXH32_digest()
2347 typedef union { xxh_u32 u32; xxh_u64 u64; } __attribute__((packed)) unalign64;
2351 typedef union { xxh_u32 u32; xxh_u64 u64; } __attribute__((packed)) xxh_unalign64; in XXH_read64()
2634 state->memsize += (xxh_u32)len; in XXH64_update()
3256 # define XXH_mult32to64(x, y) ((xxh_u64)(xxh_u32)(x) * (xxh_u64)(xxh_u32)(y))
3491 xxh_u32 const combined = ((xxh_u32)c1 << 16) | ((xxh_u32)c2 << 24) in XXH3_len_1to3_64b()
3492 | ((xxh_u32)c3 << 0) | ((xxh_u32)len << 8); in XXH3_len_1to3_64b()
3505 seed ^= (xxh_u64)XXH_swap32((xxh_u32)seed) << 32; in XXH3_len_4to8_64b()
3506 { xxh_u32 const input1 = XXH_readLE32(input); in XXH3_len_4to8_64b()
3507 xxh_u32 const input2 = XXH_readLE32(input + len - 4); in XXH3_len_4to8_64b()
5026 xxh_u32 const combinedl = ((xxh_u32)c1 <<16) | ((xxh_u32)c2 << 24) in XXH3_len_1to3_128b()
5027 | ((xxh_u32)c3 << 0) | ((xxh_u32)len << 8); in XXH3_len_1to3_128b()
5028 xxh_u32 const combinedh = XXH_rotl32(XXH_swap32(combinedl), 13); in XXH3_len_1to3_128b()
5046 seed ^= (xxh_u64)XXH_swap32((xxh_u32)seed) << 32; in XXH3_len_4to8_128b()
5047 { xxh_u32 const input_lo = XXH_readLE32(input); in XXH3_len_4to8_128b()
5048 xxh_u32 const input_hi = XXH_readLE32(input + len - 4); in XXH3_len_4to8_128b()
5098 …m128.high64 += (input_hi & 0xFFFFFFFF00000000ULL) + XXH_mult32to64((xxh_u32)input_hi, XXH_PRIME32_… in XXH3_len_9to16_128b()
5124 m128.high64 += input_hi + XXH_mult32to64((xxh_u32)input_hi, XXH_PRIME32_2 - 1); in XXH3_len_9to16_128b()