Home
last modified time | relevance | path

Searched refs:POPCOUNT (Results 1 – 25 of 31) sorted by relevance

12

/art/runtime/arch/x86/
Dcallee_save_frame_x86.h66 return RoundUp((POPCOUNT(GetCoreSpills(type)) /* gprs */ + in GetFrameSize()
67 2 * POPCOUNT(GetFpSpills(type)) /* fprs */ + in GetFrameSize()
79 (POPCOUNT(GetCoreSpills(type)) + in GetFpr1Offset()
80 2 * POPCOUNT(GetFpSpills(type))) * static_cast<size_t>(kX86PointerSize); in GetFpr1Offset()
86 POPCOUNT(GetCoreSpills(type)) * static_cast<size_t>(kX86PointerSize); in GetGpr1Offset()
Dcontext_x86.cc46 DCHECK_EQ(1, POPCOUNT(frame_info.CoreSpillMask() & ~core_regs)); // Return address spill. in FillCalleeSaves()
51 DCHECK_EQ(spill_pos, POPCOUNT(frame_info.CoreSpillMask()) - 1); in FillCalleeSaves()
65 POPCOUNT(frame_info.CoreSpillMask()) - 1 + 2 * POPCOUNT(frame_info.FpSpillMask())); in FillCalleeSaves()
/art/runtime/arch/x86_64/
Dcallee_save_frame_x86_64.h77 return RoundUp((POPCOUNT(GetCoreSpills(type)) /* gprs */ + in GetFrameSize()
78 POPCOUNT(GetFpSpills(type)) /* fprs */ + in GetFrameSize()
90 (POPCOUNT(GetCoreSpills(type)) + in GetFpr1Offset()
91 POPCOUNT(GetFpSpills(type))) * static_cast<size_t>(kX86_64PointerSize); in GetFpr1Offset()
97 POPCOUNT(GetCoreSpills(type)) * static_cast<size_t>(kX86_64PointerSize); in GetGpr1Offset()
Dcontext_x86_64.cc45 DCHECK_EQ(1, POPCOUNT(frame_info.CoreSpillMask() & ~core_regs)); // Return address spill. in FillCalleeSaves()
50 DCHECK_EQ(spill_pos, POPCOUNT(frame_info.CoreSpillMask()) - 1); in FillCalleeSaves()
61 POPCOUNT(frame_info.CoreSpillMask()) - 1 + POPCOUNT(frame_info.FpSpillMask())); in FillCalleeSaves()
/art/runtime/arch/arm/
Dcallee_save_frame_arm.h79 return RoundUp((POPCOUNT(GetCoreSpills(type)) /* gprs */ + in GetFrameSize()
80 POPCOUNT(GetFpSpills(type)) /* fprs */ + in GetFrameSize()
92 (POPCOUNT(GetCoreSpills(type)) + in GetFpr1Offset()
93 POPCOUNT(GetFpSpills(type))) * static_cast<size_t>(kArmPointerSize); in GetFpr1Offset()
99 POPCOUNT(GetCoreSpills(type)) * static_cast<size_t>(kArmPointerSize); in GetGpr1Offset()
Dcontext_arm.cc51 DCHECK_EQ(spill_pos, POPCOUNT(frame_info.CoreSpillMask())); in FillCalleeSaves()
58 DCHECK_EQ(spill_pos, POPCOUNT(frame_info.CoreSpillMask()) + POPCOUNT(frame_info.FpSpillMask())); in FillCalleeSaves()
/art/runtime/arch/arm64/
Dcallee_save_frame_arm64.h102 return RoundUp((POPCOUNT(GetCoreSpills(type)) /* gprs */ + in GetFrameSize()
103 POPCOUNT(GetFpSpills(type)) /* fprs */ + in GetFrameSize()
115 (POPCOUNT(GetCoreSpills(type)) + in GetFpr1Offset()
116 POPCOUNT(GetFpSpills(type))) * static_cast<size_t>(kArm64PointerSize); in GetFpr1Offset()
122 POPCOUNT(GetCoreSpills(type)) * static_cast<size_t>(kArm64PointerSize); in GetGpr1Offset()
Dcontext_arm64.cc57 DCHECK_EQ(spill_pos, POPCOUNT(frame_info.CoreSpillMask())); in FillCalleeSaves()
64 DCHECK_EQ(spill_pos, POPCOUNT(frame_info.CoreSpillMask()) + POPCOUNT(frame_info.FpSpillMask())); in FillCalleeSaves()
/art/libartbase/base/
Dbit_utils_test.cc62 static_assert(0 == POPCOUNT<uint32_t>(0u), "TestPOPCOUNT32#1");
63 static_assert(1 == POPCOUNT<uint32_t>(8u), "TestPOPCOUNT32#2");
64 static_assert(15 == POPCOUNT<uint32_t>(0x55555554u), "TestPOPCOUNT32#3");
65 static_assert(16 == POPCOUNT<uint32_t>(0xaaaaaaaau), "TestPOPCOUNT32#4");
66 static_assert(31 == POPCOUNT<uint32_t>(0xfffffffeu), "TestPOPCOUNT32#5");
67 static_assert(32 == POPCOUNT<uint32_t>(0xffffffffu), "TestPOPCOUNT32#6");
69 static_assert(0 == POPCOUNT<uint64_t>(UINT64_C(0)), "TestPOPCOUNT64#1");
70 static_assert(1 == POPCOUNT<uint64_t>(UINT64_C(0x40000)), "TestPOPCOUNT64#2");
71 static_assert(16 == POPCOUNT<uint64_t>(UINT64_C(0x1414141482828282)), "TestPOPCOUNT64#3");
72 static_assert(31 == POPCOUNT<uint64_t>(UINT64_C(0x0000ffff00007fff)), "TestPOPCOUNT64#4");
[all …]
Dbit_vector.cc235 count += POPCOUNT(storage_[word]); in NumSetBits()
321 count += POPCOUNT(storage[word]); in NumSetBits()
324 count += POPCOUNT(storage[word_end] & ~(0xffffffffu << partial_word_bits)); in NumSetBits()
Dbit_memory_region.h183 count += POPCOUNT(LoadBits(bit_offset + bit, kNumBits)); in PopCount()
185 count += POPCOUNT(LoadBits(bit_offset + bit, bit_length - bit)); in PopCount()
Dbit_table_test.cc152 EXPECT_EQ(1 + static_cast<uint32_t>(POPCOUNT(value)), builder.size()); in TEST()
/art/runtime/
Dnterp_helpers.cc92 return (POPCOUNT(core_spills) + POPCOUNT(fp_spills)) * kPointerSize; in NterpGetFrameEntrySize()
Dindex_bss_mapping.cc41 return bss_offset - POPCOUNT(mask_from_index) * slot_size; in GetBssOffset()
Dcha.cc232 size_t core_spill_size = POPCOUNT(frame_info.CoreSpillMask()) * in SetShouldDeoptimizeFlag()
234 size_t fpu_spill_size = POPCOUNT(frame_info.FpSpillMask()) * in SetShouldDeoptimizeFlag()
/art/compiler/utils/arm/
Djni_macro_assembler_arm_vixl.cc101 cfi().AdjustCFAOffset(POPCOUNT(core_spill_mask) * kFramePointerSize); in BuildFrame()
108 DCHECK_EQ(fp_spill_mask >> CTZ(fp_spill_mask), ~0u >> (32 - POPCOUNT(fp_spill_mask))); in BuildFrame()
110 ___ Vpush(SRegisterList(vixl32::SRegister(first), POPCOUNT(fp_spill_mask))); in BuildFrame()
111 cfi().AdjustCFAOffset(POPCOUNT(fp_spill_mask) * kFramePointerSize); in BuildFrame()
116 int pushed_values = POPCOUNT(core_spill_mask) + POPCOUNT(fp_spill_mask); in BuildFrame()
165 size_t pop_values = POPCOUNT(core_spill_mask) + POPCOUNT(fp_spill_mask); in RemoveFrame()
173 DCHECK_EQ(fp_spill_mask >> CTZ(fp_spill_mask), ~0u >> (32 - POPCOUNT(fp_spill_mask))); in RemoveFrame()
175 ___ Vpop(SRegisterList(vixl32::SRegister(first), POPCOUNT(fp_spill_mask))); in RemoveFrame()
176 cfi().AdjustCFAOffset(-kFramePointerSize * POPCOUNT(fp_spill_mask)); in RemoveFrame()
Dassembler_arm_vixl.cc385 int number_of_regs = POPCOUNT(static_cast<uint32_t>(regs)); in StoreRegisterList()
406 int number_of_regs = POPCOUNT(static_cast<uint32_t>(regs)); in LoadRegisterList()
/art/compiler/optimizing/
Dcode_generator.h288 return POPCOUNT(core_callee_save_mask_); in GetNumberOfCoreCalleeSaveRegisters()
325 return POPCOUNT(GetSlowPathSpills(locations, core_registers)); in GetNumberOfSlowPathSpills()
706 return POPCOUNT(fpu_spill_mask_) * GetCalleePreservedFPWidth(); in GetFpuSpillSize()
710 return POPCOUNT(core_spill_mask_) * GetWordSize(); in GetCoreSpillSize()
715 return (POPCOUNT(allocated_registers_.GetCoreRegisters() & core_callee_save_mask_) != 1) in HasAllocatedCalleeSaveRegisters()
716 || (POPCOUNT(allocated_registers_.GetFloatingPointRegisters() & fpu_callee_save_mask_) != 0); in HasAllocatedCalleeSaveRegisters()
Dlocations.h469 return POPCOUNT(core_registers_) + POPCOUNT(floating_point_registers_); in GetNumberOfRegisters()
/art/libdexfile/dex/
Dcompact_offset_table.cc53 size_t count = POPCOUNT(static_cast<uintptr_t>(bit_mask) << (kBitsPerIntPtrT - 1 - bit_index)); in GetOffset()
Ddex_file_verifier_test.cc435 if (POPCOUNT(i) < 2) { in TEST_F()
571 if (POPCOUNT(j) < 2) { in TEST_F()
810 uint32_t bits = POPCOUNT(kInterfaceDisallowed); in TEST_F()
960 uint32_t bits = POPCOUNT(kAccFlags); in TEST_F()
962 if (POPCOUNT(j) < 2) { in TEST_F()
1170 uint32_t bits = POPCOUNT(kInterfaceDisallowed); in TEST_F()
/art/runtime/gc/accounting/
Dspace_bitmap.cc186 buffer_size += POPCOUNT(garbage); in SweepWalk()
/art/compiler/jni/quick/x86_64/
Dcalling_convention_x86_64.cc257 kAlwaysSpilledMmxRegisters == POPCOUNT(kFpCalleeSpillMask & ~kNativeFpCalleeSpillMask)); in OutArgSize()
/art/runtime/interpreter/
Dinterpreter_intrinsics.cc68 UNARY_INTRINSIC(MterpIntegerBitCount, POPCOUNT, GetVReg, SetI);
101 UNARY_INTRINSIC(MterpLongBitCount, POPCOUNT, GetVRegLong, SetI);
/art/compiler/jni/quick/arm64/
Dcalling_convention_arm64.cc345 constexpr size_t lr_index = POPCOUNT(kCoreCalleeSpillMask) - 1u; in CalleeSaveRegisters()

12