Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/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.inc76 if (UNLIKELY(!scudo::isPowerOfTwo(alignment)))
80 if (UNLIKELY(!scudo::isPowerOfTwo(alignment))) {
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/gwp_asan/
H A Dguarded_pool_allocator.cpp37 bool isPowerOfTwo(uintptr_t X) { return (X & (X - 1)) == 0; } in isPowerOfTwo() function
156 assert(isPowerOfTwo(Alignment) && "Alignment must be a power of two!"); in getRequiredBackingSize()
167 assert(isPowerOfTwo(Alignment) && "Alignment must be a power of two!"); in alignUp()
177 assert(isPowerOfTwo(Alignment) && "Alignment must be a power of two!"); in alignDown()
201 if (!isPowerOfTwo(Alignment) || Alignment > State.maximumAllocationSize() || in allocate()
/freebsd-13.1/stand/ficl/
H A Dvm.c644 int isPowerOfTwo(FICL_UNS u) in isPowerOfTwo() function
673 pwr = isPowerOfTwo((FICL_UNS)radix); in ltoa()
H A Dficl.h659 int isPowerOfTwo(FICL_UNS u);
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DCharUnits.h129 bool isPowerOfTwo() const { in isPowerOfTwo() function
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGObjC.cpp1013 if (!IvarSize.isPowerOfTwo()) { in PropertyImplStrategy()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp11578 assert(PtrAlign.isPowerOfTwo()); in VisitBuiltinCallExpr()
12025 if (Size.isPowerOfTwo()) { in VisitBuiltinCallExpr()