Searched refs:IsPowerOf2 (Results 1 – 5 of 5) sorted by relevance
25 static_assert(IsPowerOf2(sizeof(void*)));26 static_assert(!IsPowerOf2(sizeof(void*) + 1));28 static_assert(IsPowerOf2(RawInt8(4)));29 static_assert(IsPowerOf2(SatInt8(4)));30 static_assert(IsPowerOf2(Int8(4)));
42 constexpr bool IsPowerOf2(T x) { in IsPowerOf2() function49 constexpr bool IsPowerOf2(Raw<T> x) { in IsPowerOf2() function50 return IsPowerOf2(x.value); in IsPowerOf2()54 constexpr bool IsPowerOf2(Saturating<T> x) { in IsPowerOf2() function55 return IsPowerOf2(x.value); in IsPowerOf2()59 constexpr bool IsPowerOf2(Wrapping<T> x) { in IsPowerOf2() function60 return IsPowerOf2(x.value); in IsPowerOf2()66 static_assert(IsPowerOf2(kAlign)); in AlignDown()74 DCHECK(IsPowerOf2(align)); in AlignDown()179 CHECK(IsPowerOf2(x)); in BitUtilLog2()
46 CHECK(IsPowerOf2(align)); in Allocate()
388 CHECK(berberis::IsPowerOf2(align)); in ReserveAddressSpace()
501 if (!IsPowerOf2(args.nf + 1)) { in OpVector()521 if (!IsPowerOf2(args.nf + 1)) { in OpVector()