Searched refs:MostSignificantBit (Results 1 – 4 of 4) sorted by relevance
/art/libartbase/base/ |
D | bit_utils_test.cc | 78 static_assert(-1 == MostSignificantBit<uint32_t>(0u), "TestMSB32#1"); 79 static_assert(0 == MostSignificantBit<uint32_t>(1u), "TestMSB32#2"); 80 static_assert(31 == MostSignificantBit<uint32_t>(~static_cast<uint32_t>(0u)), "TestMSB32#3"); 81 static_assert(2 == MostSignificantBit<uint32_t>(0b110), "TestMSB32#4"); 82 static_assert(2 == MostSignificantBit<uint32_t>(0b100), "TestMSB32#5"); 84 static_assert(-1 == MostSignificantBit<uint64_t>(UINT64_C(0)), "TestMSB64#1"); 85 static_assert(0 == MostSignificantBit<uint64_t>(UINT64_C(1)), "TestMSB64#2"); 86 static_assert(63 == MostSignificantBit<uint64_t>(~UINT64_C(0)), "TestMSB64#3"); 87 static_assert(34 == MostSignificantBit<uint64_t>(UINT64_C(0x700000000)), "TestMSB64#4"); 88 static_assert(34 == MostSignificantBit<uint64_t>(UINT64_C(0x777777777)), "TestMSB64#5");
|
D | bit_utils.h | 107 constexpr ssize_t MostSignificantBit(T value) { in MostSignificantBit() function 125 return static_cast<size_t>(MostSignificantBit(value) + 1); in MinimumBitsToStore()
|
/art/tools/cpp-define-generator/ |
D | globals.def | 40 art::MostSignificantBit(art::kAccClassIsFinalizable))
|
/art/compiler/optimizing/ |
D | code_generator_arm_vixl.cc | 2076 uint32_t most_significant_bit = MostSignificantBit(fpu_spill_mask_); in ComputeSpillMask() 2200 DCHECK_LT(MostSignificantBit(extra_regs), LeastSignificantBit(core_spill_mask_)); in GenerateFrameEntry() 2292 DCHECK_LT(MostSignificantBit(extra_regs), LeastSignificantBit(pop_mask)); in GenerateFrameExit()
|