Home
last modified time | relevance | path

Searched refs:MAX_EXPONENT (Results 1 – 25 of 36) sorted by relevance

12

/libcore/ojluni/src/test/java/lang/Math/
DIeeeRecommendedTests.java67 return Double.longBitsToDouble((((long) n + (long) Double.MAX_EXPONENT) << in powerOfTwoD()
76 return Float.intBitsToFloat(((n + Float.MAX_EXPONENT) << in powerOfTwoF()
142 int[] specialResults = {Float.MAX_EXPONENT + 1, // NaN results in testFloatGetExponent()
143 Float.MAX_EXPONENT + 1, // Infinite results in testFloatGetExponent()
149 -Float.MAX_EXPONENT, in testFloatGetExponent()
151 Float.MAX_EXPONENT in testFloatGetExponent()
160 for (int i = Float.MIN_EXPONENT; i <= Float.MAX_EXPONENT; i++) { in testFloatGetExponent()
239 int[] specialResults = {Double.MAX_EXPONENT + 1, // NaN results in testDoubleGetExponent()
240 Double.MAX_EXPONENT + 1, // Infinite results in testDoubleGetExponent()
246 -Double.MAX_EXPONENT, in testDoubleGetExponent()
[all …]
DExpm1Tests.java101 for (int i = 10; i <= Double.MAX_EXPONENT; i++) { in testExpm1()
117 for (int i = 7; i <= Double.MAX_EXPONENT; i++) { in testExpm1()
DTests.java91 case Double.MAX_EXPONENT + 1: // NaN or infinity in ilogb()
135 exponent <= Double.MAX_EXPONENT); in ilogb()
160 case Float.MAX_EXPONENT + 1: // NaN or infinity in ilogb()
204 exponent <= Float.MAX_EXPONENT); in ilogb()
DHyperbolicTests.java345 for (int i = 10; i <= Double.MAX_EXPONENT; i++) { in testSinh()
693 for (int i = 10; i <= Double.MAX_EXPONENT; i++) { in testCosh()
977 for (int i = 5; i <= Double.MAX_EXPONENT; i++) { in testTanh()
DHypotTests.java94 for (int i = DoubleConsts.MIN_SUB_EXPONENT; i <= Double.MAX_EXPONENT; i++) { in testHypot()
136 d = Math.scalb(d, Double.MAX_EXPONENT in testHypot()
DCubeRootTests.java103 for (int i = 18; i <= Double.MAX_EXPONENT / 3; i++) { in testCubeRoot()
241 for (int i = 18; i <= Double.MAX_EXPONENT / 3; i++) { in testCubeRoot()
DCeilAndFloorTests.java66 for (int i = Double.MIN_EXPONENT; i <= Double.MAX_EXPONENT; i++) { in nearIntegerTests()
DLog1pTests.java107 for (int i = 53; i <= Double.MAX_EXPONENT; i++) { in testLog1p()
/libcore/ojluni/src/test/java/math/BigInteger/
DPrimitiveConversionTests.java54 512, 513, Double.MAX_EXPONENT - 1, Double.MAX_EXPONENT,
55 Double.MAX_EXPONENT + 1, 2000, 2001, 2002)) {
/libcore/ojluni/src/main/java/sun/misc/
DFpUtils.java345 case DoubleConsts.MAX_EXPONENT+1: // NaN or infinity in ilogb()
388 exponent <= DoubleConsts.MAX_EXPONENT); in ilogb()
415 case FloatConsts.MAX_EXPONENT+1: // NaN or infinity in ilogb()
458 exponent <= FloatConsts.MAX_EXPONENT); in ilogb()
/libcore/ojluni/src/main/java/java/lang/
DMath.java2683 case Double.MAX_EXPONENT + 1 -> Math.abs(d); // NaN or infinity in ulp()
2686 assert exp <= Double.MAX_EXPONENT && exp >= Double.MIN_EXPONENT; in ulp()
2730 case Float.MAX_EXPONENT + 1 -> Math.abs(f); // NaN or infinity in ulp()
2733 assert exp <= Float.MAX_EXPONENT && exp >= Float.MIN_EXPONENT; in ulp()
3539 final int MAX_SCALE = Double.MAX_EXPONENT + -Double.MIN_EXPONENT +
3608 final int MAX_SCALE = Float.MAX_EXPONENT + -Float.MIN_EXPONENT +
3632 assert(n >= Double.MIN_EXPONENT && n <= Double.MAX_EXPONENT);
3642 assert(n >= Float.MIN_EXPONENT && n <= Float.MAX_EXPONENT);
DFloat.java127 public static final int MAX_EXPONENT = 127; field in Float
/libcore/ojluni/src/test/java/lang/Double/
DConstantsTest.java56 case Double.MAX_EXPONENT: // 1023 in testPublicStaticFinalFields_areConstantExpressions()
/libcore/ojluni/src/test/java/lang/Float/
DConstantsTest.java56 case Float.MAX_EXPONENT: // 127 in testPublicStaticFinalFields_areConstantExpressions()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DMathTest.java419 Double.MAX_EXPONENT + 1, Double.MAX_EXPONENT + 1,
420 Double.MAX_EXPONENT, Double.MAX_EXPONENT, 768, 768, 11, 11, 2, 2,
426 Double.MAX_EXPONENT + 1 };
464 Float.MAX_EXPONENT + 1, Float.MAX_EXPONENT + 1, Float.MAX_EXPONENT,
465 Float.MAX_EXPONENT, 78, 78, 11, 11, 2, 2, 0, 0, -1, -1, -2, -2,
470 Float.MIN_EXPONENT - 1, Float.MAX_EXPONENT + 1, 0, Float.MIN_EXPONENT };
1454 double halfMax = Math.scalb(1.0, Double.MAX_EXPONENT); in test_scalb_DI()
1459 Double.MAX_EXPONENT + 1)); in test_scalb_DI()
1461 Double.MAX_EXPONENT + 2)); in test_scalb_DI()
1463 halfMax = Math.scalb(-1.0, Double.MAX_EXPONENT); in test_scalb_DI()
[all …]
DStrictMathTest.java1018 double halfMax = StrictMath.scalb(1.0, Double.MAX_EXPONENT); in test_scalb_DI()
1024 .ulp(1.0), Double.MAX_EXPONENT + 1)); in test_scalb_DI()
1026 1.0 - StrictMath.ulp(1.0), Double.MAX_EXPONENT + 2)); in test_scalb_DI()
1028 halfMax = StrictMath.scalb(-1.0, Double.MAX_EXPONENT); in test_scalb_DI()
1172 float halfMax = StrictMath.scalb(1.0f, Float.MAX_EXPONENT); in test_scalb_FI()
1178 .ulp(1.0f), Float.MAX_EXPONENT + 1)); in test_scalb_FI()
1180 1.0f - StrictMath.ulp(1.0f), Float.MAX_EXPONENT + 2)); in test_scalb_FI()
1182 halfMax = StrictMath.scalb(-1.0f, Float.MAX_EXPONENT); in test_scalb_FI()
/libcore/ojluni/src/main/java/jdk/internal/math/
DFloatConsts.java69 public static final int MAX_EXPONENT = 127; field in FloatConsts
DDoubleConsts.java73 public static final int MAX_EXPONENT = 1023; field in DoubleConsts
/libcore/ojluni/src/test/java/lang/StrictMath/
DTests.java62 final int EXPONENT_RANGE = Double.MAX_EXPONENT - Double.MIN_EXPONENT + 1; in createRandomDouble()
/libcore/ojluni/annotations/flagged_api/java/lang/
DDouble.annotated.java96 public static final int MAX_EXPONENT = 1023; // 0x3ff field in Double
DFloat.annotated.java99 public static final int MAX_EXPONENT = 127; // 0x7f field in Float
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DDouble.annotated.java95 public static final int MAX_EXPONENT = 1023; // 0x3ff field in Double
DFloat.annotated.java97 public static final int MAX_EXPONENT = 127; // 0x7f field in Float
/libcore/ojluni/annotations/hiddenapi/java/lang/
DFloat.java157 public static final int MAX_EXPONENT = 127; // 0x7f field in Float
DDouble.java154 public static final int MAX_EXPONENT = 1023; // 0x3ff field in Double

12