Home
last modified time | relevance | path

Searched refs:bits (Results 1 – 23 of 23) sorted by relevance

/art/runtime/base/
Dbit_utils.h222 static constexpr T GetIntLimit(size_t bits) { in GetIntLimit() argument
224 DCHECK_CONSTEXPR(bits > 0, "bits cannot be zero", 0) in GetIntLimit()
225 DCHECK_CONSTEXPR(bits < BitSizeOf<T>(), "kBits must be < max.", 0) in GetIntLimit()
226 static_cast<T>(1) << (bits - 1); in GetIntLimit()
270 static constexpr T MaxInt(size_t bits) { in MaxInt() argument
272 DCHECK_CONSTEXPR(std::is_unsigned<T>::value || bits > 0, "bits cannot be zero for signed", 0) in MaxInt()
273 DCHECK_CONSTEXPR(bits <= BitSizeOf<T>(), "kBits must be < max.", 0) in MaxInt()
274 bits == BitSizeOf<T>() in MaxInt()
277 ? (bits == 1 in MaxInt()
279 : static_cast<T>(MaxInt<typename std::make_unsigned<T>::type>(bits - 1))) in MaxInt()
[all …]
Dbit_vector_test.cc71 uint32_t bits[kWords]; in TEST() local
72 memset(bits, 0, sizeof(bits)); in TEST()
74 BitVector bv(false, Allocator::GetNoopAllocator(), kWords, bits); in TEST()
77 EXPECT_EQ(bits, bv.GetRawStorage()); in TEST()
128 uint32_t bits[kWords]; in TEST() local
129 memset(bits, 0, sizeof(bits)); in TEST()
131 BitVector bv(false, Allocator::GetNoopAllocator(), kWords, bits); in TEST()
Dbit_vector.h144 static constexpr uint32_t BitsToWords(uint32_t bits) { in BitsToWords() argument
145 return RoundUp(bits, kWordBits) / kWordBits; in BitsToWords()
/art/runtime/
Dart_field-inl.h217 JValue bits; in GetFloat() local
218 bits.SetI(Get32(object)); in GetFloat()
219 return bits.GetF(); in GetFloat()
225 JValue bits; in SetFloat() local
226 bits.SetF(f); in SetFloat()
227 Set32<kTransactionActive>(object, bits.GetI()); in SetFloat()
232 JValue bits; in GetDouble() local
233 bits.SetJ(Get64(object)); in GetDouble()
234 return bits.GetD(); in GetDouble()
240 JValue bits; in SetDouble() local
[all …]
Ddex_file_verifier_test.cc881 uint32_t bits = POPCOUNT(kInterfaceDisallowed); in TEST_F() local
882 for (uint32_t i = 1; i < (1u << bits); ++i) { in TEST_F()
1045 uint32_t bits = POPCOUNT(kAccFlags); in TEST_F() local
1046 for (uint32_t j = 1; j < (1u << bits); ++j) { in TEST_F()
1255 uint32_t bits = POPCOUNT(kInterfaceDisallowed); in TEST_F() local
1256 for (uint32_t i = 1; i < (1u << bits); ++i) { in TEST_F()
/art/runtime/interpreter/mterp/mips/
Dop_iput_wide_quick.S11 addu a2, a2, a3 # obj.field (64 bits, aligned) <- a0/a1
12 STORE64(a0, a1, a2) # obj.field (64 bits, aligned) <- a0/a1
Dop_iput_quick.S12 $store a0, 0(t0) # obj.field (8/16/32 bits) <- a0
/art/test/577-checker-fp2int/
Dinfo.txt1 Unit test for float/double to raw bits conversions.
/art/test/436-shift-constant/
Dinfo.txt1 Regression tests for shift instructions and constants larger than 8bits.
/art/test/583-checker-zero/
Dinfo.txt1 Regression test for optimizing that used to think 0.0 has the same bits
/art/runtime/interpreter/mterp/x86/
Dop_const.S2 movl 2(rPC), %eax # grab all 32 bits at once
/art/runtime/interpreter/mterp/x86_64/
Dop_const.S2 movl 2(rPC), %eax # grab all 32 bits at once
/art/test/419-long-parameter/
Dinfo.txt2 on 32bits architectures. The move to hard float ABI makes it so that the
/art/runtime/interpreter/mterp/mips64/
Dop_int_to_long.S3 GET_VREG a0, a3 # a0 <- vB (sign-extended to 64 bits)
/art/runtime/interpreter/mterp/
Dgen_mterp.py88 bits = -1
91 bits += 1
93 if handler_size_bytes == 0 or handler_size_bytes != (1 << bits):
96 handler_size_bits = bits
/art/test/510-checker-try-catch/smali/
DRuntime.smali60 # The sum of the low and high 32 bits treated as integers is returned to prove
253 # to the location of the catch phi. The sum of the low and high 32 bits treated
347 # Values were chosen so that all 64 bits are used.
439 # and returned. Values were chosen so that all 64 bits are used.
/art/runtime/arch/arm/
Dquick_entrypoints_arm.S542 and r3, #LOCK_WORD_READ_BARRIER_STATE_MASK_TOGGLED @ zero the read barrier bits
558 and r3, #LOCK_WORD_READ_BARRIER_STATE_MASK_TOGGLED @ zero the read barrier bits.
560 …lsr r3, r2, LOCK_WORD_READ_BARRIER_STATE_SHIFT @ if either of the upper two bits (28-29) are s…
563 strex r3, r2, [r0, #MIRROR_OBJECT_LOCK_WORD_OFFSET] @ strex necessary for read barrier bits
600 cbnz r2, .Lslow_unlock @ if either of the top two bits are set, go slow path
603 and r3, #LOCK_WORD_READ_BARRIER_STATE_MASK_TOGGLED @ zero the read barrier bits
605 uxth r3, r3 @ zero top 16 bits
/art/compiler/optimizing/
Dcode_generator_arm64.cc2566 int bits = instruction->GetResultType() == Primitive::kPrimInt ? 32 : 64; in DivRemByPowerOfTwo() local
2567 __ Asr(temp, dividend, bits - 1); in DivRemByPowerOfTwo()
2568 __ Lsr(temp, temp, bits - ctz_imm); in DivRemByPowerOfTwo()
/art/runtime/interpreter/mterp/out/
Dmterp_mips.S7568 LOAD64(a0, a1, t0) # a0 <- obj.field (64 bits, aligned)
7791 lbu a0, 0(t0) # a0 <- obj.field (8/16/32 bits)
7831 lhu a0, 0(t0) # a0 <- obj.field (8/16/32 bits)
Dmterp_x86_64.S683 movl 2(rPC), %eax # grab all 32 bits at once
Dmterp_x86.S716 movl 2(rPC), %eax # grab all 32 bits at once
Dmterp_mips64.S3670 GET_VREG a0, a3 # a0 <- vB (sign-extended to 64 bits)
Dmterp_arm.S6906 ldrd r0, [r3, ip] @ r0<- obj.field (64 bits, aligned)