Home
last modified time | relevance | path

Searched refs:exponent (Results 1 – 7 of 7) sorted by relevance

/libcore/ojluni/src/main/java/sun/misc/
DFpUtils.java342 int exponent = getExponent(d); in ilogb() local
344 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 …]
DFormattedFloatingDecimal.java43 private char[] exponent; field in FormattedFloatingDecimal
60 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 …]
/libcore/ojluni/src/main/java/java/lang/
DStrictMath.java388 int exponent = Math.getExponent(a); in floorOrCeil() local
390 if (exponent < 0) { in floorOrCeil()
398 } else if (exponent >= 52) { in floorOrCeil()
406 assert exponent >= 0 && exponent <= 51; in floorOrCeil() local
409 long mask = DoubleConsts.SIGNIF_BIT_MASK >> exponent; in floorOrCeil()
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java2372 @NonNull public BigInteger pow(int exponent) { in pow() argument
2373 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 …]
DBigDecimal.java903 int exponent = (int) ((valBits >> 52) & 0x7ffL); in BigDecimal() local
904 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()
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DFormattedFloatingDecimal.java86 private char[] exponent; field in FormattedFloatingDecimal
/libcore/ojluni/src/main/java/java/util/
DScanner.java488 String exponent = "([eE][+-]?"+digit+"+)?"; in buildFloatAndDecimalPattern() local
499 positiveSuffix + exponent + ")"; in buildFloatAndDecimalPattern()
501 negativeSuffix + exponent + ")"; in buildFloatAndDecimalPattern()
502 String decimal = "(([-+]?" + decimalNumeral + exponent + ")|"+ in buildFloatAndDecimalPattern()