Searched refs:IsPowerOfTwo (Results 1 – 20 of 20) sorted by relevance
46 return alignment != 0 && IsPowerOfTwo(alignment) && in CheckAlignedAllocAlignmentAndSize()56 return alignment != 0 && IsPowerOfTwo(alignment) && in CheckPosixMemalignAlignment()
434 inline constexpr bool IsPowerOfTwo(uptr x) { return (x & (x - 1)) == 0; } in IsPowerOfTwo() function438 if (IsPowerOfTwo(size)) return size; in RoundUpToPowerOfTwo()447 RAW_CHECK(IsPowerOfTwo(boundary)); in RoundUpTo()460 CHECK(IsPowerOfTwo(x)); in Log2()
87 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()88 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
146 CHECK(IsPowerOfTwo(align)); in InitAligned()
164 CHECK(IsPowerOfTwo(alignment)); in SetLowLevelAllocateMinAlignment()
68 static_assert(IsPowerOfTwo(kSize2), "Use a power of two for performance.");
98 CHECK(IsPowerOfTwo(size)); in Init()
291 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()292 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
86 CHECK(IsPowerOfTwo(alignment)); in Allocate()
185 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()186 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
156 CHECK(IsPowerOfTwo(f->redzone)); in InitializeFlags()157 CHECK(IsPowerOfTwo(f->max_redzone)); in InitializeFlags()
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()
360 CHECK(IsPowerOfTwo(alignment)); in Allocate()647 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in memprof_memalign()
247 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in dfsan_memalign()
183 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in lsan_memalign()
327 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in msan_memalign()
298 if (UNLIKELY(!IsPowerOfTwo(align))) { in user_memalign()
457 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in hwasan_memalign()
6261 const bool IsPowerOfTwo = all_of(VL, [&](Value *V) { in getOperandInfo() local6299 VP = IsPowerOfTwo ? TTI::OP_PowerOf2 : VP; in getOperandInfo()
4433 auto IsPowerOfTwo = [](ConstantSDNode *C) { in isDivisorPowerOfTwo() local4443 return ISD::matchUnaryPredicate(Divisor, IsPowerOfTwo); in isDivisorPowerOfTwo()