jdk/src/share/classes/java/util/Formatter.java
changeset 10598 efd29b4b3e67
parent 9689 53a4e9b16900
child 10608 7cfca36fc79b
--- a/jdk/src/share/classes/java/util/Formatter.java	Sun Sep 18 12:33:56 2011 +0100
+++ b/jdk/src/share/classes/java/util/Formatter.java	Sun Sep 18 18:14:07 2011 -0700
@@ -3423,18 +3423,18 @@
             else {
                 assert(prec >= 1 && prec <= 12);
 
-                int exponent  = FpUtils.getExponent(d);
+                int exponent  = Math.getExponent(d);
                 boolean subnormal
                     = (exponent == DoubleConsts.MIN_EXPONENT - 1);
 
                 // If this is subnormal input so normalize (could be faster to
                 // do as integer operation).
                 if (subnormal) {
-                    scaleUp = FpUtils.scalb(1.0, 54);
+                    scaleUp = Math.scalb(1.0, 54);
                     d *= scaleUp;
                     // Calculate the exponent.  This is not just exponent + 54
                     // since the former is not the normalized exponent.
-                    exponent = FpUtils.getExponent(d);
+                    exponent = Math.getExponent(d);
                     assert exponent >= DoubleConsts.MIN_EXPONENT &&
                         exponent <= DoubleConsts.MAX_EXPONENT: exponent;
                 }