Home
last modified time | relevance | path

Searched refs:MostSignificantBit (Results 1 – 5 of 5) sorted by relevance

/art/libartbase/base/
Dbit_utils_test.cc78 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");
Dbit_utils.h107 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/
Dglobals.def37 art::MostSignificantBit(art::kAccNative))
45 art::MostSignificantBit(art::kAccClassIsFinalizable))
/art/dexdump/
Ddexdump.cc397 size_t msb = art::MostSignificantBit(static_cast<uint8_t>(~sb)); in utf8Bytes()
/art/compiler/optimizing/
Dcode_generator_arm_vixl.cc2077 uint32_t most_significant_bit = MostSignificantBit(fpu_spill_mask_); in ComputeSpillMask()
2208 DCHECK_LT(MostSignificantBit(extra_regs), LeastSignificantBit(core_spill_mask_)); in GenerateFrameEntry()
2299 DCHECK_LT(MostSignificantBit(extra_regs), LeastSignificantBit(pop_mask)); in GenerateFrameExit()