• Home
  • Raw
  • Download

Lines Matching refs:BigInt

68 JSHandle<BigInt> BigInt::GetUint64MaxBigint(JSThread *thread)  in GetUint64MaxBigint()
70 JSHandle<BigInt> bigint = CreateBigint(thread, 3); in GetUint64MaxBigint()
71 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in GetUint64MaxBigint()
78 JSHandle<BigInt> BigInt::GetInt64MaxBigint(JSThread *thread) in GetInt64MaxBigint()
80 JSHandle<BigInt> bigint = CreateBigint(thread, 2); in GetInt64MaxBigint()
81 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in GetInt64MaxBigint()
87 JSHandle<BigInt> BigIntHelper::SetBigInt(JSThread *thread, const CString &numStr, uint32_t currentR… in SetBigInt()
95 if (currentRadix != BigInt::BINARY) { in SetBigInt()
96 binaryStr = Conversion(numStr.substr(flag), BigInt::BINARY, currentRadix); in SetBigInt()
101 JSHandle<BigInt> bigint; in SetBigInt()
103 size_t len = binaryStrLen / BigInt::DATEBITS; in SetBigInt()
104 size_t mod = binaryStrLen % BigInt::DATEBITS; in SetBigInt()
108 bigint = BigInt::CreateBigint(thread, len); in SetBigInt()
109 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in SetBigInt()
113 bigint = BigInt::CreateBigint(thread, len); in SetBigInt()
114 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in SetBigInt()
129 for (size_t j = 0; j < BigInt::DATEBITS && i < binaryStrLen; ++j, ++i) { in SetBigInt()
139 JSHandle<BigInt> BigIntHelper::RightTruncate(JSThread *thread, JSHandle<BigInt> x) in RightTruncate()
159 return BigInt::Int32ToBigInt(thread, 0); in RightTruncate()
162 return BigInt::Copy(thread, x, index + 1); in RightTruncate()
166 CString BigIntHelper::GetBinary(const BigInt *bigint) in GetBinary()
171 int strLen = BigInt::DATEBITS * len; in GetBinary()
175 int bityLen = BigInt::DATEBITS; in GetBinary()
187 JSHandle<BigInt> BigInt::CreateBigint(JSThread *thread, uint32_t length) in CreateBigint()
190 JSHandle<BigInt> bigint(thread, JSTaggedValue::Exception()); in CreateBigint()
194 JSHandle<BigInt> bigint = factory->NewBigInt(length); in CreateBigint()
199 bool BigInt::Equal(const JSTaggedValue &x, const JSTaggedValue &y) in Equal()
201 BigInt* xVal = BigInt::Cast(x.GetTaggedObject()); in Equal()
202 BigInt* yVal = BigInt::Cast(y.GetTaggedObject()); in Equal()
206 bool BigInt::Equal(const BigInt *x, const BigInt *y) in Equal()
222 bool BigInt::SameValue(const JSTaggedValue &x, const JSTaggedValue &y) in SameValue()
228 bool BigInt::SameValueZero(const JSTaggedValue &x, const JSTaggedValue &y) in SameValueZero()
233 JSHandle<BigInt> BigInt::BitwiseOp(JSThread *thread, Operate op, JSHandle<BigInt> x, JSHandle<BigIn… in BitwiseOp()
246 JSHandle<BigInt> bigint = BigInt::CreateBigint(thread, maxLen); in BitwiseOp()
247 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in BitwiseOp()
272 JSHandle<BigInt> OneIsNegativeAND(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y) in OneIsNegativeAND()
274 JSHandle<BigInt> yVal = BigInt::BitwiseSubOne(thread, y, y->GetLength()); in OneIsNegativeAND()
275 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in OneIsNegativeAND()
282 JSHandle<BigInt> newBigint = BigInt::CreateBigint(thread, xLength); in OneIsNegativeAND()
283 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in OneIsNegativeAND()
298 JSHandle<BigInt> BigInt::BitwiseAND(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y) in BitwiseAND()
302 JSHandle<BigInt> xVal = BitwiseSubOne(thread, x, x->GetLength()); in BitwiseAND()
303 JSHandle<BigInt> yVal = BitwiseSubOne(thread, y, y->GetLength()); in BitwiseAND()
304 JSHandle<BigInt> temp = BitwiseOp(thread, Operate::OR, xVal, yVal); in BitwiseAND()
305 JSHandle<BigInt> res = BitwiseAddOne(thread, temp); in BitwiseAND()
319 JSHandle<BigInt> OneIsNegativeXOR(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y) in OneIsNegativeXOR()
321 JSHandle<BigInt> yVal = BigInt::BitwiseSubOne(thread, y, y->GetLength()); in OneIsNegativeXOR()
322 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in OneIsNegativeXOR()
323 JSHandle<BigInt> temp = BigInt::BitwiseOp(thread, Operate::XOR, x, yVal); in OneIsNegativeXOR()
324 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in OneIsNegativeXOR()
325 JSHandle<BigInt> res = BigInt::BitwiseAddOne(thread, temp); in OneIsNegativeXOR()
326 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in OneIsNegativeXOR()
331 JSHandle<BigInt> BigInt::BitwiseXOR(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y) in BitwiseXOR()
335 JSHandle<BigInt> xVal = BitwiseSubOne(thread, x, x->GetLength()); in BitwiseXOR()
336 JSHandle<BigInt> yVal = BitwiseSubOne(thread, y, y->GetLength()); in BitwiseXOR()
350 JSHandle<BigInt> BigInt::BitwiseSubOne(JSThread *thread, JSHandle<BigInt> bigint, uint32_t maxLen) in BitwiseSubOne()
355 JSHandle<BigInt> newBigint = BigInt::CreateBigint(thread, maxLen); in BitwiseSubOne()
356 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in BitwiseSubOne()
368 JSHandle<BigInt> BigInt::BitwiseAddOne(JSThread *thread, JSHandle<BigInt> bigint) in BitwiseAddOne()
383 JSHandle<BigInt> newBigint = BigInt::CreateBigint(thread, newLength); in BitwiseAddOne()
384 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in BitwiseAddOne()
398 JSHandle<BigInt> OneIsNegativeOR(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y) in OneIsNegativeOR()
405 JSHandle<BigInt> yVal = BigInt::BitwiseSubOne(thread, y, maxLen); in OneIsNegativeOR()
406 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in OneIsNegativeOR()
412 JSHandle<BigInt> newBigint = BigInt::CreateBigint(thread, yLength); in OneIsNegativeOR()
413 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in OneIsNegativeOR()
424 JSHandle<BigInt> temp = BigIntHelper::RightTruncate(thread, newBigint); in OneIsNegativeOR()
425 JSHandle<BigInt> res = BigInt::BitwiseAddOne(thread, temp); in OneIsNegativeOR()
426 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in OneIsNegativeOR()
432 JSHandle<BigInt> BigInt::BitwiseOR(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y) in BitwiseOR()
439 JSHandle<BigInt> xVal = BitwiseSubOne(thread, x, maxLen); in BitwiseOR()
440 JSHandle<BigInt> yVal = BitwiseSubOne(thread, y, yLen); in BitwiseOR()
441 JSHandle<BigInt> temp = BitwiseOp(thread, Operate::AND, xVal, yVal); in BitwiseOR()
442 JSHandle<BigInt> res = BitwiseAddOne(thread, temp); in BitwiseOR()
458 JSHandle<EcmaString> BigInt::ToString(JSThread *thread, JSHandle<BigInt> bigint, uint32_t conversio… in ToString()
465 CString BigInt::ToStdString(uint32_t conversionToRadix) const in ToStdString()
475 JSTaggedValue BigInt::NumberToBigInt(JSThread *thread, JSHandle<JSTaggedValue> number) in NumberToBigInt()
496 JSHandle<BigInt> bigint = CreateBigint(thread, mayNeedLen); in NumberToBigInt()
522 JSHandle<BigInt> BigInt::Int32ToBigInt(JSThread *thread, const int &number) in Int32ToBigInt()
524 JSHandle<BigInt> bigint = CreateBigint(thread, 1); in Int32ToBigInt()
525 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in Int32ToBigInt()
538 JSHandle<BigInt> BigInt::Uint32ToBigInt(JSThread *thread, const uint32_t &number) in Uint32ToBigInt()
540 JSHandle<BigInt> bigint = CreateBigint(thread, 1); in Uint32ToBigInt()
541 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in Uint32ToBigInt()
546 JSHandle<BigInt> BigInt::Int64ToBigInt(JSThread *thread, const int64_t &number) in Int64ToBigInt()
555 JSHandle<BigInt> bigint = Uint64ToBigInt(thread, value); in Int64ToBigInt()
556 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in Int64ToBigInt()
561 JSHandle<BigInt> BigInt::Uint64ToBigInt(JSThread *thread, const uint64_t &number) in Uint64ToBigInt()
563 … JSHandle<BigInt> bigint = CreateBigint(thread, 2); // 2 : one int64_t bits need two uint32_t bits in Uint64ToBigInt()
564 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in Uint64ToBigInt()
572 uint64_t BigInt::ToUint64() in ToUint64()
589 int64_t BigInt::ToInt64() in ToInt64()
594 void BigInt::BigIntToInt64(JSThread *thread, JSHandle<JSTaggedValue> bigint, int64_t *cValue, bool … in BigIntToInt64()
601 JSHandle<BigInt> bigInt64(thread, JSTaggedValue::ToBigInt64(thread, bigint)); in BigIntToInt64()
611 void BigInt::BigIntToUint64(JSThread *thread, JSHandle<JSTaggedValue> bigint, uint64_t *cValue, boo… in BigIntToUint64()
618 JSHandle<BigInt> bigUint64(thread, JSTaggedValue::ToBigUint64(thread, bigint)); in BigIntToUint64()
628 JSHandle<BigInt> BigInt::CreateBigWords(JSThread *thread, bool sign, uint32_t size, const uint64_t … in CreateBigWords()
637 JSHandle<BigInt> bigint(thread, JSTaggedValue::Exception()); in CreateBigWords()
640 JSHandle<BigInt> bigint = CreateBigint(thread, needLen); in CreateBigWords()
641 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in CreateBigWords()
652 JSHandle<BigInt> BigInt::Add(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y) in Add()
682 JSHandle<BigInt> BigInt::Subtract(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y) in Subtract()
713 JSHandle<BigInt> BigInt::BigintAdd(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y, bool r… in BigintAdd()
718 JSHandle<BigInt> bigint = BigInt::CreateBigint(thread, x->GetLength() + 1); in BigintAdd()
719 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in BigintAdd()
751 JSHandle<BigInt> BigInt::BigintSub(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y, bool r… in BigintSub()
753 JSHandle<BigInt> bigint = BigInt::CreateBigint(thread, x->GetLength()); in BigintSub()
754 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in BigintSub()
776 JSHandle<BigInt> BigInt::BigintAddOne(JSThread *thread, JSHandle<BigInt> x) in BigintAddOne()
778 JSHandle<BigInt> temp = Int32ToBigInt(thread, 1); in BigintAddOne()
782 JSHandle<BigInt> BigInt::BigintSubOne(JSThread *thread, JSHandle<BigInt> x) in BigintSubOne()
784 JSHandle<BigInt> temp = Int32ToBigInt(thread, 1); in BigintSubOne()
797 ComparisonResult BigInt::Compare(const JSTaggedValue &x, const JSTaggedValue &y) in Compare()
799 BigInt* xVal = BigInt::Cast(x.GetTaggedObject()); in Compare()
800 BigInt* yVal = BigInt::Cast(y.GetTaggedObject()); in Compare()
804 ComparisonResult BigInt::Compare(const BigInt *x, const BigInt *y) in Compare()
818 bool BigInt::LessThan(const JSTaggedValue &x, const JSTaggedValue &y) in LessThan()
823 bool BigInt::LessThan(const BigInt *x, const BigInt *y) in LessThan()
830 JSHandle<BigInt> BigInt::SignedRightShift(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y) in SignedRightShift()
844 JSHandle<BigInt> BigInt::ReturnIfRightShiftOverMax(JSThread *thread, bool sign) in ReturnIfRightShiftOverMax()
852 void BigInt::RightShift(JSHandle<BigInt> bigint, JSHandle<BigInt> x, uint32_t digitMove, uint32_t b… in RightShift()
871 void BigInt::JudgeRoundDown(JSHandle<BigInt> x, uint32_t digitMove, uint32_t bitsMove, uint32_t &ne… in JudgeRoundDown()
896 JSHandle<BigInt> BigInt::RightShiftHelper(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y) in RightShiftHelper()
915 JSHandle<BigInt> bigint = CreateBigint(thread, needLen); in RightShiftHelper()
916 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in RightShiftHelper()
929 JSHandle<BigInt> BigInt::LeftShift(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y) in LeftShift()
938 JSHandle<BigInt> BigInt::LeftShiftHelper(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y) in LeftShiftHelper()
949 JSHandle<BigInt> bigint = CreateBigint(thread, needLen); in LeftShiftHelper()
950 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in LeftShiftHelper()
975 JSTaggedValue BigInt::UnsignedRightShift(JSThread *thread) in UnsignedRightShift()
981 JSHandle<BigInt> BigInt::Copy(JSThread *thread, JSHandle<BigInt> x, uint32_t len) in Copy()
984 JSHandle<BigInt> newBig = CreateBigint(thread, len); in Copy()
985 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in Copy()
991 JSHandle<BigInt> BigInt::UnaryMinus(JSThread *thread, JSHandle<BigInt> x) in UnaryMinus()
996 JSHandle<BigInt> y = Copy(thread, x, x->GetLength()); in UnaryMinus()
1002 JSHandle<BigInt> BigInt::BitwiseNOT(JSThread *thread, JSHandle<BigInt> x) in BitwiseNOT()
1006 JSHandle<BigInt> result = BigintAddOne(thread, x); in BitwiseNOT()
1015 JSHandle<BigInt> BigInt::Exponentiate(JSThread *thread, JSHandle<BigInt> base, JSHandle<BigInt> exp… in Exponentiate()
1018 JSHandle<BigInt> bigint(thread, JSTaggedValue::Exception()); in Exponentiate()
1031 return BigInt::UnaryMinus(thread, base); in Exponentiate()
1037 JSHandle<BigInt> bigint(thread, JSTaggedValue::Exception()); in Exponentiate()
1043 JSHandle<BigInt> bigint = CreateBigint(thread, needLength); in Exponentiate()
1044 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in Exponentiate()
1052 JSMutableHandle<BigInt> result(thread, JSTaggedValue::Null()); in Exponentiate()
1053 JSMutableHandle<BigInt> temp(thread, base); in Exponentiate()
1059 temp.Update(BigInt::Multiply(thread, temp, temp)); in Exponentiate()
1060 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in Exponentiate()
1065 result.Update(BigInt::Multiply(thread, result, temp)); in Exponentiate()
1066 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in Exponentiate()
1074 std::tuple<uint32_t, uint32_t> BigInt::Mul(uint32_t x, uint32_t y) in Mul()
1094 JSHandle<BigInt> BigInt::Multiply(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y) in Multiply()
1103 JSHandle<BigInt> bigint = BigInt::CreateBigint(thread, needLength); in Multiply()
1104 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in Multiply()
1161 ComparisonResult BigInt::AbsolutelyCompare(const BigInt *x, const BigInt *y) in AbsolutelyCompare()
1183 uint32_t BigInt::DivideAndRemainder(uint32_t highBit, uint32_t lowBit, uint32_t divisor, uint32_t& … in DivideAndRemainder()
1232 JSHandle<BigInt> BigInt::FormatLeftShift(JSThread *thread, uint32_t shift, JSHandle<BigInt> bigint,… in FormatLeftShift()
1242 JSHandle<BigInt> result = CreateBigint(thread, needLen); in FormatLeftShift()
1243 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in FormatLeftShift()
1263 void BigInt::UnformattedRightShift(JSHandle<BigInt> bigint, uint32_t shift) in UnformattedRightShift()
1268 bool BigInt::SpecialMultiplyAndSub(JSHandle<BigInt> u, JSHandle<BigInt> v, uint32_t q, JSHandle<Big… in SpecialMultiplyAndSub()
1303 uint32_t BigInt::SpecialAdd(JSHandle<BigInt> u, JSHandle<BigInt> v, uint32_t pos) in SpecialAdd()
1316 uint32_t BigInt::ImproveAccuracy(uint32_t vHighest, uint32_t vHighestNext, uint32_t UHighest, in ImproveAccuracy()
1335 JSHandle<BigInt> BigInt::DivideAndRemainderWithBigintDivisor(JSThread *thread, JSHandle<BigInt> div… in DivideAndRemainderWithBigintDivisor()
1336 JSHandle<BigInt> divisor, in DivideAndRemainderWithBigintDivisor()
1337 JSMutableHandle<BigInt> &remainder) in DivideAndRemainderWithBigintDivisor()
1342 JSMutableHandle<BigInt> quotient(thread, JSTaggedValue::Null()); in DivideAndRemainderWithBigintDivisor()
1345 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in DivideAndRemainderWithBigintDivisor()
1350 JSHandle<BigInt> v = FormatLeftShift(thread, leadingZeros, divisor, false); in DivideAndRemainderWithBigintDivisor()
1351 JSHandle<BigInt> u = FormatLeftShift(thread, leadingZeros, dividend, true); in DivideAndRemainderWithBigintDivisor()
1353 JSHandle<BigInt> qv = CreateBigint(thread, divisorLen + 1); in DivideAndRemainderWithBigintDivisor()
1354 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in DivideAndRemainderWithBigintDivisor()
1391 JSHandle<BigInt> BigInt::DivideAndRemainderWithUint32Divisor(JSThread *thread, JSHandle<BigInt> div… in DivideAndRemainderWithUint32Divisor()
1392 … uint32_t divisor, JSMutableHandle<BigInt> &remainder) in DivideAndRemainderWithUint32Divisor()
1395 JSMutableHandle<BigInt> quotient(thread, JSTaggedValue::Null()); in DivideAndRemainderWithUint32Divisor()
1403 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in DivideAndRemainderWithUint32Divisor()
1413 JSHandle<BigInt> BigInt::Divide(JSThread *thread, JSHandle<BigInt> x, JSHandle<BigInt> y) in Divide()
1416 JSHandle<BigInt> bigint(thread, JSTaggedValue::Exception()); in Divide()
1420 JSMutableHandle<BigInt> quotient(thread, JSTaggedValue::Null()); in Divide()
1438 JSMutableHandle<BigInt> remainder(thread, JSTaggedValue::Null()); in Divide()
1451 JSHandle<BigInt> BigInt::Remainder(JSThread *thread, JSHandle<BigInt> n, JSHandle<BigInt> d) in Remainder()
1454 JSHandle<BigInt> bigint(thread, JSTaggedValue::Exception()); in Remainder()
1464 JSMutableHandle<BigInt> remainder(thread, JSTaggedValue::Undefined()); in Remainder()
1471 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in Remainder()
1478 JSHandle<BigInt> BigInt::FloorMod(JSThread *thread, JSHandle<BigInt> leftVal, JSHandle<BigInt> righ… in FloorMod()
1480 JSHandle<BigInt> remainder = Remainder(thread, leftVal, rightVal); in FloorMod()
1481 RETURN_HANDLE_IF_ABRUPT_COMPLETION(BigInt, thread); in FloorMod()
1488 JSTaggedValue BigInt::AsUintN(JSThread *thread, JSTaggedNumber &bits, JSHandle<BigInt> bigint) in AsUintN()
1499 JSHandle<BigInt> exponent = Uint64ToBigInt(thread, bit); in AsUintN()
1500 JSHandle<BigInt> base = Int64ToBigInt(thread, 2); // 2 : base value in AsUintN()
1504 JSHandle<BigInt> tValue = Exponentiate(thread, base, exponent); in AsUintN()
1509 JSTaggedValue BigInt::AsintN(JSThread *thread, JSTaggedNumber &bits, JSHandle<BigInt> bigint) in AsintN()
1520 JSHandle<BigInt> exp = Int64ToBigInt(thread, bit); in AsintN()
1521 JSHandle<BigInt> exponent = Int64ToBigInt(thread, bit - 1); in AsintN()
1522 JSHandle<BigInt> base = Int64ToBigInt(thread, 2); // 2 : base value in AsintN()
1526 JSHandle<BigInt> tValue = Exponentiate(thread, base, exp); in AsintN()
1528 JSHandle<BigInt> modValue = FloorMod(thread, bigint, tValue); in AsintN()
1529 JSHandle<BigInt> resValue = Exponentiate(thread, base, exponent); in AsintN()
1565 JSTaggedNumber BigInt::BigIntToNumber(JSHandle<BigInt> bigint) in BigIntToNumber()
1573 int bigintBitLen = static_cast<int>(bigintLen * BigInt::DATEBITS - leadingZeros); in BigIntToNumber()
1580 int needMoveBit = static_cast<int>(leadingZeros + BigInt::DATEBITS + 1); in BigIntToNumber()
1594 if (static_cast<uint32_t>(remainMantissaBits) >= BigInt::DATEBITS) { in BigIntToNumber()
1595 mantissa |= (static_cast<uint64_t>(digit) << (remainMantissaBits - BigInt::DATEBITS)); in BigIntToNumber()
1596 remainMantissaBits -= BigInt::DATEBITS; in BigIntToNumber()
1601 mantissa |= (static_cast<uint64_t>(digit) >> (BigInt::DATEBITS - remainMantissaBits)); in BigIntToNumber()
1602 remainMantissaBits -= BigInt::DATEBITS; in BigIntToNumber()
1617 remainDigitBits = BigInt::DATEBITS; in BigIntToNumber()
1634 static int CompareToBitsLen(JSHandle<BigInt> bigint, int numBitLen, int &leadingZeros) in CompareToBitsLen()
1639 int bigintBitLen = static_cast<int>(bigintLen * BigInt::DATEBITS) - leadingZeros; in CompareToBitsLen()
1651 ComparisonResult BigInt::CompareWithNumber(JSHandle<BigInt> bigint, JSHandle<JSTaggedValue> number) in CompareWithNumber()
1707 leftover = mantissaSize - BigInt::DATEBITS + leadingZeros + 1; in CompareWithNumber()
1717 leftover -= BigInt::DATEBITS; in CompareWithNumber()
1718 doubleNum = static_cast<uint32_t>(mantissa >> BigInt::DATEBITS); in CompareWithNumber()
1719 mantissa = mantissa << BigInt::DATEBITS; in CompareWithNumber()
1726 leftover -= BigInt::DATEBITS; in CompareWithNumber()