Searched refs:isPowerOfTwo (Results 1 – 9 of 9) sorted by relevance
31 inline constexpr bool isPowerOfTwo(uptr X) { return (X & (X - 1)) == 0; } in isPowerOfTwo() function34 DCHECK(isPowerOfTwo(Boundary)); in roundUp()42 DCHECK(isPowerOfTwo(Boundary)); in roundDown()50 DCHECK(isPowerOfTwo(Alignment)); in isAligned()74 if (isPowerOfTwo(Size)) in roundUpPowerOfTwo()88 DCHECK(isPowerOfTwo(X)); in getLog2()
34 return Alignment == 0 || !isPowerOfTwo(Alignment) || in checkAlignedAllocAlignmentAndSize()41 return Alignment == 0 || !isPowerOfTwo(Alignment) || in checkPosixMemalignAlignment()
130 if (UNLIKELY(!scudo::isPowerOfTwo(alignment)))134 if (UNLIKELY(!scudo::isPowerOfTwo(alignment))) {
38 bool isPowerOfTwo(uintptr_t X) { return (X & (X - 1)) == 0; } in isPowerOfTwo() function171 assert(isPowerOfTwo(Alignment) && "Alignment must be a power of two!"); in getRequiredBackingSize()182 assert(isPowerOfTwo(Alignment) && "Alignment must be a power of two!"); in alignUp()192 assert(isPowerOfTwo(Alignment) && "Alignment must be a power of two!"); in alignDown()216 if (!isPowerOfTwo(Alignment) || Alignment > State.maximumAllocationSize() || in allocate()
643 int isPowerOfTwo(FICL_UNS u) in isPowerOfTwo() function672 pwr = isPowerOfTwo((FICL_UNS)radix); in ltoa()
658 int isPowerOfTwo(FICL_UNS u);
135 bool isPowerOfTwo() const { in isPowerOfTwo() function
1014 if (!IvarSize.isPowerOfTwo()) { in PropertyImplStrategy()
12207 assert(PtrAlign.isPowerOfTwo()); in VisitBuiltinCallExpr()12660 if (Size.isPowerOfTwo()) { in VisitBuiltinCallExpr()