Home
last modified time | relevance | path

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

/src/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dcommon.h31 inline constexpr bool isPowerOfTwo(uptr X) { in isPowerOfTwo() function
38 DCHECK(isPowerOfTwo(Boundary)); in roundUp()
46 DCHECK(isPowerOfTwo(Boundary)); in roundDown()
54 DCHECK(isPowerOfTwo(Alignment)); in isAligned()
78 if (isPowerOfTwo(Size)) in roundUpPowerOfTwo()
92 DCHECK(isPowerOfTwo(X)); in getLog2()
H A Dstack_depot.h96 DCHECK(isPowerOfTwo(RingSz)); in init()
97 DCHECK(isPowerOfTwo(TabSz)); in init()
106 if (!isPowerOfTwo(RingSize)) in isValid()
115 if (!isPowerOfTwo(TabSize)) in isValid()
H A Dwrappers_c_checks.h34 return !isPowerOfTwo(Alignment) || !isAligned(Size, Alignment); in checkAlignedAllocAlignmentAndSize()
40 return !isPowerOfTwo(Alignment) || !isAligned(Alignment, sizeof(void *)); in checkPosixMemalignAlignment()
H A Dwrappers_c.inc130 if (UNLIKELY(!scudo::isPowerOfTwo(alignment)))
134 if (UNLIKELY(!scudo::isPowerOfTwo(alignment))) {
H A Dcombined.h1660 static_assert(isPowerOfTwo(kMaxU32Pow2)); in initRingBufferMaybe()
1667 static_assert(isPowerOfTwo(kFramesPerStack)); in initRingBufferMaybe()
/src/contrib/llvm-project/compiler-rt/lib/gwp_asan/
H A Dguarded_pool_allocator.cpp38 bool isPowerOfTwo(uintptr_t X) { return (X & (X - 1)) == 0; } in isPowerOfTwo() function
174 assert(isPowerOfTwo(Alignment) && "Alignment must be a power of two!"); in getRequiredBackingSize()
185 assert(isPowerOfTwo(Alignment) && "Alignment must be a power of two!"); in alignUp()
195 assert(isPowerOfTwo(Alignment) && "Alignment must be a power of two!"); in alignDown()
219 if (!isPowerOfTwo(Alignment) || Alignment > State.maximumAllocationSize() || in allocate()
/src/stand/ficl/
H A Dvm.c643 int isPowerOfTwo(FICL_UNS u) in isPowerOfTwo() function
672 pwr = isPowerOfTwo((FICL_UNS)radix); in ltoa()
H A Dficl.h658 int isPowerOfTwo(FICL_UNS u);
/src/contrib/llvm-project/clang/include/clang/AST/
H A DCharUnits.h135 bool isPowerOfTwo() const { in isPowerOfTwo() function
/src/contrib/llvm-project/clang/lib/AST/Interp/
H A DInterpBuiltin.cpp927 if (Size.isPowerOfTwo()) { in interp__builtin_atomic_lock_free()
/src/contrib/llvm-project/clang/lib/CodeGen/
H A DCGObjC.cpp1018 if (!IvarSize.isPowerOfTwo()) { in PropertyImplStrategy()
/src/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp12464 assert(PtrAlign.isPowerOfTwo()); in VisitBuiltinCallExpr()
12954 if (Size.isPowerOfTwo()) { in VisitBuiltinCallExpr()