OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:IsPowerOfTwo
(Results
1 - 25
of
112
) sorted by null
1
2
3
4
5
/external/libchrome/base/
bits_unittest.cc
174
EXPECT_FALSE(
IsPowerOfTwo
(-1));
175
EXPECT_FALSE(
IsPowerOfTwo
(0));
176
EXPECT_TRUE(
IsPowerOfTwo
(1));
177
EXPECT_TRUE(
IsPowerOfTwo
(2));
181
EXPECT_FALSE(
IsPowerOfTwo
(val - 1));
182
EXPECT_TRUE(
IsPowerOfTwo
(val));
183
EXPECT_FALSE(
IsPowerOfTwo
(val + 1));
188
EXPECT_FALSE(
IsPowerOfTwo
(val - 1));
189
EXPECT_TRUE(
IsPowerOfTwo
(val));
190
EXPECT_FALSE(
IsPowerOfTwo
(val + 1))
[
all
...]
bits.h
27
constexpr inline bool
IsPowerOfTwo
(T value) {
39
DCHECK(
IsPowerOfTwo
(alignment));
/art/cmdline/
memory_representation.h
32
static_assert(
IsPowerOfTwo
(kDivisor), "Divisor must be a power of 2");
/art/libartbase/base/
bounded_fifo.h
30
static_assert(
IsPowerOfTwo
(kMaxSize), "kMaxSize must be a power of 2.");
bit_utils.h
145
constexpr bool
IsPowerOfTwo
(T x) {
155
DCHECK((x != 0) &&
IsPowerOfTwo
(x));
166
DCHECK(
IsPowerOfTwo
(n));
zip_archive.cc
53
DCHECK(
IsPowerOfTwo
(alignment)) << alignment;
/art/runtime/interpreter/
interpreter_cache.h
84
static_assert(
IsPowerOfTwo
(kSize), "Size must be power of two");
/external/compiler-rt/lib/asan/
asan_flags.cc
145
CHECK(
IsPowerOfTwo
(f->redzone));
146
CHECK(
IsPowerOfTwo
(f->max_redzone));
asan_allocator.cc
44
CHECK(
IsPowerOfTwo
(rz_size));
250
CHECK(
IsPowerOfTwo
(options.min_redzone));
251
CHECK(
IsPowerOfTwo
(options.max_redzone));
341
CHECK(
IsPowerOfTwo
(alignment));
/art/runtime/
monitor_pool.h
197
static_assert(
IsPowerOfTwo
(kChunkSize), "kChunkSize must be power of 2");
204
static_assert(
IsPowerOfTwo
(kInitialChunkStorage), "kInitialChunkStorage must be power of 2");
207
static_assert(
IsPowerOfTwo
(kMaxChunkLists), "kMaxChunkLists must be power of 2");
213
static_assert(
IsPowerOfTwo
(kMaxListSize), "kMaxListSize must be power of 2");
indirect_reference_table.h
183
static_assert(
IsPowerOfTwo
(sizeof(IrtEntry)), "Unexpected sizeof(IrtEntry)");
/external/v8/src/arm64/
utils-arm64.cc
77
DCHECK(base::bits::
IsPowerOfTwo
(width) && (width <= 64));
86
DCHECK(base::bits::
IsPowerOfTwo
(width) && (width <= 64));
/external/v8/src/ic/
stub-cache.cc
23
DCHECK(base::bits::
IsPowerOfTwo
(kPrimaryTableSize));
24
DCHECK(base::bits::
IsPowerOfTwo
(kSecondaryTableSize));
/external/libchrome/base/sampling_heap_profiler/
lock_free_address_hash_set.cc
15
DCHECK(bits::
IsPowerOfTwo
(buckets_count));
/external/gemmlowp/internal/
common.h
297
struct
IsPowerOfTwo
{
/external/v8/src/objects/
name.h
121
static_assert(base::bits::
IsPowerOfTwo
(kMaxCachedArrayIndexLength + 1),
hash-table.h
114
DCHECK(base::bits::
IsPowerOfTwo
(size));
210
STATIC_ASSERT(v8::base::bits::
IsPowerOfTwo
(kMaxRegularCapacity));
/art/runtime/mirror/
dex_cache.h
138
static_assert(
IsPowerOfTwo
(kDexCacheTypeCacheSize),
143
static_assert(
IsPowerOfTwo
(kDexCacheStringCacheSize),
148
static_assert(
IsPowerOfTwo
(kDexCacheFieldCacheSize),
153
static_assert(
IsPowerOfTwo
(kDexCacheMethodCacheSize),
159
static_assert(
IsPowerOfTwo
(kDexCacheMethodTypeCacheSize),
array.h
77
DCHECK(
IsPowerOfTwo
(component_size)) << component_size;
85
static_assert(
IsPowerOfTwo
(kComponentSize), "Invalid component size");
/external/vulkan-validation-layers/layers/
vk_layer_utils.h
117
static inline bool
IsPowerOfTwo
(unsigned x) { return x && !(x & (x - 1)); }
/art/compiler/optimizing/
scheduler_arm64.cc
101
} else if (
IsPowerOfTwo
(AbsOrMin(imm))) {
169
} else if (
IsPowerOfTwo
(AbsOrMin(imm))) {
gvn.cc
46
DCHECK(
IsPowerOfTwo
(num_buckets_));
59
DCHECK(
IsPowerOfTwo
(num_buckets_));
/external/compiler-rt/lib/sanitizer_common/
sanitizer_posix.cc
152
CHECK(
IsPowerOfTwo
(size));
153
CHECK(
IsPowerOfTwo
(alignment));
sanitizer_common.h
440
INLINE bool
IsPowerOfTwo
(uptr x) {
446
if (
IsPowerOfTwo
(size)) return size;
455
RAW_CHECK(
IsPowerOfTwo
(boundary));
468
CHECK(
IsPowerOfTwo
(x));
/external/v8/src/base/utils/
random-number-generator.cc
86
if (bits::
IsPowerOfTwo
(max)) {
Completed in 788 milliseconds
1
2
3
4
5