Home
last modified time | relevance | path

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

12

/art/runtime/
Dmonitor_pool.h197 static_assert(IsPowerOfTwo(kChunkSize), "kChunkSize must be power of 2");
205 static_assert(IsPowerOfTwo(kInitialChunkStorage), "kInitialChunkStorage must be power of 2");
208 static_assert(IsPowerOfTwo(kMaxChunkLists), "kMaxChunkLists must be power of 2");
214 static_assert(IsPowerOfTwo(kMaxListSize), "kMaxListSize must be power of 2");
Dindirect_reference_table.h147 static_assert(IsPowerOfTwo(sizeof(IrtEntry)), "Unexpected sizeof(IrtEntry)");
223 static_assert(IsPowerOfTwo(mask)); in GetGlobalOrWeakGlobalMask()
Dart_field-inl.h75 static_assert(IsPowerOfTwo(kFieldSize)); in VisitArrayRoots()
Dart_method.h253 static_assert(IsPowerOfTwo((kAccIntrinsicBits >> kAccFlagsShift) + 1),
/art/runtime/jni/
Dlocal_reference_table.h209 static_assert(IsPowerOfTwo(kInitialLrtBytes));
392 static_assert(IsPowerOfTwo(kCheckJniEntriesPerReference));
396 static_assert(IsPowerOfTwo(kMaxTableSizeInBytes));
397 static_assert(IsPowerOfTwo(sizeof(LrtEntry)));
419 DCHECK(IsPowerOfTwo(size)); in NumTablesForSize()
Dlocal_reference_table.cc60 DCHECK(IsPowerOfTwo(size)); in GetIndex()
195 DCHECK(IsPowerOfTwo(max_entries_)); in Resize()
366 static_assert(IsPowerOfTwo(kMaxTableSizeInBytes)); in Add()
367 static_assert(IsPowerOfTwo(sizeof(LrtEntry))); in Add()
368 DCHECK(IsPowerOfTwo(max_entries_)); in Add()
/art/libartbase/base/
Dbounded_fifo.h30 static_assert(IsPowerOfTwo(kMaxSize), "kMaxSize must be a power of 2.");
Dbit_utils.h145 constexpr bool IsPowerOfTwo(T x) { in IsPowerOfTwo() function
155 DCHECK((x != 0) && IsPowerOfTwo(x)); in WhichPowerOf2()
166 DCHECK(IsPowerOfTwo(n)); in RoundDown()
Dzip_archive.cc53 DCHECK(IsPowerOfTwo(alignment)) << alignment; in IsAlignedTo()
Dmem_map.cc398 DCHECK(IsPowerOfTwo(alignment)); in MapAnonymousAligned()
/art/runtime/interpreter/
Dinterpreter_cache.h75 static_assert(IsPowerOfTwo(kSize), "Size must be power of two"); in IndexOf()
/art/cmdline/
Dmemory_representation.h32 static_assert(IsPowerOfTwo(kDivisor), "Divisor must be a power of 2");
/art/runtime/mirror/
Ddex_cache.h268 static_assert(IsPowerOfTwo(kDexCacheTypeCacheSize),
273 static_assert(IsPowerOfTwo(kDexCacheStringCacheSize),
278 static_assert(IsPowerOfTwo(kDexCacheFieldCacheSize),
283 static_assert(IsPowerOfTwo(kDexCacheMethodCacheSize),
289 static_assert(IsPowerOfTwo(kDexCacheMethodTypeCacheSize),
Darray.h83 DCHECK(IsPowerOfTwo(component_size)) << component_size; in DataOffset()
91 static_assert(IsPowerOfTwo(kComponentSize), "Invalid component size"); in DataOffset()
/art/compiler/optimizing/
Dscheduler_arm64.cc210 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in VisitDiv()
278 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in VisitRem()
Dgvn.cc46 DCHECK(IsPowerOfTwo(num_buckets_)); in ValueSet()
59 DCHECK(IsPowerOfTwo(num_buckets_)); in ValueSet()
Dnodes_vector.h34 DCHECK(IsPowerOfTwo(base)); in Alignment()
41 DCHECK(IsPowerOfTwo(base)); in IsAlignedAt()
Dinstruction_simplifier.cc1652 } else if ((num_tail_bits_set == reg_bits - shift) && IsPowerOfTwo(value + 1) && in VisitAnd()
1978 if (cst_value == std::numeric_limits<int64_t>::min() || IsPowerOfTwo(std::abs(cst_value))) { in TryToReuseDiv()
2067 } else if (IsPowerOfTwo(factor)) { in VisitMul()
2077 } else if (IsPowerOfTwo(factor - 1)) { in VisitMul()
2092 } else if (IsPowerOfTwo(factor + 1)) { in VisitMul()
Dcode_generator_arm_vixl.cc2429 if ((fpu_spill_mask_ == 0u || IsPowerOfTwo(fpu_spill_mask_)) && in GenerateFrameEntry()
2446 DCHECK(IsPowerOfTwo(fpu_spill_mask_)); in GenerateFrameEntry()
2512 if ((fpu_spill_mask_ == 0u || IsPowerOfTwo(fpu_spill_mask_)) && in GenerateFrameExit()
2519 DCHECK(IsPowerOfTwo(fpu_spill_mask_)); in GenerateFrameExit()
4681 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in GenerateDivRemConstantIntegral()
4714 } else if (IsPowerOfTwo(AbsOrMin(value)) && in VisitDiv()
4832 } else if (IsPowerOfTwo(AbsOrMin(value)) && !HasNonNegativeOrMinIntInputAt(rem, 0)) { in VisitRem()
6201 return opcode == AND && IsPowerOfTwo(value + 1); in CanEncode32BitConstantAsImmediate()
7877 DCHECK(IsPowerOfTwo(mask + 1)); in GenerateBitstringTypeCheckCompare()
8909 DCHECK(IsPowerOfTwo(value + 1)); in GenerateAndConst()
[all …]
Dscheduler_arm.cc932 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in HandleDivRemConstantIntegralLatencies()
/art/runtime/gc/collector/
Dmark_compact.h199 static_assert(IsPowerOfTwo(kBitsPerVectorWord));
200 static_assert(IsPowerOfTwo(Bitmap::kBitsPerBitmapWord));
204 static_assert(IsPowerOfTwo(kBitmapWordsPerVectorWord));
/art/sigchainlib/
Dsigchain.cc180 static constexpr bool IsPowerOfTwo(T x) { in IsPowerOfTwo() function
194 static_assert(IsPowerOfTwo(kNumSignalsPerKey));
/art/runtime/gc/space/
Dregion_space.cc673 static_assert(IsPowerOfTwo(kPoisonDeadObjectSize) && in PoisonUnevacuatedRange()
674 IsPowerOfTwo(RegionSpace::kAlignment) && in PoisonUnevacuatedRange()
/art/libdexfile/dex/
Ddex_file_verifier.cc115 static_assert(IsPowerOfTwo(0), "0 not marked as power of two"); in CheckAtMostOneOfPublicProtectedPrivate()
116 static_assert(IsPowerOfTwo(kAccPublic), "kAccPublic not marked as power of two"); in CheckAtMostOneOfPublicProtectedPrivate()
117 static_assert(IsPowerOfTwo(kAccProtected), "kAccProtected not marked as power of two"); in CheckAtMostOneOfPublicProtectedPrivate()
118 static_assert(IsPowerOfTwo(kAccPrivate), "kAccPrivate not marked as power of two"); in CheckAtMostOneOfPublicProtectedPrivate()
119 return IsPowerOfTwo(flags & (kAccPublic | kAccProtected | kAccPrivate)); in CheckAtMostOneOfPublicProtectedPrivate()
/art/libprofile/profile/
Dprofile_compilation_info.h934 DCHECK(IsPowerOfTwo(static_cast<uint32_t>(flag))); in FlagBitmapIndex()

12