Home
last modified time | relevance | path

Searched refs:CountPopulation (Results 1 – 25 of 30) sorted by relevance

12

/external/v8/src/
Dbit-vector.cc47 return base::bits::CountPopulation(data_.inline_); in Count()
51 count += base::bits::CountPopulation(data_.ptr_[i]); in Count()
Dreglist.h25 return base::bits::CountPopulation(list); in NumRegs()
/external/v8/src/arm64/
Dutils-arm64.cc108 return static_cast<int>(base::bits::CountPopulation(value)); in CountSetBits()
111 base::bits::CountPopulation(static_cast<uint32_t>(value & 0xFFFFFFFFF))); in CountSetBits()
/external/v8/src/wasm/
Dwasm-external-refs.cc225 return base::bits::CountPopulation(ReadUnalignedValue<uint32_t>(data)); in word32_popcnt_wrapper()
229 return base::bits::CountPopulation(ReadUnalignedValue<uint64_t>(data)); in word64_popcnt_wrapper()
Dwasm-interpreter.cc386 return base::bits::CountPopulation(val); in ExecuteI32Popcnt()
402 return base::bits::CountPopulation(val); in ExecuteI64Popcnt()
/external/v8/src/base/
Dbits.h35 CountPopulation(T value) { in CountPopulation() function
121 return CountPopulation(static_cast<U>(~u & (u - 1u))); in CountTrailingZeros()
/external/v8/src/compiler/
Dcommon-operator.cc256 DCHECK_EQ(base::bits::CountPopulation(bit_mask_) - in InputIterator()
257 base::bits::CountPopulation(kEndMarker), in InputIterator()
290 return base::bits::CountPopulation(bit_mask_) - in CountReal()
291 base::bits::CountPopulation(kEndMarker); in CountReal()
/external/v8/src/compiler/mips64/
Dinstruction-selector-mips64.cc509 uint32_t mask_width = base::bits::CountPopulation(mask); in VisitWord32And()
538 uint32_t shift = base::bits::CountPopulation(~mask); in VisitWord32And()
559 uint32_t mask_width = base::bits::CountPopulation(mask); in VisitWord64And()
592 uint32_t shift = base::bits::CountPopulation(~mask); in VisitWord64And()
676 uint32_t mask_width = base::bits::CountPopulation(mask); in VisitWord32Shl()
706 unsigned mask_width = base::bits::CountPopulation(mask); in VisitWord32Shr()
768 uint32_t mask_width = base::bits::CountPopulation(mask); in VisitWord64Shl()
799 unsigned mask_width = base::bits::CountPopulation(mask); in VisitWord64Shr()
Dcode-generator-mips64.cc3440 int count = base::bits::CountPopulation(saves_fpu); in FinishFrame()
3448 int count = base::bits::CountPopulation(saves); in FinishFrame()
3496 shrink_slots -= base::bits::CountPopulation(saves); in AssembleConstructFrame()
3497 shrink_slots -= base::bits::CountPopulation(saves_fpu); in AssembleConstructFrame()
3506 DCHECK_EQ(kNumCalleeSavedFPU, base::bits::CountPopulation(saves_fpu)); in AssembleConstructFrame()
3512 DCHECK_EQ(kNumCalleeSaved, base::bits::CountPopulation(saves) + 1); in AssembleConstructFrame()
/external/v8/src/wasm/baseline/
Dliftoff-register.h242 return base::bits::CountPopulation(regs_); in GetNumRegsSet()
/external/v8/src/wasm/baseline/arm64/
Dliftoff-assembler-arm64.h74 if ((base::bits::CountPopulation(list) & 1) != 0) list |= padreg.bit(); in PadRegList()
79 if ((base::bits::CountPopulation(list) & 1) != 0) list |= fp_scratch.bit(); in PadVRegList()
/external/v8/src/compiler/ppc/
Dcode-generator-ppc.cc2313 base::bits::CountPopulation(double_saves)); in FinishFrame()
2326 DCHECK(num_saves == base::bits::CountPopulation(saves)); in FinishFrame()
2423 shrink_slots -= base::bits::CountPopulation(saves); in AssembleConstructFrame()
2426 (kDoubleSize / kPointerSize) * base::bits::CountPopulation(saves_fp); in AssembleConstructFrame()
2433 DCHECK_EQ(kNumCalleeSavedDoubles, base::bits::CountPopulation(saves_fp)); in AssembleConstructFrame()
Dinstruction-selector-ppc.cc420 int mask_width = base::bits::CountPopulation(value); in IsContiguousMask32()
433 int mask_width = base::bits::CountPopulation(value); in IsContiguousMask64()
/external/v8/src/compiler/mips/
Dinstruction-selector-mips.cc403 uint32_t mask_width = base::bits::CountPopulation(mask); in VisitWord32And()
436 uint32_t shift = base::bits::CountPopulation(~mask); in VisitWord32And()
489 uint32_t mask_width = base::bits::CountPopulation(mask); in VisitWord32Shl()
519 unsigned mask_width = base::bits::CountPopulation(mask); in VisitWord32Shr()
Dcode-generator-mips.cc3191 int count = base::bits::CountPopulation(saves_fpu); in FinishFrame()
3199 int count = base::bits::CountPopulation(saves); in FinishFrame()
3246 shrink_slots -= base::bits::CountPopulation(saves); in AssembleConstructFrame()
3247 shrink_slots -= 2 * base::bits::CountPopulation(saves_fpu); in AssembleConstructFrame()
3261 DCHECK_EQ(kNumCalleeSaved, base::bits::CountPopulation(saves) + 1); in AssembleConstructFrame()
/external/v8/src/compiler/arm64/
Dinstruction-selector-arm64.cc858 uint32_t mask_width = base::bits::CountPopulation(mask); in VisitWord32And()
899 uint64_t mask_width = base::bits::CountPopulation(mask); in VisitWord64And()
974 uint32_t mask_width = base::bits::CountPopulation(mask); in VisitWord32Shl()
1058 unsigned mask_width = base::bits::CountPopulation(mask); in VisitWord32Shr()
1102 unsigned mask_width = base::bits::CountPopulation(mask); in VisitWord64Shr()
/external/v8/src/compiler/s390/
Dcode-generator-s390.cc2942 base::bits::CountPopulation(double_saves)); in FinishFrame()
2951 DCHECK(num_saves == base::bits::CountPopulation(saves)); in FinishFrame()
3036 shrink_slots -= base::bits::CountPopulation(saves); in AssembleConstructFrame()
3039 (kDoubleSize / kPointerSize) * base::bits::CountPopulation(saves_fp); in AssembleConstructFrame()
3046 DCHECK_EQ(kNumCalleeSavedDoubles, base::bits::CountPopulation(saves_fp)); in AssembleConstructFrame()
Dinstruction-selector-s390.cc839 int mask_width = base::bits::CountPopulation(value);
852 int mask_width = base::bits::CountPopulation(value); in IsContiguousMask64()
/external/v8/src/compiler/x64/
Dcode-generator-x64.cc3039 const uint32_t saves_fp_count = base::bits::CountPopulation(saves_fp); in FinishFrame()
3131 shrink_slots -= base::bits::CountPopulation(saves); in AssembleConstructFrame()
3133 base::bits::CountPopulation(saves_fp) * (kQuadWordSize / kPointerSize); in AssembleConstructFrame()
3141 const uint32_t saves_fp_count = base::bits::CountPopulation(saves_fp); in AssembleConstructFrame()
3185 const uint32_t saves_fp_count = base::bits::CountPopulation(saves_fp); in AssembleReturn()
/external/v8/src/compiler/arm/
Dcode-generator-arm.cc3007 DCHECK_EQ((last - first + 1), base::bits::CountPopulation(saves_fp)); in FinishFrame()
3014 frame->AllocateSavedCalleeRegisterSlots(base::bits::CountPopulation(saves)); in FinishFrame()
3099 shrink_slots -= base::bits::CountPopulation(saves); in AssembleConstructFrame()
3101 shrink_slots -= 2 * base::bits::CountPopulation(saves_fp); in AssembleConstructFrame()
3112 DCHECK_EQ((last - first + 1), base::bits::CountPopulation(saves_fp)); in AssembleConstructFrame()
Dinstruction-selector-arm.cc815 uint32_t width = base::bits::CountPopulation(value); in VisitWord32And()
970 uint32_t width = base::bits::CountPopulation(value); in VisitWord32Shr()
/external/v8/src/ia32/
Dmacro-assembler-ia32.cc1282 unsigned cnt = base::bits::CountPopulation(src); in Move()
1308 unsigned cnt = base::bits::CountPopulation(src); in Move()
/external/v8/src/x64/
Dmacro-assembler-x64.cc1244 unsigned pop = base::bits::CountPopulation(src); in Move()
1263 unsigned pop = base::bits::CountPopulation(src); in Move()
/external/v8/src/ppc/
Dmacro-assembler-ppc.cc347 int16_t num_to_push = base::bits::CountPopulation(regs); in MultiPush()
372 int16_t num_to_push = base::bits::CountPopulation(dregs); in MultiPushDoubles()
/external/v8/src/s390/
Dmacro-assembler-s390.cc381 int16_t num_to_push = base::bits::CountPopulation(regs); in MultiPush()
406 int16_t num_to_push = base::bits::CountPopulation(dregs); in MultiPushDoubles()

12