Home
last modified time | relevance | path

Searched refs:isPowerOfTwo (Results 1 – 9 of 9) sorted by relevance

/openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/
H A Dwrappers_c_checks.h34 return Alignment == 0 || !isPowerOfTwo(Alignment) || in checkAlignedAllocAlignmentAndSize()
41 return Alignment == 0 || !isPowerOfTwo(Alignment) || in checkPosixMemalignAlignment()
H A Dcommon.h52 inline bool isPowerOfTwo(uptr X) { return (X & (X - 1)) == 0; } in isPowerOfTwo() function
61 if (isPowerOfTwo(Size)) in roundUpToPowerOfTwo()
75 DCHECK(isPowerOfTwo(X)); in getLog2()
H A Dwrappers_c.inc93 if (UNLIKELY(!scudo::isPowerOfTwo(alignment)))
97 if (UNLIKELY(!scudo::isPowerOfTwo(alignment))) {
/openbsd-src/gnu/llvm/compiler-rt/lib/gwp_asan/
H A Dguarded_pool_allocator.cpp38 bool isPowerOfTwo(uintptr_t X) { return (X & (X - 1)) == 0; } in isPowerOfTwo() function
171 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()
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DCharUnits.h135 bool isPowerOfTwo() const { in isPowerOfTwo() function
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DAddress.h59 assert(Alignment.isPowerOfTwo() && "Alignment cannot be zero"); in AddressImpl()
H A DCGObjC.cpp1017 if (!IvarSize.isPowerOfTwo()) { in PropertyImplStrategy()
/openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/tests/
H A Dmemtag_test.cpp70 EXPECT_TRUE(isPowerOfTwo(archMemoryTagGranuleSize())); in TEST_F()
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DExprConstant.cpp11930 assert(PtrAlign.isPowerOfTwo()); in VisitBuiltinCallExpr()
12341 if (Size.isPowerOfTwo()) { in VisitBuiltinCallExpr()