Lines Matching full:exponent
1063 …le<BigInt> BigInt::Exponentiate(JSThread *thread, JSHandle<BigInt> base, JSHandle<BigInt> exponent) in Exponentiate() argument
1065 if (exponent->GetSign()) { in Exponentiate()
1067 THROW_RANGE_ERROR_AND_RETURN(thread, "Exponent must be positive", bigint); in Exponentiate()
1069 ASSERT(exponent->GetLength() > 0); in Exponentiate()
1070 if (exponent->IsZero()) { in Exponentiate()
1076 uint32_t expValue = exponent->GetDigit(0); in Exponentiate()
1083 if (exponent->GetLength() > 1) { in Exponentiate()
1550 JSHandle<BigInt> exponent = Uint64ToBigInt(thread, bit); in AsUintN() local
1555 JSHandle<BigInt> tValue = Exponentiate(thread, base, exponent); in AsUintN()
1572 JSHandle<BigInt> exponent = Int64ToBigInt(thread, bit - 1); in AsintN() local
1580 JSHandle<BigInt> resValue = Exponentiate(thread, base, exponent); in AsintN()
1589 … JSTaggedNumber CalculateNumber(const uint64_t &sign, const uint64_t &mantissa, uint64_t &exponent) in CalculateNumber() argument
1591 exponent = (exponent + base::DOUBLE_EXPONENT_BIAS) << base::DOUBLE_SIGNIFICAND_SIZE; in CalculateNumber()
1592 uint64_t doubleBit = sign | exponent | mantissa; in CalculateNumber()
1601 static JSTaggedNumber Rounding(const uint64_t &sign, uint64_t &mantissa, uint64_t &exponent, bool n… in Rounding() argument
1607 exponent++; in Rounding()
1608 if (exponent > base::DOUBLE_EXPONENT_BIAS) { in Rounding()
1613 return CalculateNumber(sign, mantissa, exponent); in Rounding()
1638 uint64_t exponent = static_cast<uint64_t>(bigintBitLen - 1); in BigIntToNumber() local
1644 return CalculateNumber(sign, mantissa, exponent); in BigIntToNumber()
1660 return CalculateNumber(sign, mantissa, exponent); in BigIntToNumber()
1667 return CalculateNumber(sign, mantissa, exponent); in BigIntToNumber()
1674 return CalculateNumber(sign, mantissa, exponent); in BigIntToNumber()
1677 return Rounding(sign, mantissa, exponent, true); in BigIntToNumber()
1681 return Rounding(sign, mantissa, exponent, true); in BigIntToNumber()
1684 return Rounding(sign, mantissa, exponent, false); in BigIntToNumber()