Home
last modified time | relevance | path

Searched refs:POPCOUNT (Results 1 – 25 of 35) 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/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.h175 count += POPCOUNT(LoadBits(bit_offset + bit, kNumBits)); in PopCount()
177 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/arch/mips64/
Dcallee_save_frame_mips64.h95 return RoundUp((POPCOUNT(GetCoreSpills(type)) /* gprs */ + in GetFrameSize()
96 POPCOUNT(GetFpSpills(type)) /* fprs */ + in GetFrameSize()
108 (POPCOUNT(GetCoreSpills(type)) + in GetFpr1Offset()
109 POPCOUNT(GetFpSpills(type))) * static_cast<size_t>(kMips64PointerSize); in GetFpr1Offset()
115 POPCOUNT(GetCoreSpills(type)) * static_cast<size_t>(kMips64PointerSize); in GetGpr1Offset()
Dcontext_mips64.cc48 DCHECK_EQ(spill_pos, POPCOUNT(frame_info.CoreSpillMask())); in FillCalleeSaves()
55 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/runtime/arch/mips/
Dcallee_save_frame_mips.h104 return RoundUp((POPCOUNT(GetCoreSpills(type)) /* gprs */ + in GetFrameSize()
105 POPCOUNT(GetFpSpills(type)) /* fprs */ + in GetFrameSize()
117 (POPCOUNT(GetCoreSpills(type)) + in GetFpr1Offset()
118 POPCOUNT(GetFpSpills(type))) * static_cast<size_t>(kMipsPointerSize); in GetFpr1Offset()
124 POPCOUNT(GetCoreSpills(type)) * static_cast<size_t>(kMipsPointerSize); in GetGpr1Offset()
Dcontext_mips.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/compiler/utils/arm/
Djni_macro_assembler_arm_vixl.cc99 cfi().AdjustCFAOffset(POPCOUNT(core_spill_mask) * kFramePointerSize); in BuildFrame()
105 DCHECK_EQ(fp_spill_mask >> CTZ(fp_spill_mask), ~0u >> (32 - POPCOUNT(fp_spill_mask))); in BuildFrame()
107 ___ Vpush(SRegisterList(vixl32::SRegister(first), POPCOUNT(fp_spill_mask))); in BuildFrame()
108 cfi().AdjustCFAOffset(POPCOUNT(fp_spill_mask) * kFramePointerSize); in BuildFrame()
113 int pushed_values = POPCOUNT(core_spill_mask) + POPCOUNT(fp_spill_mask); in BuildFrame()
159 int pop_values = POPCOUNT(core_spill_mask) + POPCOUNT(fp_spill_mask); in RemoveFrame()
167 DCHECK_EQ(fp_spill_mask >> CTZ(fp_spill_mask), ~0u >> (32 - POPCOUNT(fp_spill_mask))); in RemoveFrame()
169 ___ Vpop(SRegisterList(vixl32::SRegister(first), POPCOUNT(fp_spill_mask))); in RemoveFrame()
170 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/runtime/
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/optimizing/
Dcode_generator.h276 return POPCOUNT(core_callee_save_mask_); in GetNumberOfCoreCalleeSaveRegisters()
313 return POPCOUNT(GetSlowPathSpills(locations, core_registers)); in GetNumberOfSlowPathSpills()
676 return POPCOUNT(fpu_spill_mask_) * GetFloatingPointSpillSlotSize(); in GetFpuSpillSize()
680 return POPCOUNT(core_spill_mask_) * GetWordSize(); in GetCoreSpillSize()
685 return (POPCOUNT(allocated_registers_.GetCoreRegisters() & core_callee_save_mask_) != 1) in HasAllocatedCalleeSaveRegisters()
686 || (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.cc433 if (POPCOUNT(i) < 2) { in TEST_F()
569 if (POPCOUNT(j) < 2) { in TEST_F()
808 uint32_t bits = POPCOUNT(kInterfaceDisallowed); in TEST_F()
958 uint32_t bits = POPCOUNT(kAccFlags); in TEST_F()
960 if (POPCOUNT(j) < 2) { in TEST_F()
1168 uint32_t bits = POPCOUNT(kInterfaceDisallowed); in TEST_F()
/art/runtime/gc/accounting/
Dspace_bitmap.cc187 buffer_size += POPCOUNT(garbage); in SweepWalk()

12