9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 4860891 4826732 4780454 4939441 4826652
27 * @summary Tests for IEEE 754[R] recommended functions and similar methods
28 * @author Joseph D. Darcy
29 */
30
31 public class IeeeRecommendedTests {
32 private IeeeRecommendedTests(){}
33
34 static final float NaNf = Float.NaN;
35 static final double NaNd = Double.NaN;
36 static final float infinityF = Float.POSITIVE_INFINITY;
37 static final double infinityD = Double.POSITIVE_INFINITY;
38
39 static final float Float_MAX_VALUEmm = 0x1.fffffcP+127f;
40 static final float Float_MAX_SUBNORMAL = 0x0.fffffeP-126f;
41 static final float Float_MAX_SUBNORMALmm = 0x0.fffffcP-126f;
42
43 static final double Double_MAX_VALUEmm = 0x1.ffffffffffffeP+1023;
44 static final double Double_MAX_SUBNORMAL = 0x0.fffffffffffffP-1022;
45 static final double Double_MAX_SUBNORMALmm = 0x0.ffffffffffffeP-1022;
46
47 // Initialize shared random number generator
48 static java.util.Random rand = new java.util.Random();
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 4860891 4826732 4780454 4939441 4826652
27 * @summary Tests for IEEE 754[R] recommended functions and similar methods
28 * @author Joseph D. Darcy
29 * @key randomness
30 */
31
32 public class IeeeRecommendedTests {
33 private IeeeRecommendedTests(){}
34
35 static final float NaNf = Float.NaN;
36 static final double NaNd = Double.NaN;
37 static final float infinityF = Float.POSITIVE_INFINITY;
38 static final double infinityD = Double.POSITIVE_INFINITY;
39
40 static final float Float_MAX_VALUEmm = 0x1.fffffcP+127f;
41 static final float Float_MAX_SUBNORMAL = 0x0.fffffeP-126f;
42 static final float Float_MAX_SUBNORMALmm = 0x0.fffffcP-126f;
43
44 static final double Double_MAX_VALUEmm = 0x1.ffffffffffffeP+1023;
45 static final double Double_MAX_SUBNORMAL = 0x0.fffffffffffffP-1022;
46 static final double Double_MAX_SUBNORMALmm = 0x0.ffffffffffffeP-1022;
47
48 // Initialize shared random number generator
49 static java.util.Random rand = new java.util.Random();
|