Lines Matching refs:remainder
1224 uint32_t BigInt::DivideAndRemainder(uint32_t highBit, uint32_t lowBit, uint32_t divisor, uint32_t& remainder)
1232 // highBit is the remainder of the last calculation, which must be less than or equal to the divisor,
1268 // At this time, we need to move right to get the correct remainder
1269 remainder = (tempLowDividend * HALFUINT32VALUE + lowDividend2 - lowQuotient * divisor) >> leadingZeros;
1378 JSMutableHandle<BigInt> &remainder)
1384 if (remainder.GetTaggedValue().IsNull()) {
1420 if (remainder.GetTaggedValue().IsNull()) {
1424 if (!remainder.GetTaggedValue().IsNull()) {
1428 remainder.Update(u);
1434 uint32_t divisor, JSMutableHandle<BigInt> &remainder)
1438 if (!remainder.GetTaggedValue().IsNull()) {
1441 remainder.Update(Uint32ToBigInt(thread, r));
1480 JSMutableHandle<BigInt> remainder(thread, JSTaggedValue::Null());
1483 quotient.Update(DivideAndRemainderWithUint32Divisor(thread, x, y->GetDigit(0), remainder));
1486 JSHandle<BigInt> newBigint = DivideAndRemainderWithBigintDivisor(thread, x, y, remainder);
1508 JSMutableHandle<BigInt> remainder(thread, JSTaggedValue::Undefined());
1511 DivideAndRemainderWithUint32Divisor(thread, n, d->GetDigit(0), remainder);
1514 DivideAndRemainderWithBigintDivisor(thread, n, d, remainder);
1517 ASSERT(remainder.GetTaggedValue().IsBigInt());
1518 remainder->SetSign(n->GetSign());
1519 return BigIntHelper::RightTruncate(thread, remainder);
1524 JSHandle<BigInt> remainder = Remainder(thread, leftVal, rightVal);
1526 if (leftVal->GetSign() && !remainder->IsZero()) {
1527 return Add(thread, remainder, rightVal);
1529 return remainder;