/aosp12/art/runtime/ |
H A 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");
|
H A D | indirect_reference_table.h | 183 static_assert(IsPowerOfTwo(sizeof(IrtEntry)), "Unexpected sizeof(IrtEntry)");
|
H A D | art_method.h | 184 static_assert(IsPowerOfTwo((kAccIntrinsicBits >> kAccFlagsShift) + 1), in GetIntrinsic()
|
/aosp12/art/runtime/mirror/ |
H A D | dex_cache.h | 142 static_assert(IsPowerOfTwo(kDexCacheTypeCacheSize), 147 static_assert(IsPowerOfTwo(kDexCacheStringCacheSize), 152 static_assert(IsPowerOfTwo(kDexCacheFieldCacheSize), 157 static_assert(IsPowerOfTwo(kDexCacheMethodCacheSize), 163 static_assert(IsPowerOfTwo(kDexCacheMethodTypeCacheSize),
|
H A D | array.h | 80 DCHECK(IsPowerOfTwo(component_size)) << component_size; in DataOffset() 88 static_assert(IsPowerOfTwo(kComponentSize), "Invalid component size"); in DataOffset()
|
/aosp12/frameworks/native/libs/vr/libbroadcastring/include/libbroadcastring/ |
H A D | broadcast_ring.h | 156 static constexpr bool IsPowerOfTwo(uint32_t size) { in IsPowerOfTwo() function 166 IsPowerOfTwo(Traits::kStaticRecordCount), 254 return IsPowerOfTwo(count) ? count : (NextPowerOf2(count) / 2); in GetRecordCount() 497 if (!IsPowerOfTwo(record_count())) return false; in ValidateGeometry()
|
/aosp12/art/libartbase/base/ |
H A D | bounded_fifo.h | 30 static_assert(IsPowerOfTwo(kMaxSize), "kMaxSize must be a power of 2.");
|
H A 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()
|
H A D | zip_archive.cc | 53 DCHECK(IsPowerOfTwo(alignment)) << alignment; in IsAlignedTo()
|
/aosp12/art/cmdline/ |
H A D | memory_representation.h | 32 static_assert(IsPowerOfTwo(kDivisor), "Divisor must be a power of 2");
|
/aosp12/art/runtime/interpreter/ |
H A D | interpreter_cache.h | 88 static_assert(IsPowerOfTwo(kSize), "Size must be power of two"); in IndexOf()
|
/aosp12/art/compiler/optimizing/ |
H A D | scheduler_arm64.cc | 101 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in VisitDiv() 169 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in VisitRem()
|
H A D | gvn.cc | 46 DCHECK(IsPowerOfTwo(num_buckets_)); in ValueSet() 59 DCHECK(IsPowerOfTwo(num_buckets_)); in ValueSet()
|
H A D | instruction_simplifier.cc | 1513 } else if ((num_tail_bits_set == reg_bits - shift) && IsPowerOfTwo(value + 1) && in VisitAnd() 1836 if (cst_value == std::numeric_limits<int64_t>::min() || IsPowerOfTwo(std::abs(cst_value))) { in TryToReuseDiv() 1925 } else if (IsPowerOfTwo(factor)) { in VisitMul() 1935 } else if (IsPowerOfTwo(factor - 1)) { in VisitMul() 1950 } else if (IsPowerOfTwo(factor + 1)) { in VisitMul()
|
H A D | nodes_vector.h | 34 DCHECK(IsPowerOfTwo(base)); in Alignment() 41 DCHECK(IsPowerOfTwo(base)); in IsAlignedAt()
|
H A D | scheduler_arm.cc | 821 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in HandleDivRemConstantIntegralLatencies()
|
H A D | code_generator_arm_vixl.cc | 2228 if ((fpu_spill_mask_ == 0u || IsPowerOfTwo(fpu_spill_mask_)) && in GenerateFrameEntry() 2245 DCHECK(IsPowerOfTwo(fpu_spill_mask_)); in GenerateFrameEntry() 2311 if ((fpu_spill_mask_ == 0u || IsPowerOfTwo(fpu_spill_mask_)) && in GenerateFrameExit() 2318 DCHECK(IsPowerOfTwo(fpu_spill_mask_)); in GenerateFrameExit() 4447 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in GenerateDivRemConstantIntegral() 4479 } else if (IsPowerOfTwo(AbsOrMin(value)) && in VisitDiv() 4596 } else if (IsPowerOfTwo(AbsOrMin(value)) && !HasNonNegativeOrMinIntInputAt(rem, 0)) { in VisitRem() 5976 return opcode == AND && IsPowerOfTwo(value + 1); in CanEncode32BitConstantAsImmediate() 7598 DCHECK(IsPowerOfTwo(mask + 1)); in GenerateBitstringTypeCheckCompare() 8583 DCHECK(IsPowerOfTwo(value + 1)); in GenerateAndConst() [all …]
|
/aosp12/system/extras/simpleperf/ |
H A D | event_fd.cpp | 156 CHECK(IsPowerOfTwo(mmap_pages)); in CreateMappedBuffer() 257 CHECK(IsPowerOfTwo(aux_buffer_size)); in CreateAuxBuffer()
|
H A D | utils.h | 154 bool IsPowerOfTwo(uint64_t value);
|
H A D | utils.cpp | 175 bool IsPowerOfTwo(uint64_t value) { in IsPowerOfTwo() function
|
H A D | cmd_record.cpp | 829 if (v > std::numeric_limits<size_t>::max() || !IsPowerOfTwo(v) || v % sysconf(_SC_PAGE_SIZE)) { in ParseOptions() 913 if (!IsPowerOfTwo(value->uint_value) || in ParseOptions()
|
/aosp12/frameworks/native/cmds/installd/ |
H A D | otapreopt.cpp | 91 static constexpr bool IsPowerOfTwo(T x) { in IsPowerOfTwo() function 534 static_assert(IsPowerOfTwo(kPageSize), "page size must be power of two"); in ChooseRelocationOffsetDelta()
|
/aosp12/art/runtime/interpreter/mterp/ |
H A D | nterp.cc | 70 static_assert(IsPowerOfTwo(kNterpHotnessMask + 1), "Hotness mask must be a (power of 2) - 1"); in CheckNterpAsmConstants() 71 static_assert(IsPowerOfTwo(kTieredHotnessMask + 1), in CheckNterpAsmConstants()
|
/aosp12/art/runtime/gc/space/ |
H A D | region_space.cc | 678 static_assert(IsPowerOfTwo(kPoisonDeadObjectSize) && in PoisonUnevacuatedRange() 679 IsPowerOfTwo(RegionSpace::kAlignment) && in PoisonUnevacuatedRange()
|
/aosp12/art/libdexfile/dex/ |
H A 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()
|