Searched refs:TruncToPowerOfTwo (Results 1 – 3 of 3) sorted by relevance
/art/libartbase/base/ |
D | bit_utils_test.cc | 125 static_assert(0 == TruncToPowerOfTwo<uint32_t>(0u), "TestTruncToPowerOfTwo32#1"); 126 static_assert(1 == TruncToPowerOfTwo<uint32_t>(1u), "TestTruncToPowerOfTwo32#2"); 127 static_assert(2 == TruncToPowerOfTwo<uint32_t>(2u), "TestTruncToPowerOfTwo32#3"); 128 static_assert(2 == TruncToPowerOfTwo<uint32_t>(3u), "TestTruncToPowerOfTwo32#4"); 129 static_assert(4 == TruncToPowerOfTwo<uint32_t>(7u), "TestTruncToPowerOfTwo32#5"); 130 static_assert(0x20000u == TruncToPowerOfTwo<uint32_t>(0x3aaaau), 132 static_assert(0x40000000u == TruncToPowerOfTwo<uint32_t>(0x40000001u), 134 static_assert(0x80000000u == TruncToPowerOfTwo<uint32_t>(0x80000000u), 137 static_assert(0 == TruncToPowerOfTwo<uint64_t>(UINT64_C(0)), "TestTruncToPowerOfTwo64#1"); 138 static_assert(1 == TruncToPowerOfTwo<uint64_t>(UINT64_C(1)), "TestTruncToPowerOfTwo64#2"); [all …]
|
D | bit_utils.h | 138 constexpr T TruncToPowerOfTwo(T val) { in TruncToPowerOfTwo() function
|
/art/compiler/optimizing/ |
D | loop_analysis.cc | 175 TruncToPowerOfTwo(std::min({uf1, uf2, kArm64SimdMaxUnrollFactor})); in GetSIMDUnrollingFactor() 342 unroll_factor = TruncToPowerOfTwo(std::min(uf2, unroll_cnt)); in GetSIMDUnrollingFactor()
|