| /llvm-project-15.0.7/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 | 434 inline constexpr bool IsPowerOfTwo(uptr x) { return (x & (x - 1)) == 0; } in IsPowerOfTwo() function 438 if (IsPowerOfTwo(size)) return size; in RoundUpToPowerOfTwo() 447 RAW_CHECK(IsPowerOfTwo(boundary)); in RoundUpTo() 460 CHECK(IsPowerOfTwo(x)); in Log2()
|
| H A D | sanitizer_posix.cpp | 87 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError() 88 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
|
| H A D | sanitizer_common_libcdep.cpp | 146 CHECK(IsPowerOfTwo(align)); in InitAligned()
|
| H A D | sanitizer_ring_buffer.h | 98 CHECK(IsPowerOfTwo(size)); in Init()
|
| H A D | sanitizer_allocator.cpp | 164 CHECK(IsPowerOfTwo(alignment)); in SetLowLevelAllocateMinAlignment()
|
| H A D | sanitizer_flat_map.h | 68 static_assert(IsPowerOfTwo(kSize2), "Use a power of two for performance.");
|
| H A D | sanitizer_fuchsia.cpp | 291 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError() 292 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
|
| H A D | sanitizer_allocator_secondary.h | 86 CHECK(IsPowerOfTwo(alignment)); in Allocate()
|
| H A D | sanitizer_win.cpp | 185 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError() 186 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
|
| /llvm-project-15.0.7/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 | 46 CHECK(IsPowerOfTwo(rz_size)); in RZSize2Log() 322 CHECK(IsPowerOfTwo(options.min_redzone)); in CheckOptions() 323 CHECK(IsPowerOfTwo(options.max_redzone)); in CheckOptions() 498 CHECK(IsPowerOfTwo(alignment)); in Allocate() 1006 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in asan_memalign()
|
| /llvm-project-15.0.7/libc/test/src/string/memory_utils/ |
| H A D | utils_test.cpp | 27 TEST(LlvmLibcUtilsTest, IsPowerOfTwo) { in TEST() argument
|
| /llvm-project-15.0.7/compiler-rt/lib/memprof/ |
| H A D | memprof_allocator.cpp | 362 CHECK(IsPowerOfTwo(alignment)); in Allocate() 649 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in memprof_memalign()
|
| /llvm-project-15.0.7/compiler-rt/lib/dfsan/ |
| H A D | dfsan_allocator.cpp | 243 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in dfsan_memalign()
|
| /llvm-project-15.0.7/compiler-rt/lib/lsan/ |
| H A D | lsan_allocator.cpp | 183 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in lsan_memalign()
|
| /llvm-project-15.0.7/compiler-rt/lib/msan/ |
| H A D | msan_allocator.cpp | 329 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in msan_memalign()
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/ |
| H A D | tsan_mman.cpp | 276 if (UNLIKELY(!IsPowerOfTwo(align))) { in user_memalign()
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_mman.cpp | 298 if (UNLIKELY(!IsPowerOfTwo(align))) { in user_memalign()
|
| /llvm-project-15.0.7/compiler-rt/lib/hwasan/ |
| H A D | hwasan_allocator.cpp | 423 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in hwasan_memalign()
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/ |
| H A D | scudo_allocator.cpp | 703 if (Alignment && UNLIKELY(!IsPowerOfTwo(Alignment))) { in scudoAllocate()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 4368 auto IsPowerOfTwo = [](ConstantSDNode *C) { in isDivisorPowerOfTwo() local 4378 return ISD::matchUnaryPredicate(Divisor, IsPowerOfTwo); in isDivisorPowerOfTwo()
|