Home
last modified time | relevance | path

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

12

/art/test/708-jit-cache-churn/src/
DJitCacheChurnTest.java137 int bits = i; in $noinline$Call() local
138 bits = ((bits >>> 1) & 0x55555555) | ((bits << 1) & 0x55555555); in $noinline$Call()
139 bits = ((bits >>> 2) & 0x33333333) | ((bits << 2) & 0x33333333); in $noinline$Call()
140 bits = ((bits >>> 4) & 0x0f0f0f0f) | ((bits << 4) & 0x0f0f0f0f); in $noinline$Call()
141 bits = ((bits >>> 8) & 0x00ff00ff) | ((bits << 8) & 0x00ff00ff); in $noinline$Call()
142 bits = (bits >>> 16) | (bits << 16); in $noinline$Call()
143 sum += bits; in $noinline$Call()
/art/runtime/base/
Dbit_utils_iterator.h43 explicit BitIteratorBase(T bits) : bits_(bits) { } in BitIteratorBase() argument
99 IterationRange<LowToHighBitIterator<T>> LowToHighBits(T bits) { in LowToHighBits() argument
101 LowToHighBitIterator<T>(bits), LowToHighBitIterator<T>()); in LowToHighBits()
105 IterationRange<HighToLowBitIterator<T>> HighToLowBits(T bits) { in HighToLowBits() argument
107 HighToLowBitIterator<T>(bits), HighToLowBitIterator<T>()); in HighToLowBits()
Dbit_utils.h244 constexpr T GetIntLimit(size_t bits) { in GetIntLimit() argument
245 DCHECK_NE(bits, 0u); in GetIntLimit()
246 DCHECK_LT(bits, BitSizeOf<T>()); in GetIntLimit()
247 return static_cast<T>(1) << (bits - 1); in GetIntLimit()
291 constexpr T MaxInt(size_t bits) { in MaxInt() argument
292 DCHECK(std::is_unsigned<T>::value || bits > 0u) << "bits cannot be zero for signed."; in MaxInt()
293 DCHECK_LE(bits, BitSizeOf<T>()); in MaxInt()
295 return bits == BitSizeOf<T>() in MaxInt()
298 ? ((bits == 1u) ? 0 : static_cast<T>(MaxInt<unsigned_type>(bits - 1))) in MaxInt()
299 : static_cast<T>(UINT64_C(1) << bits) - static_cast<T>(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.h231 JValue bits; in GetFloat() local
232 bits.SetI(Get32(object)); in GetFloat()
233 return bits.GetF(); in GetFloat()
239 JValue bits; in SetFloat() local
240 bits.SetF(f); in SetFloat()
241 Set32<kTransactionActive>(object, bits.GetI()); in SetFloat()
246 JValue bits; in GetDouble() local
247 bits.SetJ(Get64(object)); in GetDouble()
248 return bits.GetD(); in GetDouble()
254 JValue bits; in SetDouble() local
[all …]
Ddex_file_verifier_test.cc813 uint32_t bits = POPCOUNT(kInterfaceDisallowed); in TEST_F() local
814 for (uint32_t i = 1; i < (1u << bits); ++i) { in TEST_F()
977 uint32_t bits = POPCOUNT(kAccFlags); in TEST_F() local
978 for (uint32_t j = 1; j < (1u << bits); ++j) { in TEST_F()
1187 uint32_t bits = POPCOUNT(kInterfaceDisallowed); in TEST_F() local
1188 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
14 STORE64(a0, a1, a2) # obj.field (64 bits, aligned) <- a0/a1
Dop_iput_quick.S14 $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/oatdump/
Doatdump.cc633 int64_t bits[kByteKindCount] = {}; member
649 bits[kind] += count; in AddBits()
653 const int64_t sum = std::accumulate(bits, bits + kByteKindCount, 0u); in Dump()
656 Dump(os, "Code ", bits[kByteKindCode], sum); in Dump()
657 Dump(os, "QuickMethodHeader ", bits[kByteKindQuickMethodHeader], sum); in Dump()
658 Dump(os, "CodeInfoEncoding ", bits[kByteKindCodeInfoEncoding], sum); in Dump()
659 Dump(os, "CodeInfoLocationCatalog ", bits[kByteKindCodeInfoLocationCatalog], sum); in Dump()
660 Dump(os, "CodeInfoDexRegisterMap ", bits[kByteKindCodeInfoDexRegisterMap], sum); in Dump()
661 Dump(os, "CodeInfoStackMasks ", bits[kByteKindCodeInfoStackMasks], sum); in Dump()
662 Dump(os, "CodeInfoRegisterMasks ", bits[kByteKindCodeInfoRegisterMasks], sum); in Dump()
[all …]
/art/runtime/arch/arm/
Dquick_entrypoints_arm.S681 @ unlocked case - r1: original lock word that's zero except for the read barrier bits.
682 … r2, r1, r2 @ r2 holds thread id with count of 0 with preserved read barrier bits
687 .Lnot_unlocked: @ r1: original lock word, r2: thread_id with count of 0 and zero read barrier bits
689 cbnz r3, .Lslow_lock @ if either of the top two bits are set, go slow path
691 uxth r2, r2 @ zero top 16 bits
747 and r3, #LOCK_WORD_GC_STATE_MASK_SHIFTED_TOGGLED @ zero the gc bits
752 and r3, #LOCK_WORD_GC_STATE_MASK_SHIFTED @ r3: zero except for the preserved gc bits
757 strex r2, r3, [r0, #MIRROR_OBJECT_LOCK_WORD_OFFSET] @ strex necessary for read barrier bits
766 strex r2, r1, [r0, #MIRROR_OBJECT_LOCK_WORD_OFFSET] @ strex necessary for read barrier 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/mips64/
Dquick_entrypoints_mips64.S1233 # Unlocked case - $t1: original lock word that's zero except for the read barrier bits.
1234 …t2, $t1, $t0 # $t2 holds thread id with count of 0 with preserved read barrier bits
1240 # $t1: original lock word, $t0: thread_id with count of 0 and zero read barrier bits
1242 bnezc $t2, .Lslow_lock # if either of the top two bits are set, go slow path
1244 andi $t2, $t2, 0xFFFF # zero top 16 bits
1295 and $t2, $t1, $t3 # zero the gc bits
1299 and $t2, $t1, $t2 # $t2: zero except for the preserved gc bits
1853 dsrl $a3, $a3, PRIMITIVE_TYPE_SIZE_SHIFT_SHIFT # Component size shift is in high 16 bits.
2400 and $at, $at, $t9 # Sign bit = 1 IFF both bits are 1.
/art/runtime/arch/mips/
Dquick_entrypoints_mips.S1262 # Unlocked case - $t1: original lock word that's zero except for the read barrier bits.
1263 …t2, $t1, $t0 # $t2 holds thread id with count of 0 with preserved read barrier bits
1270 # $t1: original lock word, $t0: thread_id with count of 0 and zero read barrier bits
1272 bnez $t2, .Lslow_lock # if either of the top two bits are set, go slow path
1274 andi $t2, $t2, 0xFFFF # zero top 16 bits
1326 and $t2, $t1, $t3 # zero the gc bits
1330 and $t2, $t1, $t2 # $t2: zero except for the preserved gc bits
1909 srl $a3, $a3, PRIMITIVE_TYPE_SIZE_SHIFT_SHIFT # Component size shift is in high 16 bits.
/art/compiler/optimizing/
Dcode_generator_arm64.cc3381 int bits = instruction->GetResultType() == Primitive::kPrimInt ? 32 : 64; in DivRemByPowerOfTwo() local
3382 __ Asr(temp, dividend, bits - 1); in DivRemByPowerOfTwo()
3383 __ Lsr(temp, temp, bits - ctz_imm); in DivRemByPowerOfTwo()
/art/runtime/interpreter/mterp/out/
Dmterp_mips.S7344 LOAD64(a0, a1, t0) # a0 <- obj.field (64 bits, aligned)
7571 lbu a0, 0(t0) # a0 <- obj.field (8/16/32 bits)
7611 lhu a0, 0(t0) # a0 <- obj.field (8/16/32 bits)
Dmterp_mips64.S3461 GET_VREG a0, a3 # a0 <- vB (sign-extended to 64 bits)

12