Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_checks.h47 return alignment != 0 && IsPowerOfTwo(alignment) && in CheckAlignedAllocAlignmentAndSize()
57 return alignment != 0 && IsPowerOfTwo(alignment) && in CheckPosixMemalignAlignment()
H A Dsanitizer_rtems.cc173 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()
174 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
H A Dsanitizer_common.h384 INLINE bool IsPowerOfTwo(uptr x) { in IsPowerOfTwo() function
390 if (IsPowerOfTwo(size)) return size; in RoundUpToPowerOfTwo()
399 RAW_CHECK(IsPowerOfTwo(boundary)); in RoundUpTo()
412 CHECK(IsPowerOfTwo(x)); in Log2()
H A Dsanitizer_posix.cc88 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()
89 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
H A Dsanitizer_ring_buffer.h96 CHECK(IsPowerOfTwo(size)); in Init()
H A Dsanitizer_fuchsia.cc309 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()
310 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
H A Dsanitizer_allocator.cc221 CHECK(IsPowerOfTwo(alignment)); in SetLowLevelAllocateMinAlignment()
H A Dsanitizer_win.cc157 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()
158 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
H A Dsanitizer_allocator_secondary.h87 CHECK(IsPowerOfTwo(alignment)); in Allocate()
/freebsd-12.1/contrib/compiler-rt/lib/asan/
H A Dasan_flags.cc161 CHECK(IsPowerOfTwo(f->redzone)); in InitializeFlags()
162 CHECK(IsPowerOfTwo(f->max_redzone)); in InitializeFlags()
H A Dasan_allocator.cc46 CHECK(IsPowerOfTwo(rz_size)); in RZSize2Log()
266 CHECK(IsPowerOfTwo(options.min_redzone)); in CheckOptions()
267 CHECK(IsPowerOfTwo(options.max_redzone)); in CheckOptions()
424 CHECK(IsPowerOfTwo(alignment)); in Allocate()
918 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in asan_memalign()
/freebsd-12.1/contrib/compiler-rt/lib/lsan/
H A Dlsan_allocator.cc168 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in lsan_memalign()
/freebsd-12.1/contrib/compiler-rt/lib/msan/
H A Dmsan_allocator.cc301 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in msan_memalign()
/freebsd-12.1/contrib/compiler-rt/lib/tsan/rtl/
H A Dtsan_mman.cc241 if (UNLIKELY(!IsPowerOfTwo(align))) { in user_memalign()
/freebsd-12.1/contrib/compiler-rt/lib/hwasan/
H A Dhwasan_allocator.cc367 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in hwasan_memalign()
/freebsd-12.1/contrib/compiler-rt/lib/esan/
H A Desan_hashtable.h140 CHECK(IsPowerOfTwo(Capacity)); in HashTable()
/freebsd-12.1/contrib/compiler-rt/lib/scudo/
H A Dscudo_allocator.cpp642 if (Alignment && UNLIKELY(!IsPowerOfTwo(Alignment))) { in scudoAllocate()
/freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp3285 auto IsPowerOfTwo = [](ConstantSDNode *C) { in visitSDIVLike() local
3299 if (!N->getFlags().hasExact() && ISD::matchUnaryPredicate(N1, IsPowerOfTwo)) { in visitSDIVLike()
/freebsd-12.1/contrib/sqlite3/
H A Dsqlite3.c14571 #define IsPowerOfTwo(X) (((X)&((X)-1))==0) macro
144018 assert( IsPowerOfTwo(chngToIN) );
145747 assert( IsPowerOfTwo(pTerm->eOperator & ~WO_EQUIV) );
145798 assert( IsPowerOfTwo(pTerm->eOperator & ~WO_EQUIV) );