Home
last modified time | relevance | path

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

/art/runtime/
Dmonitor_pool.h197 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");
Dindirect_reference_table.h183 static_assert(IsPowerOfTwo(sizeof(IrtEntry)), "Unexpected sizeof(IrtEntry)");
Dart_method.h182 static_assert(IsPowerOfTwo((kAccIntrinsicBits >> kAccFlagsShift) + 1), in GetIntrinsic()
/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()
/art/cmdline/
Dmemory_representation.h32 static_assert(IsPowerOfTwo(kDivisor), "Divisor must be a power of 2");
/art/runtime/interpreter/
Dinterpreter_cache.h84 static_assert(IsPowerOfTwo(kSize), "Size must be power of two"); in IndexOf()
/art/runtime/mirror/
Ddex_cache.h138 static_assert(IsPowerOfTwo(kDexCacheTypeCacheSize),
143 static_assert(IsPowerOfTwo(kDexCacheStringCacheSize),
148 static_assert(IsPowerOfTwo(kDexCacheFieldCacheSize),
153 static_assert(IsPowerOfTwo(kDexCacheMethodCacheSize),
159 static_assert(IsPowerOfTwo(kDexCacheMethodTypeCacheSize),
Darray.h77 DCHECK(IsPowerOfTwo(component_size)) << component_size; in DataOffset()
85 static_assert(IsPowerOfTwo(kComponentSize), "Invalid component size"); in DataOffset()
/art/compiler/optimizing/
Dscheduler_arm64.cc101 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in VisitDiv()
169 } 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.cc1425 } else if ((num_tail_bits_set == reg_bits - shift) && IsPowerOfTwo(value + 1) && in VisitAnd()
1772 } else if (IsPowerOfTwo(factor)) { in VisitMul()
1782 } else if (IsPowerOfTwo(factor - 1)) { in VisitMul()
1797 } else if (IsPowerOfTwo(factor + 1)) { in VisitMul()
Dscheduler_arm.cc821 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in HandleDivRemConstantIntegralLatencies()
Dloop_optimization.cc1109 DCHECK(IsPowerOfTwo(chunk)); in Vectorize()
1705 DCHECK(IsPowerOfTwo(length) && length >= 2u); in TrySetVectorLength()
Dcode_generator_arm_vixl.cc4057 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in GenerateDivRemConstantIntegral()
4091 if (!IsPowerOfTwo(AbsOrMin(value))) { in VisitDiv()
4204 if (!IsPowerOfTwo(AbsOrMin(value))) { in VisitRem()
5553 return opcode == AND && IsPowerOfTwo(value + 1); in CanEncode32BitConstantAsImmediate()
7135 DCHECK(IsPowerOfTwo(mask + 1)); in GenerateBitstringTypeCheckCompare()
8118 DCHECK(IsPowerOfTwo(value + 1)); in GenerateAndConst()
8504 static_assert(IsPowerOfTwo(kReferenceLoadMinFarOffset), "Expecting a power of 2."); in GenerateFieldLoadWithBakerReadBarrier()
Dcode_generator_mips.cc2038 DCHECK(IsPowerOfTwo(mask + 1)); in GenerateBitstringTypeCheckCompare()
4158 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in GenerateDivRemIntegral()
4190 call_long_div = (imm != 0) && !IsPowerOfTwo(static_cast<uint64_t>(AbsOrMin(imm))); in VisitDiv()
4252 DCHECK(IsPowerOfTwo(static_cast<uint64_t>(AbsOrMin(imm)))); in VisitDiv()
8865 call_rem = (imm != 0) && !IsPowerOfTwo(static_cast<uint64_t>(AbsOrMin(imm))); in VisitRem()
8927 DCHECK(IsPowerOfTwo(static_cast<uint64_t>(AbsOrMin(imm)))); in VisitRem()
Dcode_generator_mips64.cc1884 DCHECK(IsPowerOfTwo(mask + 1)); in GenerateBitstringTypeCheckCompare()
3559 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in GenerateDivRemIntegral()
/art/runtime/gc/space/
Dregion_space.cc668 static_assert(IsPowerOfTwo(kPoisonDeadObjectSize) && in PoisonUnevacuatedRange()
669 IsPowerOfTwo(RegionSpace::kAlignment) && in PoisonUnevacuatedRange()
/art/libdexfile/dex/
Ddex_file_verifier.cc3043 static_assert(IsPowerOfTwo(0), "0 not marked as power of two"); in CheckAtMostOneOfPublicProtectedPrivate()
3044 static_assert(IsPowerOfTwo(kAccPublic), "kAccPublic not marked as power of two"); in CheckAtMostOneOfPublicProtectedPrivate()
3045 static_assert(IsPowerOfTwo(kAccProtected), "kAccProtected not marked as power of two"); in CheckAtMostOneOfPublicProtectedPrivate()
3046 static_assert(IsPowerOfTwo(kAccPrivate), "kAccPrivate not marked as power of two"); in CheckAtMostOneOfPublicProtectedPrivate()
3047 return IsPowerOfTwo(flags & (kAccPublic | kAccProtected | kAccPrivate)); in CheckAtMostOneOfPublicProtectedPrivate()
/art/imgdiag/
Dimgdiag.cc482 DCHECK(IsPowerOfTwo(component_size)); in DiffEntryContents()