Lines Matching refs:lsbit
22 const uint32_t lsbit) { in Bits64() argument
23 assert(msbit < 64 && lsbit <= msbit); in Bits64()
24 return (bits >> lsbit) & ((1ull << (msbit - lsbit + 1)) - 1); in Bits64()
30 const uint32_t lsbit) { in Bits32() argument
31 assert(msbit < 32 && lsbit <= msbit); in Bits32()
32 return (bits >> lsbit) & ((1u << (msbit - lsbit + 1)) - 1); in Bits32()
47 const uint32_t lsbit, const uint32_t val) { in SetBits32() argument
48 assert(msbit < 32 && lsbit < 32 && msbit >= lsbit); in SetBits32()
49 uint32_t mask = ((1u << (msbit - lsbit + 1)) - 1); in SetBits32()
50 bits &= ~(mask << lsbit); in SetBits32()
51 bits |= (val & mask) << lsbit; in SetBits32()
98 const uint64_t lsbit) { in UnsignedBits() argument
99 uint64_t result = value >> lsbit; in UnsignedBits()
100 result &= MaskUpToBit(msbit - lsbit); in UnsignedBits()
105 const uint64_t lsbit) { in SignedBits() argument
106 uint64_t result = UnsignedBits(value, msbit, lsbit); in SignedBits()
109 result |= ~MaskUpToBit(msbit - lsbit); in SignedBits()