Lines Matching refs:xxh_u32

1567 typedef XXH32_hash_t xxh_u32;  typedef
1572 # define U32 xxh_u32
1638 static xxh_u32 XXH_read32(const void* memPtr) { return *(const xxh_u32*) memPtr; } in XXH_read32()
1649 typedef union { xxh_u32 u32; } __attribute__((packed)) unalign;
1651 static xxh_u32 XXH_read32(const void* ptr) in XXH_read32()
1653 typedef union { xxh_u32 u32; } __attribute__((packed)) xxh_unalign; in XXH_read32()
1663 static xxh_u32 XXH_read32(const void* memPtr) in XXH_read32()
1665 xxh_u32 val; in XXH_read32()
1716 const union { xxh_u32 u; xxh_u8 c[4]; } one = { 1 }; in XXH_isLittleEndian()
1776 static xxh_u32 XXH_swap32 (xxh_u32 x) in XXH_swap32()
1806 XXH_FORCE_INLINE xxh_u32 XXH_readLE32(const void* memPtr) in XXH_readLE32()
1810 | ((xxh_u32)bytePtr[1] << 8) in XXH_readLE32()
1811 | ((xxh_u32)bytePtr[2] << 16) in XXH_readLE32()
1812 | ((xxh_u32)bytePtr[3] << 24); in XXH_readLE32()
1815 XXH_FORCE_INLINE xxh_u32 XXH_readBE32(const void* memPtr) in XXH_readBE32()
1819 | ((xxh_u32)bytePtr[2] << 8) in XXH_readBE32()
1820 | ((xxh_u32)bytePtr[1] << 16) in XXH_readBE32()
1821 | ((xxh_u32)bytePtr[0] << 24); in XXH_readBE32()
1825 XXH_FORCE_INLINE xxh_u32 XXH_readLE32(const void* ptr) in XXH_readLE32()
1830 static xxh_u32 XXH_readBE32(const void* ptr) in XXH_readBE32()
1836 XXH_FORCE_INLINE xxh_u32
1842 return XXH_CPU_LITTLE_ENDIAN ? *(const xxh_u32*)ptr : XXH_swap32(*(const xxh_u32*)ptr); in XXH_readLE32_align()
1889 static xxh_u32 XXH32_round(xxh_u32 acc, xxh_u32 input) in XXH32_round()
1943 static xxh_u32 XXH32_avalanche(xxh_u32 h32) in XXH32_avalanche()
1969 static xxh_u32
1970 XXH32_finalize(xxh_u32 h32, const xxh_u8* ptr, size_t len, XXH_alignment align) in XXH32_finalize()
2058 XXH_FORCE_INLINE xxh_u32
2059 XXH32_endian_align(const xxh_u8* input, size_t len, xxh_u32 seed, XXH_alignment align) in XXH32_endian_align()
2061 xxh_u32 h32; in XXH32_endian_align()
2068 xxh_u32 v1 = seed + XXH_PRIME32_1 + XXH_PRIME32_2; in XXH32_endian_align()
2069 xxh_u32 v2 = seed + XXH_PRIME32_2; in XXH32_endian_align()
2070 xxh_u32 v3 = seed + 0; in XXH32_endian_align()
2071 xxh_u32 v4 = seed - XXH_PRIME32_1; in XXH32_endian_align()
2086 h32 += (xxh_u32)len; in XXH32_endian_align()
2169 { const xxh_u32* p32 = state->mem32; in XXH32_update()
2204 xxh_u32 h32; in XXH32_digest()
2290 typedef union { xxh_u32 u32; xxh_u64 u64; } __attribute__((packed)) unalign64;
2294 typedef union { xxh_u32 u32; xxh_u64 u64; } __attribute__((packed)) xxh_unalign64; in XXH_read64()
2575 state->memsize += (xxh_u32)len; in XXH64_update()
3246 # define XXH_mult32to64(x, y) ((xxh_u64)(xxh_u32)(x) * (xxh_u64)(xxh_u32)(y))
3481 xxh_u32 const combined = ((xxh_u32)c1 << 16) | ((xxh_u32)c2 << 24) in XXH3_len_1to3_64b()
3482 | ((xxh_u32)c3 << 0) | ((xxh_u32)len << 8); in XXH3_len_1to3_64b()
3495 seed ^= (xxh_u64)XXH_swap32((xxh_u32)seed) << 32; in XXH3_len_4to8_64b()
3496 { xxh_u32 const input1 = XXH_readLE32(input); in XXH3_len_4to8_64b()
3497 xxh_u32 const input2 = XXH_readLE32(input + len - 4); in XXH3_len_4to8_64b()
5097 xxh_u32 const combinedl = ((xxh_u32)c1 <<16) | ((xxh_u32)c2 << 24) in XXH3_len_1to3_128b()
5098 | ((xxh_u32)c3 << 0) | ((xxh_u32)len << 8); in XXH3_len_1to3_128b()
5099 xxh_u32 const combinedh = XXH_rotl32(XXH_swap32(combinedl), 13); in XXH3_len_1to3_128b()
5117 seed ^= (xxh_u64)XXH_swap32((xxh_u32)seed) << 32; in XXH3_len_4to8_128b()
5118 { xxh_u32 const input_lo = XXH_readLE32(input); in XXH3_len_4to8_128b()
5119 xxh_u32 const input_hi = XXH_readLE32(input + len - 4); in XXH3_len_4to8_128b()
5169 …m128.high64 += (input_hi & 0xFFFFFFFF00000000ULL) + XXH_mult32to64((xxh_u32)input_hi, XXH_PRIME32_… in XXH3_len_9to16_128b()
5195 m128.high64 += input_hi + XXH_mult32to64((xxh_u32)input_hi, XXH_PRIME32_2 - 1); in XXH3_len_9to16_128b()