| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_allocator_checks.h | 46 return alignment != 0 && IsPowerOfTwo(alignment) && in CheckAlignedAllocAlignmentAndSize() 56 return alignment != 0 && IsPowerOfTwo(alignment) && in CheckPosixMemalignAlignment()
|
| H A D | sanitizer_common.h | 447 inline constexpr bool IsPowerOfTwo(uptr x) { return (x & (x - 1)) == 0; } in IsPowerOfTwo() function 451 if (IsPowerOfTwo(size)) return size; in RoundUpToPowerOfTwo() 460 RAW_CHECK(IsPowerOfTwo(boundary)); in RoundUpTo() 473 CHECK(IsPowerOfTwo(x)); in Log2()
|
| H A D | sanitizer_posix.cpp | 85 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError() 86 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
|
| H A D | sanitizer_flat_map.h | 61 static_assert(IsPowerOfTwo(kSize2), "Use a power of two for performance.");
|
| H A D | sanitizer_common_libcdep.cpp | 150 CHECK(IsPowerOfTwo(align)); in InitAligned()
|
| H A D | sanitizer_ring_buffer.h | 100 CHECK(IsPowerOfTwo(size)); in Init()
|
| H A D | sanitizer_allocator.cpp | 168 CHECK(IsPowerOfTwo(alignment)); in SetLowLevelAllocateMinAlignment()
|
| H A D | sanitizer_fuchsia.cpp | 355 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError() 356 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
|
| H A D | sanitizer_allocator_secondary.h | 86 CHECK(IsPowerOfTwo(alignment)); in Allocate()
|
| H A D | sanitizer_win.cpp | 182 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError() 183 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/asan/ |
| H A D | asan_flags.cpp | 156 CHECK(IsPowerOfTwo(f->redzone)); in InitializeFlags() 157 CHECK(IsPowerOfTwo(f->max_redzone)); in InitializeFlags()
|
| H A D | asan_allocator.cpp | 48 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() 1061 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in asan_memalign()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/ |
| H A D | dfsan_allocator.cpp | 272 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in dfsan_memalign()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/memprof/ |
| H A D | memprof_allocator.cpp | 430 CHECK(IsPowerOfTwo(alignment)); in Allocate() 714 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in memprof_memalign()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/lsan/ |
| H A D | lsan_allocator.cpp | 206 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in lsan_memalign()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/msan/ |
| H A D | msan_allocator.cpp | 390 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in msan_memalign()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_mman.cpp | 312 if (UNLIKELY(!IsPowerOfTwo(align))) { in user_memalign()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/ |
| H A D | hwasan_allocator.cpp | 508 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in hwasan_memalign()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 4771 auto IsPowerOfTwo = [](ConstantSDNode *C) { in isDivisorPowerOfTwo() local 4781 return ISD::matchUnaryPredicate(Divisor, IsPowerOfTwo); in isDivisorPowerOfTwo() 27948 auto IsPowerOfTwo = [&Pow2Constants](ConstantSDNode *C) { in takeInexpensiveLog2() local 27959 if (ISD::matchUnaryPredicate(Op, IsPowerOfTwo)) { in takeInexpensiveLog2()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | SLPVectorizer.cpp | 7698 const bool IsPowerOfTwo = all_of(Ops, [](Value *V) { in getOperandInfo() local 7720 VP = IsPowerOfTwo ? TTI::OP_PowerOf2 : VP; in getOperandInfo()
|
| /freebsd/contrib/sqlite3/ |
| H A D | sqlite3.c | 15675 #define IsPowerOfTwo(X) (((X)&((X)-1))==0) macro 163394 assert( IsPowerOfTwo(chngToIN) ); 165913 assert( IsPowerOfTwo(pTerm->eOperator & ~WO_EQUIV) );
|