Home
last modified time | relevance | path

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

/freebsd-14.2/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.h448 inline constexpr bool IsPowerOfTwo(uptr x) { return (x & (x - 1)) == 0; } in IsPowerOfTwo() function
452 if (IsPowerOfTwo(size)) return size; in RoundUpToPowerOfTwo()
461 RAW_CHECK(IsPowerOfTwo(boundary)); in RoundUpTo()
474 CHECK(IsPowerOfTwo(x)); in Log2()
H A Dsanitizer_posix.cpp85 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()
86 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
H A Dsanitizer_flat_map.h61 static_assert(IsPowerOfTwo(kSize2), "Use a power of two for performance.");
H A Dsanitizer_common_libcdep.cpp150 CHECK(IsPowerOfTwo(align)); in InitAligned()
H A Dsanitizer_ring_buffer.h100 CHECK(IsPowerOfTwo(size)); in Init()
H A Dsanitizer_allocator.cpp168 CHECK(IsPowerOfTwo(alignment)); in SetLowLevelAllocateMinAlignment()
H A Dsanitizer_fuchsia.cpp356 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()
357 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
H A Dsanitizer_allocator_secondary.h86 CHECK(IsPowerOfTwo(alignment)); in Allocate()
H A Dsanitizer_win.cpp185 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()
186 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
/freebsd-14.2/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.cpp48 CHECK(IsPowerOfTwo(rz_size)); in RZSize2Log()
376 CHECK(IsPowerOfTwo(options.min_redzone)); in CheckOptions()
377 CHECK(IsPowerOfTwo(options.max_redzone)); in CheckOptions()
553 CHECK(IsPowerOfTwo(alignment)); in Allocate()
1053 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in asan_memalign()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_allocator.cpp364 CHECK(IsPowerOfTwo(alignment)); in Allocate()
654 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in memprof_memalign()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_allocator.cpp269 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in dfsan_memalign()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_allocator.cpp206 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in lsan_memalign()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_allocator.cpp390 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in msan_memalign()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_mman.cpp301 if (UNLIKELY(!IsPowerOfTwo(align))) { in user_memalign()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_allocator.cpp507 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in hwasan_memalign()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp4802 auto IsPowerOfTwo = [](ConstantSDNode *C) { in isDivisorPowerOfTwo() local
4812 return ISD::matchUnaryPredicate(Divisor, IsPowerOfTwo); in isDivisorPowerOfTwo()
27558 auto IsPowerOfTwo = [&Pow2Constants](ConstantSDNode *C) { in takeInexpensiveLog2() local
27569 if (ISD::matchUnaryPredicate(Op, IsPowerOfTwo)) { in takeInexpensiveLog2()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp6554 const bool IsPowerOfTwo = all_of(Ops, [](Value *V) { in getOperandInfo() local
6576 VP = IsPowerOfTwo ? TTI::OP_PowerOf2 : VP; in getOperandInfo()
/freebsd-14.2/contrib/sqlite3/
H A Dsqlite3.c15278 #define IsPowerOfTwo(X) (((X)&((X)-1))==0) macro
161063 assert( IsPowerOfTwo(chngToIN) );
163469 assert( IsPowerOfTwo(pTerm->eOperator & ~WO_EQUIV) );