/art/runtime/ |
D | 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");
|
D | indirect_reference_table.h | 183 static_assert(IsPowerOfTwo(sizeof(IrtEntry)), "Unexpected sizeof(IrtEntry)");
|
D | art_method.h | 184 static_assert(IsPowerOfTwo((kAccIntrinsicBits >> kAccFlagsShift) + 1), in GetIntrinsic()
|
/art/libartbase/base/ |
D | bounded_fifo.h | 30 static_assert(IsPowerOfTwo(kMaxSize), "kMaxSize must be a power of 2.");
|
D | bit_utils.h | 145 constexpr bool IsPowerOfTwo(T x) { in IsPowerOfTwo() function 155 DCHECK((x != 0) && IsPowerOfTwo(x)); in WhichPowerOf2() 166 DCHECK(IsPowerOfTwo(n)); in RoundDown()
|
D | zip_archive.cc | 53 DCHECK(IsPowerOfTwo(alignment)) << alignment; in IsAlignedTo()
|
/art/cmdline/ |
D | memory_representation.h | 32 static_assert(IsPowerOfTwo(kDivisor), "Divisor must be a power of 2");
|
/art/runtime/interpreter/ |
D | interpreter_cache.h | 88 static_assert(IsPowerOfTwo(kSize), "Size must be power of two"); in IndexOf()
|
/art/runtime/mirror/ |
D | dex_cache.h | 140 static_assert(IsPowerOfTwo(kDexCacheTypeCacheSize), 145 static_assert(IsPowerOfTwo(kDexCacheStringCacheSize), 150 static_assert(IsPowerOfTwo(kDexCacheFieldCacheSize), 155 static_assert(IsPowerOfTwo(kDexCacheMethodCacheSize), 161 static_assert(IsPowerOfTwo(kDexCacheMethodTypeCacheSize),
|
D | array.h | 80 DCHECK(IsPowerOfTwo(component_size)) << component_size; in DataOffset() 88 static_assert(IsPowerOfTwo(kComponentSize), "Invalid component size"); in DataOffset()
|
D | var_handle.cc | 1240 static_assert(IsPowerOfTwo(sizeof(T)), "unexpected size"); in IsAccessAligned()
|
/art/compiler/optimizing/ |
D | scheduler_arm64.cc | 101 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in VisitDiv() 169 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in VisitRem()
|
D | gvn.cc | 46 DCHECK(IsPowerOfTwo(num_buckets_)); in ValueSet() 59 DCHECK(IsPowerOfTwo(num_buckets_)); in ValueSet()
|
D | instruction_simplifier.cc | 1421 } else if ((num_tail_bits_set == reg_bits - shift) && IsPowerOfTwo(value + 1) && in VisitAnd() 1744 if (cst_value == std::numeric_limits<int64_t>::min() || IsPowerOfTwo(std::abs(cst_value))) { in TryToReuseDiv() 1833 } else if (IsPowerOfTwo(factor)) { in VisitMul() 1843 } else if (IsPowerOfTwo(factor - 1)) { in VisitMul() 1858 } else if (IsPowerOfTwo(factor + 1)) { in VisitMul()
|
D | nodes_vector.h | 34 DCHECK(IsPowerOfTwo(base)); in Alignment() 41 DCHECK(IsPowerOfTwo(base)); in IsAlignedAt()
|
D | scheduler_arm.cc | 821 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in HandleDivRemConstantIntegralLatencies()
|
D | code_generator_arm_vixl.cc | 2199 if ((fpu_spill_mask_ == 0u || IsPowerOfTwo(fpu_spill_mask_)) && in GenerateFrameEntry() 2216 DCHECK(IsPowerOfTwo(fpu_spill_mask_)); in GenerateFrameEntry() 2282 if ((fpu_spill_mask_ == 0u || IsPowerOfTwo(fpu_spill_mask_)) && in GenerateFrameExit() 2289 DCHECK(IsPowerOfTwo(fpu_spill_mask_)); in GenerateFrameExit() 4401 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in GenerateDivRemConstantIntegral() 4433 } else if (IsPowerOfTwo(AbsOrMin(value)) && in VisitDiv() 4550 } else if (IsPowerOfTwo(AbsOrMin(value)) && !HasNonNegativeResultOrMinInt(rem)) { in VisitRem() 5904 return opcode == AND && IsPowerOfTwo(value + 1); in CanEncode32BitConstantAsImmediate() 7502 DCHECK(IsPowerOfTwo(mask + 1)); in GenerateBitstringTypeCheckCompare() 8487 DCHECK(IsPowerOfTwo(value + 1)); in GenerateAndConst() [all …]
|
D | loop_optimization.cc | 1109 DCHECK(IsPowerOfTwo(chunk)); in Vectorize() 1660 DCHECK(IsPowerOfTwo(length) && length >= 2u); in TrySetVectorLengthImpl()
|
D | code_generator_arm64.cc | 1880 DCHECK(IsPowerOfTwo(mask + 1)); in GenerateBitstringTypeCheckCompare() 3058 DCHECK(IsPowerOfTwo(abs_imm)) << abs_imm; in FOR_EACH_CONDITION_INSTRUCTION() 3282 if (IsPowerOfTwo(AbsOrMin(imm))) { in GenerateIntDivForConstDenom() 5631 DCHECK(IsPowerOfTwo(abs_imm)) << abs_imm; in GenerateIntRemForPower2Denom() 5669 if (IsPowerOfTwo(AbsOrMin(imm))) { in GenerateIntRemForConstDenom() 6429 static_assert(IsPowerOfTwo(kReferenceLoadMinFarOffset), "Expecting a power of 2."); in GenerateFieldLoadWithBakerReadBarrier()
|
D | code_generator_x86_64.cc | 3781 DCHECK(IsPowerOfTwo(AbsOrMin(imm))); in RemByPowerOfTwo() 3817 DCHECK(IsPowerOfTwo(AbsOrMin(imm))); in DivByPowerOfTwo() 3998 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in GenerateDivRemIntegral() 6061 DCHECK(IsPowerOfTwo(mask + 1)); in GenerateBitstringTypeCheckCompare()
|
D | code_generator_x86.cc | 3679 DCHECK(IsPowerOfTwo(AbsOrMin(imm))); in RemByPowerOfTwo() 3699 DCHECK(IsPowerOfTwo(AbsOrMin(imm))); in DivByPowerOfTwo() 3805 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in GenerateDivRemIntegral() 6965 DCHECK(IsPowerOfTwo(mask + 1)); in GenerateBitstringTypeCheckCompare()
|
/art/runtime/gc/space/ |
D | region_space.cc | 678 static_assert(IsPowerOfTwo(kPoisonDeadObjectSize) && in PoisonUnevacuatedRange() 679 IsPowerOfTwo(RegionSpace::kAlignment) && in PoisonUnevacuatedRange()
|
/art/libdexfile/dex/ |
D | dex_file_verifier.cc | 117 static_assert(IsPowerOfTwo(0), "0 not marked as power of two"); in CheckAtMostOneOfPublicProtectedPrivate() 118 static_assert(IsPowerOfTwo(kAccPublic), "kAccPublic not marked as power of two"); in CheckAtMostOneOfPublicProtectedPrivate() 119 static_assert(IsPowerOfTwo(kAccProtected), "kAccProtected not marked as power of two"); in CheckAtMostOneOfPublicProtectedPrivate() 120 static_assert(IsPowerOfTwo(kAccPrivate), "kAccPrivate not marked as power of two"); in CheckAtMostOneOfPublicProtectedPrivate() 121 return IsPowerOfTwo(flags & (kAccPublic | kAccProtected | kAccPrivate)); in CheckAtMostOneOfPublicProtectedPrivate()
|
/art/imgdiag/ |
D | imgdiag.cc | 482 DCHECK(IsPowerOfTwo(component_size)); in DiffEntryContents()
|
/art/libprofile/profile/ |
D | profile_compilation_info.cc | 2105 DCHECK(IsPowerOfTwo(static_cast<uint32_t>(flag))); in FlagBitmapIndex()
|