Searched refs:exponent (Results 1 – 10 of 10) sorted by relevance
342 int exponent = getExponent(d); in ilogb() local344 switch (exponent) { in ilogb()377 exponent--; in ilogb()379 exponent++; in ilogb()380 assert( exponent >= in ilogb()382 exponent < DoubleConsts.MIN_EXPONENT); in ilogb()383 return exponent; in ilogb()387 assert( exponent >= DoubleConsts.MIN_EXPONENT && in ilogb()388 exponent <= DoubleConsts.MAX_EXPONENT); in ilogb()389 return exponent; in ilogb()[all …]
43 private char[] exponent; field in FormattedFloatingDecimal60 this.exponent = null; in FormattedFloatingDecimal()114 return exponent; in getExponent()232 exponent = create(isNegExp,1); in fillCompatible()233 exponent[expStartIntex] = (char) (e + '0'); in fillCompatible()235 exponent = create(isNegExp,2); in fillCompatible()236 exponent[expStartIntex] = (char) (e / 10 + '0'); in fillCompatible()237 exponent[expStartIntex+1] = (char) (e % 10 + '0'); in fillCompatible()239 exponent = create(isNegExp,3); in fillCompatible()240 exponent[expStartIntex] = (char) (e / 100 + '0'); in fillCompatible()[all …]
823 … int exponent = (int)((dBits & DoubleConsts.EXP_BIT_MASK) >> EXP_SHIFT) - DoubleConsts.EXP_BIAS;825 if(exponent>=0 && exponent<52) { // hot path826 long mask = DoubleConsts.SIGNIF_BIT_MASK >> exponent;827 … int r = (int)(( (dBits&DoubleConsts.SIGNIF_BIT_MASK) | FRACT_HOB )>>(EXP_SHIFT-exponent));829 } else if (exponent < 0) {2230 long exponent = rawExponent + exponentAdjust; in parseHexString() local2264 exponent += 1; in parseHexString()2268 exponent += 2; in parseHexString()2272 exponent += 3; in parseHexString()2369 if (exponent >= FloatConsts.MIN_EXPONENT) { in parseHexString()[all …]
388 int exponent = Math.getExponent(a); in floorOrCeil() local390 if (exponent < 0) { in floorOrCeil()398 } else if (exponent >= 52) { in floorOrCeil()406 assert exponent >= 0 && exponent <= 51; in floorOrCeil() local409 long mask = DoubleConsts.SIGNIF_BIT_MASK >> exponent; in floorOrCeil()
168 BigInteger exponent = BigInteger.TEN.pow(len / 2 - 1); in repeatModPow() local173 BigInteger newRes = base.modPow(exponent, product); in repeatModPow()180 if (!lastRes.mod(odd1).equals(base.modPow(exponent, odd1))) { in repeatModPow()183 + "base.modPow(exponent, odd1)=" + base.modPow(exponent, odd1) + " base=" in repeatModPow()184 + base + " exponent=" + exponent); in repeatModPow()186 if (!lastRes.mod(odd2).equals(base.modPow(exponent, odd2))) { in repeatModPow()
2372 @NonNull public BigInteger pow(int exponent) { in pow() argument2373 if (exponent < 0) { in pow()2377 return (exponent == 0 ? ONE : this); in pow()2387 long bitsToShiftLong = (long)powersOfTwo * exponent; in pow()2400 if (signum < 0 && (exponent&1) == 1) { in pow()2409 if (signum < 0 && (exponent&1) == 1) { in pow()2420 long scaleFactor = (long)remainingBits * exponent; in pow()2426 int newSign = (signum <0 && (exponent&1) == 1 ? -1 : 1); in pow()2430 int workingExponent = exponent; in pow()2454 if ((long)bitLength() * exponent / Integer.SIZE > MAX_MAG_LENGTH) { in pow()[all …]
903 int exponent = (int) ((valBits >> 52) & 0x7ffL); in BigDecimal() local904 long significand = (exponent == 0 in BigDecimal()907 exponent -= 1075; in BigDecimal()924 exponent++; in BigDecimal()930 if (exponent == 0) { in BigDecimal()933 if (exponent < 0) { in BigDecimal()934 intVal = BigInteger.valueOf(5).pow(-exponent).multiply(compactVal); in BigDecimal()935 scale = -exponent; in BigDecimal()937 intVal = BigInteger.valueOf(2).pow(exponent).multiply(compactVal); in BigDecimal()
86 private char[] exponent; field in FormattedFloatingDecimal
488 String exponent = "([eE][+-]?"+digit+"+)?"; in buildFloatAndDecimalPattern() local499 positiveSuffix + exponent + ")"; in buildFloatAndDecimalPattern()501 negativeSuffix + exponent + ")"; in buildFloatAndDecimalPattern()502 String decimal = "(([-+]?" + decimalNumeral + exponent + ")|"+ in buildFloatAndDecimalPattern()
3549 int exponent = Math.getExponent(d);3551 = (exponent == DoubleConsts.MIN_EXPONENT - 1);3560 exponent = Math.getExponent(d);3561 assert exponent >= DoubleConsts.MIN_EXPONENT &&3562 exponent <= DoubleConsts.MAX_EXPONENT: exponent;3685 char[] exp = bdl.exponent();3814 public char[] exponent() {