Lines Matching refs:shift
45 size_t shift = i * PAYLOAD_WIDTH;
46 result |= static_cast<T>(byte) << shift;
49 bool is_full = MinimumBitsToStore(byte) <= (BITWIDTH - shift);
109 size_t shift = i * PAYLOAD_WIDTH;
111 result |= static_cast<unsigned_type>(byte & PAYLOAD_MASK) << shift;
114 shift = BITWIDTH - shift;
119 bool is_full = MinimumBitsToStore(masked) <= shift;
120 if (shift > PAYLOAD_WIDTH) {
121 shift -= PAYLOAD_WIDTH;
123 result = static_cast<T>(result << shift) >> shift;