Searched refs:RoundUpToPowerOfTwo (Results 1 – 7 of 7) sorted by relevance
/art/libartbase/base/ |
D | bit_utils_test.cc | 151 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 …]
|
D | bit_struct_detail.h | 154 : RoundUpToPowerOfTwo(kBitStructSizeOf); in ValidateBitStructSize()
|
D | bit_struct_test.cc | 30 : RoundUpToPowerOfTwo(kBitStructSizeOf); in ValidateBitStructSize()
|
D | bit_utils.h | 129 constexpr T RoundUpToPowerOfTwo(T x) { in RoundUpToPowerOfTwo() function
|
/art/libdexfile/dex/ |
D | type_lookup_table.cc | 148 return SupportedSize(num_class_defs) ? RoundUpToPowerOfTwo(num_class_defs) * sizeof(Entry) : 0u; in RawDataLength()
|
/art/compiler/optimizing/ |
D | gvn.cc | 302 size_t bucket_count = RoundUpToPowerOfTwo(num_entries_ + (num_entries_ >> 1)); in IdealBucketCount()
|
/art/runtime/jit/ |
D | jit_code_cache.cc | 2011 size_t capacity = RoundUpToPowerOfTwo(number_of_methods * 100 / 80); in Initialize()
|