test/java/lang/Math/Log1pTests.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2014, 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.
@@ -27,11 +27,10 @@
* @summary Tests for {Math, StrictMath}.log1p
* @author Joseph D. Darcy
*/
import sun.misc.DoubleConsts;
-import sun.misc.FpUtils;
public class Log1pTests {
private Log1pTests(){}
static final double infinityD = Double.POSITIVE_INFINITY;
@@ -103,11 +102,11 @@
// 52 and compare against HP-15C formula.
java.util.Random rand = new java.util.Random();
for(int i = 0; i < 1000; i++) {
double d = rand.nextDouble();
- d = Math.scalb(d, -53 - FpUtils.ilogb(d));
+ d = Math.scalb(d, -53 - Tests.ilogb(d));
for(int j = -53; j <= 52; j++) {
failures += testLog1pCaseWithUlpDiff(d, hp15cLogp(d), 5);
d *= 2.0; // increase exponent by 1