< prev index next >
src/java.desktop/share/classes/sun/java2d/marlin/FloatMath.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -22,11 +22,10 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package sun.java2d.marlin;
-import jdk.internal.math.DoubleConsts;
import jdk.internal.math.FloatConsts;
/**
* Faster Math ceil / floor routines derived from StrictMath
*/
@@ -208,16 +207,6 @@
|| CHECK_NAN && Float.isNaN(a)) {
return intpart;
}
return intpart - 1;
}
-
- /**
- * Returns a floating-point power of two in the normal range.
- */
- static double powerOfTwoD(int n) {
- assert (n >= DoubleConsts.MIN_EXPONENT && n <= DoubleConsts.MAX_EXPONENT);
- return Double.longBitsToDouble((((long) n + (long) DoubleConsts.EXP_BIAS)
- << (DoubleConsts.SIGNIFICAND_WIDTH - 1))
- & DoubleConsts.EXP_BIT_MASK);
- }
}
< prev index next >