Lines Matching refs:bit
1127 RegisterValue::ClearBit (uint32_t bit)
1135 if (bit < 8)
1137 m_data.uint8 &= ~(1u << bit);
1143 if (bit < 16)
1145 m_data.uint16 &= ~(1u << bit);
1151 if (bit < 32)
1153 m_data.uint32 &= ~(1u << bit);
1159 if (bit < 64)
1161 m_data.uint64 &= ~(1ull << (uint64_t)bit);
1167 if (bit < 64)
1169 m_data.uint128 &= ~((__uint128_t)1ull << (__uint128_t)bit);
1183 byte_idx = m_data.buffer.length - (bit / 8) - 1;
1185 byte_idx = bit / 8;
1187 const uint32_t byte_bit = bit % 8;
1201 RegisterValue::SetBit (uint32_t bit)
1209 if (bit < 8)
1211 m_data.uint8 |= (1u << bit);
1217 if (bit < 16)
1219 m_data.uint16 |= (1u << bit);
1225 if (bit < 32)
1227 m_data.uint32 |= (1u << bit);
1233 if (bit < 64)
1235 m_data.uint64 |= (1ull << (uint64_t)bit);
1241 if (bit < 64)
1243 m_data.uint128 |= ((__uint128_t)1ull << (__uint128_t)bit);
1257 byte_idx = m_data.buffer.length - (bit / 8) - 1;
1259 byte_idx = bit / 8;
1261 const uint32_t byte_bit = bit % 8;