Home
last modified time | relevance | path

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

12

/aosp12/art/runtime/
H A 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");
H A Dindirect_reference_table.h183 static_assert(IsPowerOfTwo(sizeof(IrtEntry)), "Unexpected sizeof(IrtEntry)");
H A Dart_method.h184 static_assert(IsPowerOfTwo((kAccIntrinsicBits >> kAccFlagsShift) + 1), in GetIntrinsic()
/aosp12/art/runtime/mirror/
H A Ddex_cache.h142 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 Darray.h80 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 Dbroadcast_ring.h156 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 Dbounded_fifo.h30 static_assert(IsPowerOfTwo(kMaxSize), "kMaxSize must be a power of 2.");
H A 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()
H A Dzip_archive.cc53 DCHECK(IsPowerOfTwo(alignment)) << alignment; in IsAlignedTo()
/aosp12/art/cmdline/
H A Dmemory_representation.h32 static_assert(IsPowerOfTwo(kDivisor), "Divisor must be a power of 2");
/aosp12/art/runtime/interpreter/
H A Dinterpreter_cache.h88 static_assert(IsPowerOfTwo(kSize), "Size must be power of two"); in IndexOf()
/aosp12/art/compiler/optimizing/
H A Dscheduler_arm64.cc101 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in VisitDiv()
169 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in VisitRem()
H A Dgvn.cc46 DCHECK(IsPowerOfTwo(num_buckets_)); in ValueSet()
59 DCHECK(IsPowerOfTwo(num_buckets_)); in ValueSet()
H A Dinstruction_simplifier.cc1513 } 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 Dnodes_vector.h34 DCHECK(IsPowerOfTwo(base)); in Alignment()
41 DCHECK(IsPowerOfTwo(base)); in IsAlignedAt()
H A Dscheduler_arm.cc821 } else if (IsPowerOfTwo(AbsOrMin(imm))) { in HandleDivRemConstantIntegralLatencies()
H A Dcode_generator_arm_vixl.cc2228 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 Devent_fd.cpp156 CHECK(IsPowerOfTwo(mmap_pages)); in CreateMappedBuffer()
257 CHECK(IsPowerOfTwo(aux_buffer_size)); in CreateAuxBuffer()
H A Dutils.h154 bool IsPowerOfTwo(uint64_t value);
H A Dutils.cpp175 bool IsPowerOfTwo(uint64_t value) { in IsPowerOfTwo() function
H A Dcmd_record.cpp829 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 Dotapreopt.cpp91 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 Dnterp.cc70 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 Dregion_space.cc678 static_assert(IsPowerOfTwo(kPoisonDeadObjectSize) && in PoisonUnevacuatedRange()
679 IsPowerOfTwo(RegionSpace::kAlignment) && in PoisonUnevacuatedRange()
/aosp12/art/libdexfile/dex/
H A Ddex_file_verifier.cc117 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()

12