Home
last modified time | relevance | path

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

12

/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()
Dvar_handle.cc1240 static_assert(IsPowerOfTwo(sizeof(T)), "unexpected size"); in IsAccessAligned()
/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()
Dcode_generator_arm64.cc1732 DCHECK(IsPowerOfTwo(mask + 1)); in GenerateBitstringTypeCheckCompare()
2887 DCHECK(IsPowerOfTwo(abs_imm)) << abs_imm; in FOR_EACH_CONDITION_INSTRUCTION()
2971 if (IsPowerOfTwo(AbsOrMin(imm))) { in GenerateIntDivForConstDenom()
5187 DCHECK(IsPowerOfTwo(abs_imm)) << abs_imm; in GenerateIntRemForPower2Denom()
5216 if (IsPowerOfTwo(AbsOrMin(imm))) { in GenerateIntRemForConstDenom()
5953 static_assert(IsPowerOfTwo(kReferenceLoadMinFarOffset), "Expecting a power of 2."); in GenerateFieldLoadWithBakerReadBarrier()
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_x86_64.cc3568 DCHECK(IsPowerOfTwo(AbsOrMin(imm))); in RemByPowerOfTwo()
3604 DCHECK(IsPowerOfTwo(AbsOrMin(imm))); in DivByPowerOfTwo()
3785 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in GenerateDivRemIntegral()
5838 DCHECK(IsPowerOfTwo(mask + 1)); in GenerateBitstringTypeCheckCompare()
Dcode_generator_x86.cc3508 DCHECK(IsPowerOfTwo(AbsOrMin(imm))); in RemByPowerOfTwo()
3528 DCHECK(IsPowerOfTwo(AbsOrMin(imm))); in DivByPowerOfTwo()
3634 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in GenerateDivRemIntegral()
6709 DCHECK(IsPowerOfTwo(mask + 1)); in GenerateBitstringTypeCheckCompare()
/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()

12