| /freebsd-13.1/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 | 422 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 D | sanitizer_posix.cpp | 85 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError() 86 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
|
| H A D | sanitizer_common_libcdep.cpp | 133 CHECK(IsPowerOfTwo(align)); in InitAligned()
|
| H A D | sanitizer_ring_buffer.h | 95 CHECK(IsPowerOfTwo(size)); in Init()
|
| H A D | sanitizer_allocator.cpp | 215 CHECK(IsPowerOfTwo(alignment)); in SetLowLevelAllocateMinAlignment()
|
| H A D | sanitizer_fuchsia.cpp | 321 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError() 322 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
|
| H A D | sanitizer_win.cpp | 175 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError() 176 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
|
| H A D | sanitizer_allocator_secondary.h | 86 CHECK(IsPowerOfTwo(alignment)); in Allocate()
|
| /freebsd-13.1/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 | 46 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 D | dfsan_allocator.cpp | 237 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in dfsan_memalign()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/lsan/ |
| H A D | lsan_allocator.cpp | 178 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in lsan_memalign()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/memprof/ |
| H A D | memprof_allocator.cpp | 535 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 D | msan_allocator.cpp | 321 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in msan_memalign()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_mman.cpp | 256 if (UNLIKELY(!IsPowerOfTwo(align))) { in user_memalign()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/hwasan/ |
| H A D | hwasan_allocator.cpp | 388 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in hwasan_memalign()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/scudo/ |
| H A D | scudo_allocator.cpp | 702 if (Alignment && UNLIKELY(!IsPowerOfTwo(Alignment))) { in scudoAllocate()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 4206 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 D | sqlite3.c | 14199 #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) );
|