• Home
  • Raw
  • Download

Lines Matching refs:U32

149     typedef uint32_t U32;  typedef
153 typedef unsigned int U32; typedef
160 static U32 XXH_read32(const void* memPtr) { return *(const U32*) memPtr; } in XXH_read32()
166 typedef union { U32 u32; } __attribute__((packed)) unalign;
167 static U32 XXH_read32(const void* ptr) { return ((const unalign*)ptr)->u32; } in XXH_read32()
174 static U32 XXH_read32(const void* memPtr) in XXH_read32()
176 U32 val; in XXH_read32()
203 static U32 XXH_swap32 (U32 x) in XXH_swap32()
222 … const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ in XXH_isLittleEndian()
234 FORCE_INLINE U32 XXH_readLE32_align(const void* ptr, XXH_endianess endian, XXH_alignment align) in XXH_readLE32_align()
239 return endian==XXH_littleEndian ? *(const U32*)ptr : XXH_swap32(*(const U32*)ptr); in XXH_readLE32_align()
242 FORCE_INLINE U32 XXH_readLE32(const void* ptr, XXH_endianess endian) in XXH_readLE32()
247 static U32 XXH_readBE32(const void* ptr) in XXH_readBE32()
263 static const U32 PRIME32_1 = 2654435761U;
264 static const U32 PRIME32_2 = 2246822519U;
265 static const U32 PRIME32_3 = 3266489917U;
266 static const U32 PRIME32_4 = 668265263U;
267 static const U32 PRIME32_5 = 374761393U;
269 static U32 XXH32_round(U32 seed, U32 input) in XXH32_round()
278 static U32 XXH32_avalanche(U32 h32) in XXH32_avalanche()
290 static U32
291 XXH32_finalize(U32 h32, const void* ptr, size_t len, in XXH32_finalize()
351 FORCE_INLINE U32
352 XXH32_endian_align(const void* input, size_t len, U32 seed, in XXH32_endian_align()
357 U32 h32; in XXH32_endian_align()
368 U32 v1 = seed + PRIME32_1 + PRIME32_2; in XXH32_endian_align()
369 U32 v2 = seed + PRIME32_2; in XXH32_endian_align()
370 U32 v3 = seed + 0; in XXH32_endian_align()
371 U32 v4 = seed - PRIME32_1; in XXH32_endian_align()
386 h32 += (U32)len; in XXH32_endian_align()
475 { const U32* p32 = state->mem32; in XXH32_update_endian()
487 U32 v1 = state->v1; in XXH32_update_endian()
488 U32 v2 = state->v2; in XXH32_update_endian()
489 U32 v3 = state->v3; in XXH32_update_endian()
490 U32 v4 = state->v4; in XXH32_update_endian()
526 FORCE_INLINE U32
529 U32 h32; in XXH32_digest_endian()
609 typedef union { U32 u32; U64 u64; } __attribute__((packed)) unalign64;
928 state->memsize += (U32)len; in XXH64_update_endian()