Searched refs:IsPowerOfTwo (Results 1 – 22 of 22) sorted by relevance
/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 | 182 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 | 84 static_assert(IsPowerOfTwo(kSize), "Size must be power of two"); in IndexOf()
|
/art/runtime/mirror/ |
D | 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),
|
D | array.h | 77 DCHECK(IsPowerOfTwo(component_size)) << component_size; in DataOffset() 85 static_assert(IsPowerOfTwo(kComponentSize), "Invalid component size"); in DataOffset()
|
/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 | nodes_vector.h | 34 DCHECK(IsPowerOfTwo(base)); in Alignment() 41 DCHECK(IsPowerOfTwo(base)); in IsAlignedAt()
|
D | instruction_simplifier.cc | 1425 } 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()
|
D | scheduler_arm.cc | 821 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in HandleDivRemConstantIntegralLatencies()
|
D | loop_optimization.cc | 1109 DCHECK(IsPowerOfTwo(chunk)); in Vectorize() 1705 DCHECK(IsPowerOfTwo(length) && length >= 2u); in TrySetVectorLength()
|
D | code_generator_arm_vixl.cc | 4057 } 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()
|
D | code_generator_mips.cc | 2038 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()
|
D | code_generator_mips64.cc | 1884 DCHECK(IsPowerOfTwo(mask + 1)); in GenerateBitstringTypeCheckCompare() 3559 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in GenerateDivRemIntegral()
|
/art/runtime/gc/space/ |
D | region_space.cc | 668 static_assert(IsPowerOfTwo(kPoisonDeadObjectSize) && in PoisonUnevacuatedRange() 669 IsPowerOfTwo(RegionSpace::kAlignment) && in PoisonUnevacuatedRange()
|
/art/libdexfile/dex/ |
D | dex_file_verifier.cc | 3043 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/ |
D | imgdiag.cc | 482 DCHECK(IsPowerOfTwo(component_size)); in DiffEntryContents()
|