Home
last modified time | relevance | path

Searched refs:RoundUpToPowerOfTwo (Results 1 – 7 of 7) sorted by relevance

/art/libartbase/base/
Dbit_utils_test.cc151 static_assert(0 == RoundUpToPowerOfTwo<uint32_t>(0u), "TestRoundUpPowerOfTwo32#1");
152 static_assert(1 == RoundUpToPowerOfTwo<uint32_t>(1u), "TestRoundUpPowerOfTwo32#2");
153 static_assert(2 == RoundUpToPowerOfTwo<uint32_t>(2u), "TestRoundUpPowerOfTwo32#3");
154 static_assert(4 == RoundUpToPowerOfTwo<uint32_t>(3u), "TestRoundUpPowerOfTwo32#4");
155 static_assert(8 == RoundUpToPowerOfTwo<uint32_t>(7u), "TestRoundUpPowerOfTwo32#5");
156 static_assert(0x40000u == RoundUpToPowerOfTwo<uint32_t>(0x2aaaau),
158 static_assert(0x80000000u == RoundUpToPowerOfTwo<uint32_t>(0x40000001u),
160 static_assert(0x80000000u == RoundUpToPowerOfTwo<uint32_t>(0x80000000u),
163 static_assert(0 == RoundUpToPowerOfTwo<uint64_t>(UINT64_C(0)), "TestRoundUpPowerOfTwo64#1");
164 static_assert(1 == RoundUpToPowerOfTwo<uint64_t>(UINT64_C(1)), "TestRoundUpPowerOfTwo64#2");
[all …]
Dbit_struct_detail.h154 : RoundUpToPowerOfTwo(kBitStructSizeOf); in ValidateBitStructSize()
Dbit_struct_test.cc30 : RoundUpToPowerOfTwo(kBitStructSizeOf); in ValidateBitStructSize()
Dbit_utils.h129 constexpr T RoundUpToPowerOfTwo(T x) { in RoundUpToPowerOfTwo() function
/art/libdexfile/dex/
Dtype_lookup_table.cc148 return SupportedSize(num_class_defs) ? RoundUpToPowerOfTwo(num_class_defs) * sizeof(Entry) : 0u; in RawDataLength()
/art/compiler/optimizing/
Dgvn.cc302 size_t bucket_count = RoundUpToPowerOfTwo(num_entries_ + (num_entries_ >> 1)); in IdealBucketCount()
/art/runtime/jit/
Djit_code_cache.cc2011 size_t capacity = RoundUpToPowerOfTwo(number_of_methods * 100 / 80); in Initialize()