Home
last modified time | relevance | path

Searched refs:IsPowerOfTwo (Results 1 – 20 of 20) sorted by relevance

/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_checks.h46 return alignment != 0 && IsPowerOfTwo(alignment) && in CheckAlignedAllocAlignmentAndSize()
56 return alignment != 0 && IsPowerOfTwo(alignment) && in CheckPosixMemalignAlignment()
H A Dsanitizer_common.h422 inline bool IsPowerOfTwo(uptr x) { in IsPowerOfTwo() function
428 if (IsPowerOfTwo(size)) return size; in RoundUpToPowerOfTwo()
437 RAW_CHECK(IsPowerOfTwo(boundary)); in RoundUpTo()
450 CHECK(IsPowerOfTwo(x)); in Log2()
H A Dsanitizer_posix.cpp85 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()
86 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
H A Dsanitizer_common_libcdep.cpp133 CHECK(IsPowerOfTwo(align)); in InitAligned()
H A Dsanitizer_ring_buffer.h95 CHECK(IsPowerOfTwo(size)); in Init()
H A Dsanitizer_allocator.cpp215 CHECK(IsPowerOfTwo(alignment)); in SetLowLevelAllocateMinAlignment()
H A Dsanitizer_fuchsia.cpp321 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()
322 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
H A Dsanitizer_win.cpp175 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()
176 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
H A Dsanitizer_allocator_secondary.h86 CHECK(IsPowerOfTwo(alignment)); in Allocate()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_flags.cpp156 CHECK(IsPowerOfTwo(f->redzone)); in InitializeFlags()
157 CHECK(IsPowerOfTwo(f->max_redzone)); in InitializeFlags()
H A Dasan_allocator.cpp46 CHECK(IsPowerOfTwo(rz_size)); in RZSize2Log()
325 CHECK(IsPowerOfTwo(options.min_redzone)); in CheckOptions()
326 CHECK(IsPowerOfTwo(options.max_redzone)); in CheckOptions()
509 CHECK(IsPowerOfTwo(alignment)); in Allocate()
1033 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in asan_memalign()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_allocator.cpp237 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in dfsan_memalign()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_allocator.cpp178 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in lsan_memalign()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_allocator.cpp535 CHECK(IsPowerOfTwo(alignment)); in Allocate()
825 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in memprof_memalign()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_allocator.cpp321 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in msan_memalign()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_mman.cpp256 if (UNLIKELY(!IsPowerOfTwo(align))) { in user_memalign()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_allocator.cpp388 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in hwasan_memalign()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/scudo/
H A Dscudo_allocator.cpp702 if (Alignment && UNLIKELY(!IsPowerOfTwo(Alignment))) { in scudoAllocate()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp4206 auto IsPowerOfTwo = [](ConstantSDNode *C) { in visitSDIVLike() local
4220 if (!N->getFlags().hasExact() && ISD::matchUnaryPredicate(N1, IsPowerOfTwo)) { in visitSDIVLike()
/freebsd-13.1/contrib/sqlite3/
H A Dsqlite3.c14199 #define IsPowerOfTwo(X) (((X)&((X)-1))==0) macro
149802 assert( IsPowerOfTwo(chngToIN) );
151622 assert( IsPowerOfTwo(pTerm->eOperator & ~WO_EQUIV) );
151674 assert( IsPowerOfTwo(pTerm->eOperator & ~WO_EQUIV) );