Home
last modified time | relevance | path

Searched refs:shift_amount (Results 1 – 25 of 39) sorted by relevance

12

/external/v8/src/
Dfixed-dtoa.cc42 void Shift(int shift_amount) { in Shift() argument
43 DCHECK(-64 <= shift_amount && shift_amount <= 64); in Shift()
44 if (shift_amount == 0) { in Shift()
46 } else if (shift_amount == -64) { in Shift()
49 } else if (shift_amount == 64) { in Shift()
52 } else if (shift_amount <= 0) { in Shift()
53 high_bits_ <<= -shift_amount; in Shift()
54 high_bits_ += low_bits_ >> (64 + shift_amount); in Shift()
55 low_bits_ <<= -shift_amount; in Shift()
57 low_bits_ >>= shift_amount; in Shift()
[all …]
Dstrtod.cc305 int shift_amount = (precision_digits_count + kDenominatorLog) - in DiyFpStrtod() local
307 input.set_f(input.f() >> shift_amount); in DiyFpStrtod()
308 input.set_e(input.e() + shift_amount); in DiyFpStrtod()
311 error = (error >> shift_amount) + 1 + kDenominator; in DiyFpStrtod()
312 precision_digits_count -= shift_amount; in DiyFpStrtod()
Dbignum.cc219 void Bignum::ShiftLeft(int shift_amount) { in ShiftLeft() argument
221 exponent_ += shift_amount / kBigitSize; in ShiftLeft()
222 int local_shift = shift_amount % kBigitSize; in ShiftLeft()
700 void Bignum::BigitsShiftLeft(int shift_amount) { in BigitsShiftLeft() argument
701 DCHECK(shift_amount < kBigitSize); in BigitsShiftLeft()
702 DCHECK(shift_amount >= 0); in BigitsShiftLeft()
705 Chunk new_carry = bigits_[i] >> (kBigitSize - shift_amount); in BigitsShiftLeft()
706 bigits_[i] = ((bigits_[i] << shift_amount) + carry) & kBigitMask; in BigitsShiftLeft()
Dbignum.h37 void ShiftLeft(int shift_amount);
101 void BigitsShiftLeft(int shift_amount);
/external/valgrind/memcheck/tests/vbit-test/
Dvbits.c697 shl_vbits(vbits_t v, unsigned shift_amount) in shl_vbits() argument
699 assert(shift_amount < v.num_bits); in shl_vbits()
704 case 8: new.bits.u8 <<= shift_amount; break; in shl_vbits()
705 case 16: new.bits.u16 <<= shift_amount; break; in shl_vbits()
706 case 32: new.bits.u32 <<= shift_amount; break; in shl_vbits()
707 case 64: new.bits.u64 <<= shift_amount; break; in shl_vbits()
719 shr_vbits(vbits_t v, unsigned shift_amount) in shr_vbits() argument
721 assert(shift_amount < v.num_bits); in shr_vbits()
726 case 8: new.bits.u8 >>= shift_amount; break; in shr_vbits()
727 case 16: new.bits.u16 >>= shift_amount; break; in shr_vbits()
[all …]
Dbinary.c117 unsigned shift_amount = opnd2->value.u8; in check_result_for_binary() local
119 expected_vbits = shl_vbits(opnd1->vbits, shift_amount); in check_result_for_binary()
130 unsigned shift_amount = opnd2->value.u8; in check_result_for_binary() local
132 expected_vbits = shr_vbits(opnd1->vbits, shift_amount); in check_result_for_binary()
143 unsigned shift_amount = opnd2->value.u8; in check_result_for_binary() local
145 expected_vbits = sar_vbits(opnd1->vbits, shift_amount); in check_result_for_binary()
/external/v8/src/arm64/
Dassembler-arm64-inl.h344 Operand::Operand(Register reg, Shift shift, unsigned shift_amount)
349 shift_amount_(shift_amount) {
350 DCHECK(reg.Is64Bits() || (shift_amount < kWRegSizeInBits));
351 DCHECK(reg.Is32Bits() || (shift_amount < kXRegSizeInBits));
356 Operand::Operand(Register reg, Extend extend, unsigned shift_amount)
361 shift_amount_(shift_amount) {
363 DCHECK(shift_amount <= 4);
432 unsigned Operand::shift_amount() const {
476 unsigned shift_amount)
478 shift_(NO_SHIFT), extend_(extend), shift_amount_(shift_amount) {
[all …]
Dassembler-arm64.cc2214 DCHECK(operand.IsShiftedRegister() && (operand.shift_amount() == 0)); in AddSubWithCarry()
2341 DCHECK(operand.IsShiftedRegister() && (operand.shift_amount() == 0)); in ConditionalCompare()
2386 unsigned shift_amount) { in EmitShift() argument
2389 lsl(rd, rn, shift_amount); in EmitShift()
2392 lsr(rd, rn, shift_amount); in EmitShift()
2395 asr(rd, rn, shift_amount); in EmitShift()
2398 ror(rd, rn, shift_amount); in EmitShift()
2449 DCHECK(rn.Is64Bits() || (rn.Is32Bits() && is_uint5(operand.shift_amount()))); in DataProcShiftedRegister()
2452 ShiftDP(operand.shift()) | ImmDPShift(operand.shift_amount()) | in DataProcShiftedRegister()
2465 ExtendMode(operand.extend()) | ImmExtendShift(operand.shift_amount()) | in DataProcExtendedRegister()
[all …]
Dassembler-arm64.h574 unsigned shift_amount = 0); // NOLINT(runtime/explicit)
581 unsigned shift_amount = 0);
608 inline unsigned shift_amount() const;
636 unsigned shift_amount = 0);
640 unsigned shift_amount = 0);
651 unsigned shift_amount() const { return shift_amount_; } in shift_amount() function
1741 inline static Instr ImmShiftLS(unsigned shift_amount);
Dmacro-assembler-arm64.cc145 DCHECK(operand.shift_amount() <= 4); in LogicalMacro()
150 operand.shift_amount()); in LogicalMacro()
258 } else if (operand.IsShiftedRegister() && (operand.shift_amount() != 0)) { in Mov()
262 EmitShift(dst, operand.reg(), operand.shift(), operand.shift_amount()); in Mov()
268 operand.shift_amount()); in Mov()
311 operand.shift_amount()); in Mvn()
360 } else if ((operand.IsShiftedRegister() && (operand.shift_amount() == 0)) || in ConditionalCompareMacro()
402 } else if (operand.IsShiftedRegister() && (operand.shift_amount() == 0)) { in Csel()
531 } else if (operand.IsShiftedRegister() && (operand.shift_amount() != 0)) { in AddSubWithCarryMacro()
535 DCHECK(is_uintn(operand.shift_amount(), in AddSubWithCarryMacro()
[all …]
/external/webrtc/webrtc/common_audio/
Dblocker.cc106 size_t shift_amount, in Blocker() argument
112 initial_delay_(block_size_ - gcd(chunk_size, shift_amount)), in Blocker()
119 shift_amount_(shift_amount), in Blocker()
Dlapped_transform.cc60 size_t shift_amount, in LappedTransform() argument
73 shift_amount, in LappedTransform()
Dblocker.h71 size_t shift_amount,
Dlapped_transform.h54 size_t shift_amount,
/external/v8/src/arm/
Dsimulator-arm.cc1402 int shift_amount = instr->ShiftAmountValue(); in GetShiftRm() local
1406 if ((shift == ROR) && (shift_amount == 0)) { in GetShiftRm()
1409 } else if (((shift == LSR) || (shift == ASR)) && (shift_amount == 0)) { in GetShiftRm()
1410 shift_amount = 32; in GetShiftRm()
1414 if (shift_amount == 0) { in GetShiftRm()
1423 result >>= (shift_amount - 1); in GetShiftRm()
1431 if (shift_amount == 0) { in GetShiftRm()
1434 result <<= (shift_amount - 1); in GetShiftRm()
1442 if (shift_amount == 0) { in GetShiftRm()
1447 uresult >>= (shift_amount - 1); in GetShiftRm()
[all …]
Ddisasm-arm.cc192 int shift_amount = instr->ShiftAmountValue(); in PrintShiftRm() local
197 if ((instr->RegShiftValue() == 0) && (shift == LSL) && (shift_amount == 0)) { in PrintShiftRm()
203 if ((shift == ROR) && (shift_amount == 0)) { in PrintShiftRm()
206 } else if (((shift == LSR) || (shift == ASR)) && (shift_amount == 0)) { in PrintShiftRm()
207 shift_amount = 32; in PrintShiftRm()
212 shift_amount); in PrintShiftRm()
/external/vixl/src/vixl/a64/
Dmacro-assembler-a64.cc796 VIXL_ASSERT(operand.shift_amount() <= 4); in LogicalMacro()
803 operand.shift_amount()); in LogicalMacro()
823 } else if (operand.IsShiftedRegister() && (operand.shift_amount() != 0)) { in Mov()
827 EmitShift(rd, operand.reg(), operand.shift(), operand.shift_amount()); in Mov()
832 operand.shift_amount()); in Mov()
992 int shift_amount) { in Movi() argument
995 if (shift_amount != 0 || shift != LSL) { in Movi()
996 movi(vd, imm, shift, shift_amount); in Movi()
1043 operand.shift_amount()); in Mvn()
1096 if ((operand.IsShiftedRegister() && (operand.shift_amount() == 0)) || in ConditionalCompareMacro()
[all …]
Dassembler-a64.cc319 Operand::Operand(Register reg, Shift shift, unsigned shift_amount) in Operand() argument
323 shift_amount_(shift_amount) { in Operand()
325 VIXL_ASSERT(reg.Is64Bits() || (shift_amount < kWRegSize)); in Operand()
326 VIXL_ASSERT(reg.Is32Bits() || (shift_amount < kXRegSize)); in Operand()
331 Operand::Operand(Register reg, Extend extend, unsigned shift_amount) in Operand() argument
335 shift_amount_(shift_amount) { in Operand()
337 VIXL_ASSERT(shift_amount <= 4); in Operand()
386 unsigned shift_amount) in MemOperand() argument
388 shift_(NO_SHIFT), extend_(extend), shift_amount_(shift_amount) { in MemOperand()
401 unsigned shift_amount) in MemOperand() argument
[all …]
Dassembler-a64.h665 unsigned shift_amount = 0); // NOLINT(runtime/explicit)
670 explicit Operand(Register reg, Extend extend, unsigned shift_amount = 0);
701 unsigned shift_amount() const { in shift_amount() function
724 unsigned shift_amount = 0);
728 unsigned shift_amount = 0);
739 unsigned shift_amount() const { return shift_amount_; } in shift_amount() function
2651 const int shift_amount = 0);
2661 const int shift_amount = 0);
3977 static Instr ImmShiftLS(unsigned shift_amount) { in ImmShiftLS() argument
3978 VIXL_ASSERT(is_uint1(shift_amount)); in ImmShiftLS()
[all …]
/external/chromium-trace/catapult/telemetry/telemetry/timeline/
Dmodel.py187 shift_amount = self._bounds.min
189 event.start -= shift_amount
/external/v8/src/crankshaft/arm64/
Dlithium-arm64.h568 LAddI(LOperand* left, LOperand* right, Shift shift, LOperand* shift_amount) in LAddI() argument
569 : shift_(shift), shift_amount_(shift_amount) { in LAddI()
578 LOperand* shift_amount() const { return shift_amount_; } in shift_amount() function
751 LBitI(LOperand* left, LOperand* right, Shift shift, LOperand* shift_amount) in LBitI() argument
752 : shift_(shift), shift_amount_(shift_amount) { in LBitI()
761 LOperand* shift_amount() const { return shift_amount_; } in shift_amount() function
2743 LSubI(LOperand* left, LOperand* right, Shift shift, LOperand* shift_amount) in LSubI() argument
2744 : shift_(shift), shift_amount_(shift_amount) { in LSubI()
2753 LOperand* shift_amount() const { return shift_amount_; } in shift_amount() function
/external/webrtc/webrtc/common_audio/signal_processing/
Dsignal_processing_unittest.cc62 int shift_amount = 1; // Workaround compiler warning using variable here. in TEST_F() local
64 EXPECT_EQ(32766, WEBRTC_SPL_SHIFT_W32(a, shift_amount)); in TEST_F()
/external/libnfc-nci/halimpl/bcm2079x/gki/common/
Dgki.h402 GKI_API extern void GKI_shiftdown (UINT8 *p_mem, UINT32 len, UINT32 shift_amount);
/external/libnfc-nci/src/gki/common/
Dgki.h404 GKI_API extern void GKI_shiftdown (UINT8 *p_mem, UINT32 len, UINT32 shift_amount);
/external/v8/src/x64/
Dassembler-x64.cc661 Immediate shift_amount, in shift() argument
665 DCHECK(size == kInt64Size ? is_uint6(shift_amount.value_) in shift()
666 : is_uint5(shift_amount.value_)); in shift()
667 if (shift_amount.value_ == 1) { in shift()
675 emit(shift_amount.value_); in shift()
680 void Assembler::shift(Operand dst, Immediate shift_amount, int subcode, in shift() argument
683 DCHECK(size == kInt64Size ? is_uint6(shift_amount.value_) in shift()
684 : is_uint5(shift_amount.value_)); in shift()
685 if (shift_amount.value_ == 1) { in shift()
693 emit(shift_amount.value_); in shift()

12