Home
last modified time | relevance | path

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

12

/netbsd-src/external/gpl3/gcc/dist/libsanitizer/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.h423 inline constexpr bool IsPowerOfTwo(uptr x) { return (x & (x - 1)) == 0; } in IsPowerOfTwo() function
427 if (IsPowerOfTwo(size)) return size; in RoundUpToPowerOfTwo()
436 RAW_CHECK(IsPowerOfTwo(boundary)); in RoundUpTo()
449 CHECK(IsPowerOfTwo(x)); in Log2()
H A Dsanitizer_posix.cpp85 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()
86 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
H A Dsanitizer_common_libcdep.cpp127 CHECK(IsPowerOfTwo(align)); in InitAligned()
H A Dsanitizer_ring_buffer.h95 CHECK(IsPowerOfTwo(size)); in Init()
H A Dsanitizer_flat_map.h68 static_assert(IsPowerOfTwo(kSize2), "Use a power of two for performance.");
H A Dsanitizer_fuchsia.cpp280 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()
281 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_allocator_checks.h47 return alignment != 0 && IsPowerOfTwo(alignment) && in CheckAlignedAllocAlignmentAndSize()
57 return alignment != 0 && IsPowerOfTwo(alignment) && in CheckPosixMemalignAlignment()
H A Dsanitizer_rtems.cc173 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()
174 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
H A Dsanitizer_common.h374 INLINE bool IsPowerOfTwo(uptr x) { in IsPowerOfTwo() function
380 if (IsPowerOfTwo(size)) return size; in RoundUpToPowerOfTwo()
389 RAW_CHECK(IsPowerOfTwo(boundary)); in RoundUpTo()
402 CHECK(IsPowerOfTwo(x)); in Log2()
H A Dsanitizer_posix.cc88 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()
89 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
H A Dsanitizer_ring_buffer.h96 CHECK(IsPowerOfTwo(size)); in Init()
H A Dsanitizer_fuchsia.cc309 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()
310 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_allocator_checks.h45 return alignment != 0 && IsPowerOfTwo(alignment) && in CheckAlignedAllocAlignmentAndSize()
55 return alignment != 0 && IsPowerOfTwo(alignment) && in CheckPosixMemalignAlignment()
H A Dsanitizer_rtems.cc173 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()
174 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
H A Dsanitizer_posix.cc85 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()
86 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
H A Dsanitizer_common.h370 INLINE bool IsPowerOfTwo(uptr x) { in IsPowerOfTwo() function
376 if (IsPowerOfTwo(size)) return size; in RoundUpToPowerOfTwo()
385 RAW_CHECK(IsPowerOfTwo(boundary)); in RoundUpTo()
398 CHECK(IsPowerOfTwo(x)); in Log2()
H A Dsanitizer_ring_buffer.h94 CHECK(IsPowerOfTwo(size)); in Init()
H A Dsanitizer_fuchsia.cc308 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError()
309 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/asan/
H A Dasan_flags.cpp156 CHECK(IsPowerOfTwo(f->redzone)); in InitializeFlags()
157 CHECK(IsPowerOfTwo(f->max_redzone)); in InitializeFlags()
H A Dasan_allocator.cpp46 CHECK(IsPowerOfTwo(rz_size)); in RZSize2Log()
324 CHECK(IsPowerOfTwo(options.min_redzone)); in CheckOptions()
325 CHECK(IsPowerOfTwo(options.max_redzone)); in CheckOptions()
508 CHECK(IsPowerOfTwo(alignment)); in Allocate()
1017 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in asan_memalign()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/asan/
H A Dasan_flags.cc161 CHECK(IsPowerOfTwo(f->redzone)); in InitializeFlags()
162 CHECK(IsPowerOfTwo(f->max_redzone)); in InitializeFlags()
H A Dasan_allocator.cc46 CHECK(IsPowerOfTwo(rz_size)); in RZSize2Log()
266 CHECK(IsPowerOfTwo(options.min_redzone)); in CheckOptions()
267 CHECK(IsPowerOfTwo(options.max_redzone)); in CheckOptions()
424 CHECK(IsPowerOfTwo(alignment)); in Allocate()
918 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in asan_memalign()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/asan/
H A Dasan_flags.cc159 CHECK(IsPowerOfTwo(f->redzone)); in InitializeFlags()
160 CHECK(IsPowerOfTwo(f->max_redzone)); in InitializeFlags()
H A Dasan_allocator.cc44 CHECK(IsPowerOfTwo(rz_size)); in RZSize2Log()
264 CHECK(IsPowerOfTwo(options.min_redzone)); in CheckOptions()
265 CHECK(IsPowerOfTwo(options.max_redzone)); in CheckOptions()
422 CHECK(IsPowerOfTwo(alignment)); in Allocate()
916 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in asan_memalign()

12