Searched refs:FpUtils (Results 1 - 22 of 22) sorted by relevance

/openjdk7/jdk/test/java/lang/Math/
H A DRint.java31 import sun.misc.FpUtils;
51 double twoToThe52 = FpUtils.scalb(1.0, 52); // 2^52
56 {FpUtils.nextDown(DoubleConsts.MIN_NORMAL), 0.0},
61 {FpUtils.nextDown(0.5), 0.0},
63 { FpUtils.nextUp(0.5), 1.0},
66 {FpUtils.nextDown(1.0), 1.0},
68 { FpUtils.nextUp(1.0), 1.0},
70 {FpUtils.nextDown(1.5), 1.0},
72 { FpUtils.nextUp(1.5), 2.0},
84 {FpUtils
[all...]
H A DCubeRootTests.java31 import sun.misc.FpUtils;
98 failures += testCubeRootCase(FpUtils.scalb(1.0, 3*i),
99 FpUtils.scalb(1.0, i) );
103 for(int i = -1; i >= FpUtils.ilogb(Double.MIN_VALUE)/3; i--) {
104 failures += testCubeRootCase(FpUtils.scalb(1.0, 3*i),
105 FpUtils.scalb(1.0, i) );
113 Double.doubleToLongBits(FpUtils.scalb(1.0, 55)) &
116 Double.doubleToLongBits(FpUtils.scalb(1.0, -55)) &
180 if(FpUtils.isNaN(err)) {
186 err_adjacent = StrictMath.pow(FpUtils
[all...]
H A DLog1pTests.java32 import sun.misc.FpUtils;
91 double d = FpUtils.scalb(2, i);
98 double d = FpUtils.scalb(2, i);
108 d = FpUtils.scalb(d, -53 - FpUtils.ilogb(d));
138 pcNeighbors[1] = FpUtils.nextDown(pc);
139 pcNeighbors[0] = FpUtils.nextDown(pcNeighbors[1]);
140 pcNeighbors[3] = FpUtils.nextUp(pc);
141 pcNeighbors[4] = FpUtils.nextUp(pcNeighbors[3]);
H A DExpm1Tests.java32 import sun.misc.FpUtils;
85 double d = FpUtils.scalb(2, i);
104 double d = FpUtils.scalb(2, i);
121 double d = -FpUtils.scalb(2, i);
146 pcNeighbors[1] = FpUtils.nextDown(pc);
147 pcNeighbors[0] = FpUtils.nextDown(pcNeighbors[1]);
148 pcNeighbors[3] = FpUtils.nextUp(pc);
149 pcNeighbors[4] = FpUtils.nextUp(pcNeighbors[3]);
H A DCeilAndFloorTests.java30 import sun.misc.FpUtils;
72 double neighborDown = FpUtils.nextDown(powerOfTwo);
117 double neighborDown = FpUtils.nextDown(d);
143 { FpUtils.nextDown(DoubleConsts.MIN_NORMAL), 1.0},
144 {-FpUtils.nextDown(DoubleConsts.MIN_NORMAL), -0.0},
160 { FpUtils.nextDown(1.0), 1.0},
161 { FpUtils.nextDown(-1.0), -1.0},
169 { FpUtils.nextDown(0x1.0p51), 0x1.0p51},
173 {-FpUtils.nextDown(0x1.0p51), -0x1.0p51+1},
175 { FpUtils
[all...]
H A DHypotTests.java32 import sun.misc.FpUtils;
93 double input = FpUtils.scalb(2, i);
129 d = FpUtils.scalb(d, DoubleConsts.MAX_EXPONENT
130 -15 - FpUtils.ilogb(d));
156 double pc = FpUtils.scalb(1.0, i);
159 pcNeighbors[1] = FpUtils.nextDown(pc);
160 pcNeighbors[0] = FpUtils.nextDown(pcNeighbors[1]);
161 pcNeighbors[3] = FpUtils.nextUp(pc);
162 pcNeighbors[4] = FpUtils.nextUp(pcNeighbors[3]);
H A DLog10Tests.java31 import sun.misc.FpUtils;
101 if(! FpUtils.isFinite(input))
107 if( ! FpUtils.isFinite(expected))
156 up = FpUtils.nextUp(1.0);
157 down = FpUtils.nextDown(1.0);
161 up = FpUtils.nextUp(up);
162 down = FpUtils.nextDown(down);
165 input[0] = FpUtils.nextDown(input[1]);
H A DHyperbolicTests.java32 import sun.misc.FpUtils;
269 double d = FpUtils.scalb(2.0, i);
283 long transExpOvfl = Double.doubleToLongBits(FpUtils.nextDown(709.7827128933841));
347 double d = FpUtils.scalb(2.0, i);
628 double d = FpUtils.scalb(2.0, i);
642 long transExpOvfl = Double.doubleToLongBits(FpUtils.nextDown(709.7827128933841));
706 double d = FpUtils.scalb(2.0, i);
987 double d = FpUtils.scalb(2.0, i);
1001 double d = FpUtils.scalb(2.0, i);
H A DIeeeRecommendedTests.java31 import sun.misc.FpUtils;
180 float po2minus = FpUtils.nextAfter(po2,
208 testGetExponentCase(FpUtils.nextAfter(top, 0.0f),
287 double po2minus = FpUtils.nextAfter(po2,
315 testGetExponentCase(FpUtils.nextAfter(top, 0.0),
626 failures+=Tests.test("FpUtils.nextDown(float)",
627 testCases[i][0], FpUtils.nextDown(testCases[i][0]), testCases[i][1]);
662 failures+=Tests.test("FpUtils.nextDown(double)",
663 testCases[i][0], FpUtils.nextDown(testCases[i][0]), testCases[i][1]);
705 failures+=Tests.test("FpUtils
[all...]
H A DTests.java33 import sun.misc.FpUtils;
230 if (FpUtils.isUnordered(expected, result) ||
325 if (FpUtils.isUnordered(expected, result) ||
/openjdk7/jdk/src/share/classes/java/lang/
H A DStrictMath.java28 import sun.misc.FpUtils;
431 double sign = FpUtils.rawCopySign(1.0, a); // preserve sign info
958 return sun.misc.FpUtils.ulp(d);
985 return sun.misc.FpUtils.ulp(f);
1006 return sun.misc.FpUtils.signum(d);
1027 return sun.misc.FpUtils.signum(f);
1205 return sun.misc.FpUtils.copySign(magnitude, sign);
1221 return sun.misc.FpUtils.copySign(magnitude, sign);
1237 return sun.misc.FpUtils.getExponent(f);
1254 return sun.misc.FpUtils
[all...]
H A DMath.java966 return sun.misc.FpUtils.ulp(d);
993 return sun.misc.FpUtils.ulp(f);
1014 return sun.misc.FpUtils.signum(d);
1035 return sun.misc.FpUtils.signum(f);
1255 return sun.misc.FpUtils.rawCopySign(magnitude, sign);
1274 return sun.misc.FpUtils.rawCopySign(magnitude, sign);
1292 return sun.misc.FpUtils.getExponent(f);
1310 return sun.misc.FpUtils.getExponent(d);
1354 return sun.misc.FpUtils.nextAfter(start, direction);
1397 return sun.misc.FpUtils
[all...]
H A DDouble.java29 import sun.misc.FpUtils;
279 if (!FpUtils.isFinite(d) )
286 if (FpUtils.rawCopySign(1.0, d) == -1.0) // value is negative,
325 FpUtils.getExponent(d) ));
H A DFloat.java29 import sun.misc.FpUtils;
282 String s = Double.toHexString(FpUtils.scalb((double)f,
/openjdk7/jdk/test/java/lang/Double/
H A DParseHexFloatingPoint.java33 import sun.misc.FpUtils;
230 new PairSD("0x0.fffffffffffff7fffffp-1022", FpUtils.nextDown(DoubleConsts.MIN_NORMAL)),
245 new PairSD("0x1.ffffffffffffep1023", FpUtils.nextDown(Double.MAX_VALUE)),
246 new PairSD("0x1.ffffffffffffe0000p1023", FpUtils.nextDown(Double.MAX_VALUE)),
247 new PairSD("0x1.ffffffffffffe8p1023", FpUtils.nextDown(Double.MAX_VALUE)),
248 new PairSD("0x1.ffffffffffffe7p1023", FpUtils.nextDown(Double.MAX_VALUE)),
287 FpUtils.nextDown(FpUtils.nextDown(2.0)),
288 FpUtils.nextDown(2.0),
H A DToHexString.java32 import sun.misc.FpUtils;
/openjdk7/jdk/src/share/classes/sun/misc/
H A DFpUtils.java32 * The class {@code FpUtils} contains static utility methods for
41 public class FpUtils { class
126 private FpUtils() {} method in class:FpUtils
187 * FpUtils#copySign(double, double) copySign} method, this method
210 * FpUtils#copySign(float, float) copySign} method, this method
H A DFloatingDecimal.java28 import sun.misc.FpUtils;
2300 FloatingDecimal fd = new FloatingDecimal(FpUtils.rawCopySign(
H A DFormattedFloatingDecimal.java28 import sun.misc.FpUtils;
/openjdk7/jdk/test/java/util/Formatter/
H A DBasicDouble.java39 import sun.misc.FpUtils;
1304 FpUtils.nextDown(DoubleConsts.MIN_NORMAL));
1306 FpUtils.nextDown(DoubleConsts.MIN_NORMAL));
H A DBasic-X.java.template39 import sun.misc.FpUtils;
1304 FpUtils.nextDown(DoubleConsts.MIN_NORMAL));
1306 FpUtils.nextDown(DoubleConsts.MIN_NORMAL));
/openjdk7/jdk/src/share/classes/java/util/
H A DFormatter.java53 import sun.misc.FpUtils;
3420 if(!FpUtils.isFinite(d) || d == 0.0 || prec == 0 || prec >= 13)
3426 int exponent = FpUtils.getExponent(d);
3433 scaleUp = FpUtils.scalb(1.0, 54);
3437 exponent = FpUtils.getExponent(d);

Completed in 77 milliseconds