Lines Matching refs:exp
2384 unsigned sigPartCount, int exp,
2397 /* Calculate pow(5, abs(exp)). */
2398 pow5PartCount = powerOf5(pow5Parts, exp >= 0 ? exp: -exp);
2415 /* Add exp, as 10^n = 5^n * 2^n. */
2416 decSig.exponent += exp;
2422 if (exp >= 0) {
2479 small. Writing L for log 10 / log 2, a number d.ddddd*10^exp
2482 (exp - 1) * L >= maxExponent
2486 (exp + 1) * L <= minExponent - precision
3435 int &exp, unsigned FormatPrecision) {
3446 exp += tensRemovable;
3466 int &exp, unsigned FormatPrecision) {
3482 exp += FirstSignificant;
3500 exp += FirstSignificant;
3506 exp += FirstSignificant;
3541 int exp = exponent - ((int) semantics->precision - 1);
3558 exp += trailingZeros;
3562 if (exp == 0) {
3564 } else if (exp > 0) {
3566 significand = significand.zext(semantics->precision + exp);
3567 significand <<= exp;
3568 exp = 0;
3569 } else { /* exp < 0 */
3570 int texp = -exp;
3596 AdjustToPrecision(significand, exp, FormatPrecision);
3614 if (inTrail && !d) exp++;
3625 AdjustToPrecision(buffer, exp, FormatPrecision);
3634 if (exp >= 0) {
3638 FormatScientific = ((unsigned) exp > FormatMaxPadding ||
3639 NDigits + (unsigned) exp > FormatPrecision);
3642 int MSD = exp + (int) (NDigits - 1);
3656 exp += (NDigits - 1);
3667 Str.push_back(exp >= 0 ? '+' : '-');
3668 if (exp < 0) exp = -exp;
3671 expbuf.push_back((char) ('0' + (exp % 10)));
3672 exp /= 10;
3673 } while (exp);
3680 if (exp >= 0) {
3683 for (unsigned I = 0; I != (unsigned) exp; ++I)
3691 int NWholeDigits = exp + (int) NDigits;