Lines Matching refs:val

374     U16 val;  in LZ4_read16()  local
375 LZ4_memcpy(&val, memPtr, sizeof(val)); in LZ4_read16()
376 return val; in LZ4_read16()
381 U32 val; in LZ4_read32() local
382 LZ4_memcpy(&val, memPtr, sizeof(val)); in LZ4_read32()
383 return val; in LZ4_read32()
388 reg_t val; in LZ4_read_ARCH() local
389 LZ4_memcpy(&val, memPtr, sizeof(val)); in LZ4_read_ARCH()
390 return val; in LZ4_read_ARCH()
553 static unsigned LZ4_NbCommonBytes(reg_t val) in LZ4_NbCommonBytes() argument
555 assert(val != 0); in LZ4_NbCommonBytes()
558 if (sizeof(val) == 8) in LZ4_NbCommonBytes()
562 return (unsigned)_tzcnt_u64(val) >> 3; in LZ4_NbCommonBytes()
565 _BitScanForward64(&r, (U64)val); in LZ4_NbCommonBytes()
570 return (unsigned)__builtin_ctzll((U64)val) >> 3; in LZ4_NbCommonBytes()
573 val ^= val - 1; in LZ4_NbCommonBytes()
574 return (unsigned)(((U64)((val & (m - 1)) * m)) >> 56); in LZ4_NbCommonBytes()
581 _BitScanForward(&r, (U32)val); in LZ4_NbCommonBytes()
586 return (unsigned)__builtin_ctz((U32)val) >> 3; in LZ4_NbCommonBytes()
589 return (unsigned)((((val - 1) ^ val) & (m - 1)) * m) >> 24; in LZ4_NbCommonBytes()
595 if (sizeof(val) == 8) in LZ4_NbCommonBytes()
600 return (unsigned)__clzll((U64)val) >> 3; in LZ4_NbCommonBytes()
736 U64 const t = (((val >> 8) - mask) | val) & mask; in LZ4_NbCommonBytes()
742 static const U32 by32 = sizeof(val) * 4; /* 32 on 64 bits (goal), 16 on 32 bits. in LZ4_NbCommonBytes()
746 if (!(val >> by32)) in LZ4_NbCommonBytes()
753 val >>= by32; in LZ4_NbCommonBytes()
755 if (!(val >> 16)) in LZ4_NbCommonBytes()
758 val >>= 8; in LZ4_NbCommonBytes()
762 val >>= 24; in LZ4_NbCommonBytes()
764 r += (!val); in LZ4_NbCommonBytes()
774 return (unsigned)__clz((U32)val) >> 3; in LZ4_NbCommonBytes()
776 val >>= 8; in LZ4_NbCommonBytes()
777 val = ((((val + 0x00FFFF00) | 0x00FFFFFF) + val) | in LZ4_NbCommonBytes()
778 (val + 0x00FF0000)) >> in LZ4_NbCommonBytes()
780 return (unsigned)val ^ 3; in LZ4_NbCommonBytes()