/external/libchrome/base/ |
D | bits_unittest.cc | 174 EXPECT_FALSE(IsPowerOfTwo(-1)); in TEST() 175 EXPECT_FALSE(IsPowerOfTwo(0)); in TEST() 176 EXPECT_TRUE(IsPowerOfTwo(1)); in TEST() 177 EXPECT_TRUE(IsPowerOfTwo(2)); in TEST() 181 EXPECT_FALSE(IsPowerOfTwo(val - 1)); in TEST() 182 EXPECT_TRUE(IsPowerOfTwo(val)); in TEST() 183 EXPECT_FALSE(IsPowerOfTwo(val + 1)); in TEST() 188 EXPECT_FALSE(IsPowerOfTwo(val - 1)); in TEST() 189 EXPECT_TRUE(IsPowerOfTwo(val)); in TEST() 190 EXPECT_FALSE(IsPowerOfTwo(val + 1)); in TEST() [all …]
|
D | bits.h | 27 constexpr inline bool IsPowerOfTwo(T value) { in IsPowerOfTwo() function 39 DCHECK(IsPowerOfTwo(alignment)); in Align()
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_allocator_checks.h | 46 return alignment != 0 && IsPowerOfTwo(alignment) && in CheckAlignedAllocAlignmentAndSize() 56 return alignment != 0 && IsPowerOfTwo(alignment) && in CheckPosixMemalignAlignment()
|
D | sanitizer_rtems.cpp | 174 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError() 175 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
|
D | sanitizer_common.h | 410 inline bool IsPowerOfTwo(uptr x) { in IsPowerOfTwo() function 416 if (IsPowerOfTwo(size)) return size; in RoundUpToPowerOfTwo() 425 RAW_CHECK(IsPowerOfTwo(boundary)); in RoundUpTo() 438 CHECK(IsPowerOfTwo(x)); in Log2()
|
D | sanitizer_ring_buffer.h | 95 CHECK(IsPowerOfTwo(size)); in Init()
|
D | sanitizer_common_libcdep.cpp | 134 CHECK(IsPowerOfTwo(align)); in InitAligned()
|
D | sanitizer_posix.cpp | 85 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDieOnFatalError() 86 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDieOnFatalError()
|
/external/perfetto/src/profiling/memory/ |
D | scoped_spinlock.cc | 26 constexpr bool IsPowerOfTwo(size_t v) { in IsPowerOfTwo() function 34 static_assert(IsPowerOfTwo(kLockAttemptsPerSleep),
|
D | malloc_interceptor_glibc_preload.cc | 32 bool IsPowerOfTwo(size_t v) { in IsPowerOfTwo() function 72 if (alignment % sizeof(void*) || !IsPowerOfTwo(alignment / sizeof(void*))) { in posix_memalign()
|
/external/OpenCL-CTS/test_conformance/basic/ |
D | test_sizeof.cpp | 151 static int IsPowerOfTwo( cl_ulong x ){ return 0 == (x & (x-1)); } in IsPowerOfTwo() function 261 if( ! IsPowerOfTwo( test ) ) in test_sizeof() 278 if( ! IsPowerOfTwo( test ) ) in test_sizeof() 314 if( ! IsPowerOfTwo( test ) ) in test_sizeof()
|
/external/compiler-rt/lib/asan/ |
D | asan_flags.cc | 145 CHECK(IsPowerOfTwo(f->redzone)); in InitializeFlags() 146 CHECK(IsPowerOfTwo(f->max_redzone)); in InitializeFlags()
|
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upbc/ |
D | message_layout.h | 82 static bool IsPowerOfTwo(size_t val) { in IsPowerOfTwo() function 87 ABSL_ASSERT(IsPowerOfTwo(align)); in Align()
|
/external/llvm-project/compiler-rt/lib/asan/ |
D | asan_flags.cpp | 156 CHECK(IsPowerOfTwo(f->redzone)); in InitializeFlags() 157 CHECK(IsPowerOfTwo(f->max_redzone)); in InitializeFlags()
|
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()
|
/external/pdfium/third_party/base/ |
D | bits.h | 29 constexpr inline bool IsPowerOfTwo(T value) { in IsPowerOfTwo() function 41 DCHECK(IsPowerOfTwo(alignment)); in Align()
|
/external/perfetto/src/profiling/perf/ |
D | event_config.cc | 139 constexpr bool IsPowerOfTwo(size_t v) { in IsPowerOfTwo() function 146 static_assert(IsPowerOfTwo(kDefaultDataPagesPerRingBuffer), ""); in ChooseActualRingBufferPages() 150 if (!IsPowerOfTwo(config_value)) { in ChooseActualRingBufferPages()
|
D | event_reader.cc | 47 bool IsPowerOfTwo(size_t v) { in IsPowerOfTwo() function 116 PERFETTO_DCHECK(IsPowerOfTwo(data_page_count)); in Allocate()
|
D | event_config_unittest.cc | 36 bool IsPowerOfTwo(size_t v) { in IsPowerOfTwo() function 64 ASSERT_TRUE(IsPowerOfTwo(event_config->ring_buffer_pages())); in TEST()
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | rfft2d.cc | 53 bool IsPowerOfTwo(uint32_t v) { return v && !(v & (v - 1)); } in IsPowerOfTwo() function 116 TF_LITE_ENSURE(context, IsPowerOfTwo(fft_length_data[0])); in ResizeOutputandTemporaryTensors() 117 TF_LITE_ENSURE(context, IsPowerOfTwo(fft_length_data[1])); in ResizeOutputandTemporaryTensors()
|
/external/gemmlowp/internal/ |
D | common.h | 167 struct IsPowerOfTwo { struct
|
/external/libchrome/base/sampling_heap_profiler/ |
D | lock_free_address_hash_set.cc | 15 DCHECK(bits::IsPowerOfTwo(buckets_count)); in LockFreeAddressHashSet()
|
/external/llvm-project/libc/test/src/string/memory_utils/ |
D | utils_test.cpp | 27 TEST(UtilsTest, IsPowerOfTwo) { in TEST() argument
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common.h | 440 INLINE bool IsPowerOfTwo(uptr x) { in IsPowerOfTwo() function 446 if (IsPowerOfTwo(size)) return size; in RoundUpToPowerOfTwo() 455 RAW_CHECK(IsPowerOfTwo(boundary)); in RoundUpTo() 468 CHECK(IsPowerOfTwo(x)); in Log2()
|
D | sanitizer_posix.cc | 152 CHECK(IsPowerOfTwo(size)); in MmapAlignedOrDie() 153 CHECK(IsPowerOfTwo(alignment)); in MmapAlignedOrDie()
|