Searched refs:isPowerOfTwo (Results 1 – 9 of 9) sorted by relevance
34 return Alignment == 0 || !isPowerOfTwo(Alignment) || in checkAlignedAllocAlignmentAndSize()41 return Alignment == 0 || !isPowerOfTwo(Alignment) || in checkPosixMemalignAlignment()
52 inline bool isPowerOfTwo(uptr X) { return (X & (X - 1)) == 0; } in isPowerOfTwo() function61 if (isPowerOfTwo(Size)) in roundUpToPowerOfTwo()75 DCHECK(isPowerOfTwo(X)); in getLog2()
93 if (UNLIKELY(!scudo::isPowerOfTwo(alignment)))97 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()
135 bool isPowerOfTwo() const { in isPowerOfTwo() function
59 assert(Alignment.isPowerOfTwo() && "Alignment cannot be zero"); in AddressImpl()
1017 if (!IvarSize.isPowerOfTwo()) { in PropertyImplStrategy()
70 EXPECT_TRUE(isPowerOfTwo(archMemoryTagGranuleSize())); in TEST_F()
11930 assert(PtrAlign.isPowerOfTwo()); in VisitBuiltinCallExpr()12341 if (Size.isPowerOfTwo()) { in VisitBuiltinCallExpr()