Searched refs:MostSignificantBit (Results 1 – 3 of 3) sorted by relevance
/art/runtime/base/ |
D | bit_utils_test.cc | 77 static_assert(-1 == MostSignificantBit<uint32_t>(0u), "TestMSB32#1"); 78 static_assert(0 == MostSignificantBit<uint32_t>(1u), "TestMSB32#2"); 79 static_assert(31 == MostSignificantBit<uint32_t>(~static_cast<uint32_t>(0u)), "TestMSB32#3"); 80 static_assert(2 == MostSignificantBit<uint32_t>(0b110), "TestMSB32#4"); 81 static_assert(2 == MostSignificantBit<uint32_t>(0b100), "TestMSB32#5"); 83 static_assert(-1 == MostSignificantBit<uint64_t>(UINT64_C(0)), "TestMSB64#1"); 84 static_assert(0 == MostSignificantBit<uint64_t>(UINT64_C(1)), "TestMSB64#2"); 85 static_assert(63 == MostSignificantBit<uint64_t>(~UINT64_C(0)), "TestMSB64#3"); 86 static_assert(34 == MostSignificantBit<uint64_t>(UINT64_C(0x700000000)), "TestMSB64#4"); 87 static_assert(34 == MostSignificantBit<uint64_t>(UINT64_C(0x777777777)), "TestMSB64#5");
|
D | bit_utils.h | 67 static constexpr ssize_t MostSignificantBit(T value) { in MostSignificantBit() function 85 return static_cast<size_t>(MostSignificantBit(value) + 1); in MinimumBitsToStore()
|
/art/compiler/optimizing/ |
D | code_generator_arm.cc | 883 uint32_t most_significant_bit = MostSignificantBit(fpu_spill_mask_); in ComputeSpillMask()
|