Lines Matching refs:xxh_u32

1591 typedef XXH32_hash_t xxh_u32;  typedef
1596 # define U32 xxh_u32
1662 static xxh_u32 XXH_read32(const void* memPtr) { return *(const xxh_u32*) memPtr; } in XXH_read32()
1673 typedef union { xxh_u32 u32; } __attribute__((packed)) unalign;
1675 static xxh_u32 XXH_read32(const void* ptr) in XXH_read32()
1677 typedef union { xxh_u32 u32; } __attribute__((packed)) xxh_unalign; in XXH_read32()
1687 static xxh_u32 XXH_read32(const void* memPtr) in XXH_read32()
1689 xxh_u32 val; in XXH_read32()
1740 const union { xxh_u32 u; xxh_u8 c[4]; } one = { 1 }; in XXH_isLittleEndian()
1800 static xxh_u32 XXH_swap32 (xxh_u32 x) in XXH_swap32()
1830 XXH_FORCE_INLINE xxh_u32 XXH_readLE32(const void* memPtr) in XXH_readLE32()
1834 | ((xxh_u32)bytePtr[1] << 8) in XXH_readLE32()
1835 | ((xxh_u32)bytePtr[2] << 16) in XXH_readLE32()
1836 | ((xxh_u32)bytePtr[3] << 24); in XXH_readLE32()
1839 XXH_FORCE_INLINE xxh_u32 XXH_readBE32(const void* memPtr) in XXH_readBE32()
1843 | ((xxh_u32)bytePtr[2] << 8) in XXH_readBE32()
1844 | ((xxh_u32)bytePtr[1] << 16) in XXH_readBE32()
1845 | ((xxh_u32)bytePtr[0] << 24); in XXH_readBE32()
1849 XXH_FORCE_INLINE xxh_u32 XXH_readLE32(const void* ptr) in XXH_readLE32()
1854 static xxh_u32 XXH_readBE32(const void* ptr) in XXH_readBE32()
1860 XXH_FORCE_INLINE xxh_u32
1866 return XXH_CPU_LITTLE_ENDIAN ? *(const xxh_u32*)ptr : XXH_swap32(*(const xxh_u32*)ptr); in XXH_readLE32_align()
1913 static xxh_u32 XXH32_round(xxh_u32 acc, xxh_u32 input) in XXH32_round()
1967 static xxh_u32 XXH32_avalanche(xxh_u32 h32) in XXH32_avalanche()
1993 static xxh_u32
1994 XXH32_finalize(xxh_u32 h32, const xxh_u8* ptr, size_t len, XXH_alignment align) in XXH32_finalize()
2082 XXH_FORCE_INLINE xxh_u32
2083 XXH32_endian_align(const xxh_u8* input, size_t len, xxh_u32 seed, XXH_alignment align) in XXH32_endian_align()
2085 xxh_u32 h32; in XXH32_endian_align()
2092 xxh_u32 v1 = seed + XXH_PRIME32_1 + XXH_PRIME32_2; in XXH32_endian_align()
2093 xxh_u32 v2 = seed + XXH_PRIME32_2; in XXH32_endian_align()
2094 xxh_u32 v3 = seed + 0; in XXH32_endian_align()
2095 xxh_u32 v4 = seed - XXH_PRIME32_1; in XXH32_endian_align()
2110 h32 += (xxh_u32)len; in XXH32_endian_align()
2195 { const xxh_u32* p32 = state->mem32; in XXH32_update()
2230 xxh_u32 h32; in XXH32_digest()
2316 typedef union { xxh_u32 u32; xxh_u64 u64; } __attribute__((packed)) unalign64;
2320 typedef union { xxh_u32 u32; xxh_u64 u64; } __attribute__((packed)) xxh_unalign64; in XXH_read64()
2603 state->memsize += (xxh_u32)len; in XXH64_update()
3225 # define XXH_mult32to64(x, y) ((xxh_u64)(xxh_u32)(x) * (xxh_u64)(xxh_u32)(y))
3460 xxh_u32 const combined = ((xxh_u32)c1 << 16) | ((xxh_u32)c2 << 24) in XXH3_len_1to3_64b()
3461 | ((xxh_u32)c3 << 0) | ((xxh_u32)len << 8); in XXH3_len_1to3_64b()
3474 seed ^= (xxh_u64)XXH_swap32((xxh_u32)seed) << 32; in XXH3_len_4to8_64b()
3475 { xxh_u32 const input1 = XXH_readLE32(input); in XXH3_len_4to8_64b()
3476 xxh_u32 const input2 = XXH_readLE32(input + len - 4); in XXH3_len_4to8_64b()
4995 xxh_u32 const combinedl = ((xxh_u32)c1 <<16) | ((xxh_u32)c2 << 24) in XXH3_len_1to3_128b()
4996 | ((xxh_u32)c3 << 0) | ((xxh_u32)len << 8); in XXH3_len_1to3_128b()
4997 xxh_u32 const combinedh = XXH_rotl32(XXH_swap32(combinedl), 13); in XXH3_len_1to3_128b()
5015 seed ^= (xxh_u64)XXH_swap32((xxh_u32)seed) << 32; in XXH3_len_4to8_128b()
5016 { xxh_u32 const input_lo = XXH_readLE32(input); in XXH3_len_4to8_128b()
5017 xxh_u32 const input_hi = XXH_readLE32(input + len - 4); in XXH3_len_4to8_128b()
5067 …m128.high64 += (input_hi & 0xFFFFFFFF00000000ULL) + XXH_mult32to64((xxh_u32)input_hi, XXH_PRIME32_… in XXH3_len_9to16_128b()
5093 m128.high64 += input_hi + XXH_mult32to64((xxh_u32)input_hi, XXH_PRIME32_2 - 1); in XXH3_len_9to16_128b()