Lines Matching refs:BitSizeOf
32 constexpr size_t BitSizeOf() { in BitSizeOf() function
42 constexpr size_t BitSizeOf(T /*x*/) { in BitSizeOf() function
43 return BitSizeOf<T>(); in BitSizeOf()
65 return (x == 0) ? BitSizeOf<T>() : CLZ(static_cast<unsigned_type>(x)); in JAVASTYLE_CLZ()
84 return (x == 0) ? BitSizeOf<T>() : CTZ(static_cast<unsigned_type>(x)); in JAVASTYLE_CTZ()
141 return (val != 0) ? static_cast<T>(1u) << (BitSizeOf<T>() - CLZ(val) - 1u) : 0; in TruncToPowerOfTwo()
247 if (N == BitSizeOf<T>()) { in IsInt()
251 CHECK_LT(N, BitSizeOf<T>()); in IsInt()
260 DCHECK_LT(bits, BitSizeOf<T>()); in GetIntLimit()
267 static_assert(kBits <= BitSizeOf<T>(), "kBits must be <= max."); in IsInt()
271 return (kBits == BitSizeOf<T>()) ? in IsInt()
279 static_assert(kBits <= BitSizeOf<T>(), "kBits must be <= max."); in IsUint()
287 (kBits == BitSizeOf<T>() || in IsUint()
293 static_assert(kBits <= BitSizeOf<T>(), "kBits must be <= max."); in IsAbsoluteUint()
296 return (kBits == BitSizeOf<T>()) in IsAbsoluteUint()
307 DCHECK_LE(bits, BitSizeOf<T>()); in MaxInt()
309 return bits == BitSizeOf<T>() in MaxInt()
319 DCHECK_LE(bits, BitSizeOf<T>()); in MinInt()
320 return bits == BitSizeOf<T>() in MinInt()
342 int bit_position = BitSizeOf<T>() - (CLZ(static_cast<unsigned_type>(opnd)) + 1); in HighestOneBitValue()
351 int mask = BitSizeOf<T>() - 1; in Rot()
392 DCHECK_GE(BitSizeOf<T>(), bits) << "Bits out of range for type T"; in MaskLeastSignificant()
394 if (bits >= BitSizeOf<T>()) { in MaskLeastSignificant()
419 DCHECK_GE(BitSizeOf(value), lsb + width) << "Bit field out of range for value"; in BitFieldClear()
446 DCHECK_GE(BitSizeOf(value), lsb + width) << "Bit field out of range for value"; in BitFieldInsert()
483 DCHECK_GE(BitSizeOf(value), lsb + width) << "Bit field out of range for value"; in BitFieldExtract()