/art/runtime/ |
D | monitor_pool.h | 197 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");
|
D | indirect_reference_table.h | 147 static_assert(IsPowerOfTwo(sizeof(IrtEntry)), "Unexpected sizeof(IrtEntry)"); 223 static_assert(IsPowerOfTwo(mask)); in GetGlobalOrWeakGlobalMask()
|
D | art_field-inl.h | 75 static_assert(IsPowerOfTwo(kFieldSize)); in VisitArrayRoots()
|
D | art_method.h | 253 static_assert(IsPowerOfTwo((kAccIntrinsicBits >> kAccFlagsShift) + 1),
|
/art/runtime/jni/ |
D | local_reference_table.h | 209 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()
|
D | local_reference_table.cc | 60 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/ |
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()
|
D | mem_map.cc | 398 DCHECK(IsPowerOfTwo(alignment)); in MapAnonymousAligned()
|
/art/runtime/interpreter/ |
D | interpreter_cache.h | 75 static_assert(IsPowerOfTwo(kSize), "Size must be power of two"); in IndexOf()
|
/art/cmdline/ |
D | memory_representation.h | 32 static_assert(IsPowerOfTwo(kDivisor), "Divisor must be a power of 2");
|
/art/runtime/mirror/ |
D | dex_cache.h | 268 static_assert(IsPowerOfTwo(kDexCacheTypeCacheSize), 273 static_assert(IsPowerOfTwo(kDexCacheStringCacheSize), 278 static_assert(IsPowerOfTwo(kDexCacheFieldCacheSize), 283 static_assert(IsPowerOfTwo(kDexCacheMethodCacheSize), 289 static_assert(IsPowerOfTwo(kDexCacheMethodTypeCacheSize),
|
D | array.h | 83 DCHECK(IsPowerOfTwo(component_size)) << component_size; in DataOffset() 91 static_assert(IsPowerOfTwo(kComponentSize), "Invalid component size"); in DataOffset()
|
/art/compiler/optimizing/ |
D | scheduler_arm64.cc | 210 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in VisitDiv() 278 } 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 | 1652 } 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()
|
D | code_generator_arm_vixl.cc | 2429 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 …]
|
D | scheduler_arm.cc | 932 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in HandleDivRemConstantIntegralLatencies()
|
/art/runtime/gc/collector/ |
D | mark_compact.h | 199 static_assert(IsPowerOfTwo(kBitsPerVectorWord)); 200 static_assert(IsPowerOfTwo(Bitmap::kBitsPerBitmapWord)); 204 static_assert(IsPowerOfTwo(kBitmapWordsPerVectorWord));
|
/art/sigchainlib/ |
D | sigchain.cc | 180 static constexpr bool IsPowerOfTwo(T x) { in IsPowerOfTwo() function 194 static_assert(IsPowerOfTwo(kNumSignalsPerKey));
|
/art/runtime/gc/space/ |
D | region_space.cc | 673 static_assert(IsPowerOfTwo(kPoisonDeadObjectSize) && in PoisonUnevacuatedRange() 674 IsPowerOfTwo(RegionSpace::kAlignment) && in PoisonUnevacuatedRange()
|
/art/libdexfile/dex/ |
D | dex_file_verifier.cc | 115 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/ |
D | profile_compilation_info.h | 934 DCHECK(IsPowerOfTwo(static_cast<uint32_t>(flag))); in FlagBitmapIndex()
|