Lines Matching refs:startBit
87 inline value_type readAtBitAlignment(const void *memory, uint64_t startBit) { in readAtBitAlignment() argument
88 assert(startBit < 8); in readAtBitAlignment()
89 if (startBit == 0) in readAtBitAlignment()
102 make_unsigned_t<value_type> lowerVal = val[0] >> startBit; in readAtBitAlignment()
105 (sizeof(value_type) * 8) - startBit; in readAtBitAlignment()
110 val[1] & (((make_unsigned_t<value_type>)1 << startBit) - 1); in readAtBitAlignment()
122 uint64_t startBit) { in writeAtBitAlignment() argument
123 assert(startBit < 8); in writeAtBitAlignment()
124 if (startBit == 0) in writeAtBitAlignment()
138 val[0] &= ((make_unsigned_t<value_type>)1 << startBit) - 1; in writeAtBitAlignment()
140 (sizeof(value_type) * 8) - startBit; in writeAtBitAlignment()
142 if (startBit > 0) { in writeAtBitAlignment()
148 lowerVal <<= startBit; in writeAtBitAlignment()
154 val[1] &= ~(((make_unsigned_t<value_type>)1 << startBit) - 1); in writeAtBitAlignment()
158 upperVal &= ((make_unsigned_t<value_type>)1 << startBit) - 1; in writeAtBitAlignment()