test/java/lang/Math/IeeeRecommendedTests.java

Print this page




   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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  20  * CA 95054 USA or visit www.sun.com if you need additional information or
  21  * have any 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  * @compile -source 1.5 IeeeRecommendedTests.java
  30  * @run main IeeeRecommendedTests
  31  */
  32 
  33 import sun.misc.FpUtils;
  34 import sun.misc.DoubleConsts;
  35 import sun.misc.FloatConsts;
  36 
  37 public class IeeeRecommendedTests {
  38     private IeeeRecommendedTests(){}
  39 
  40     static final float  NaNf = Float.NaN;
  41     static final double NaNd = Double.NaN;
  42     static final float  infinityF = Float.POSITIVE_INFINITY;
  43     static final double infinityD = Double.POSITIVE_INFINITY;
  44 
  45     static final float  Float_MAX_VALUEmm       = 0x1.fffffcP+127f;
  46     static final float  Float_MAX_SUBNORMAL     = 0x0.fffffeP-126f;
  47     static final float  Float_MAX_SUBNORMALmm   = 0x0.fffffcP-126f;
  48 
  49     static final double Double_MAX_VALUEmm      = 0x1.ffffffffffffeP+1023;
  50     static final double Double_MAX_SUBNORMAL    = 0x0.fffffffffffffP-1022;




   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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  20  * CA 95054 USA or visit www.sun.com if you need additional information or
  21  * have any 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 import sun.misc.FpUtils;
  32 import sun.misc.DoubleConsts;
  33 import sun.misc.FloatConsts;
  34 
  35 public class IeeeRecommendedTests {
  36     private IeeeRecommendedTests(){}
  37 
  38     static final float  NaNf = Float.NaN;
  39     static final double NaNd = Double.NaN;
  40     static final float  infinityF = Float.POSITIVE_INFINITY;
  41     static final double infinityD = Double.POSITIVE_INFINITY;
  42 
  43     static final float  Float_MAX_VALUEmm       = 0x1.fffffcP+127f;
  44     static final float  Float_MAX_SUBNORMAL     = 0x0.fffffeP-126f;
  45     static final float  Float_MAX_SUBNORMALmm   = 0x0.fffffcP-126f;
  46 
  47     static final double Double_MAX_VALUEmm      = 0x1.ffffffffffffeP+1023;
  48     static final double Double_MAX_SUBNORMAL    = 0x0.fffffffffffffP-1022;