/libcore/ojluni/src/test/java/lang/Math/ |
D | DoubleConsts.java | 31 public final class DoubleConsts { class 36 private DoubleConsts() { in DoubleConsts() method in DoubleConsts 42 public static final int EXP_BIAS = jdk.internal.math.DoubleConsts.EXP_BIAS; 47 public static final long EXP_BIT_MASK = jdk.internal.math.DoubleConsts.EXP_BIT_MASK; 52 public static final long SIGN_BIT_MASK = jdk.internal.math.DoubleConsts.SIGN_BIT_MASK; 57 public static final long SIGNIF_BIT_MASK = jdk.internal.math.DoubleConsts.SIGNIF_BIT_MASK; 63 public static final int SIGNIFICAND_WIDTH = jdk.internal.math.DoubleConsts.SIGNIFICAND_WIDTH; 69 public static final int MIN_SUB_EXPONENT = jdk.internal.math.DoubleConsts.MIN_SUB_EXPONENT;
|
D | CubeRootTests.java | 108 for (int i = -1; i >= DoubleConsts.MIN_SUB_EXPONENT / 3; i--) { in testCubeRoot() 118 DoubleConsts.EXP_BIT_MASK; in testCubeRoot() 121 DoubleConsts.EXP_BIT_MASK; in testCubeRoot() 129 (DoubleConsts.SIGNIFICAND_WIDTH - 1 - 16)); in testCubeRoot() 136 (DoubleConsts.SIGNIFICAND_WIDTH - 1 - 16)); in testCubeRoot() 278 for (int i = -1; i >= DoubleConsts.MIN_SUB_EXPONENT / 3; i--) { in testCubeRoot()
|
D | IeeeRecommendedTests.java | 68 (DoubleConsts.SIGNIFICAND_WIDTH - 1)) in powerOfTwoD() 69 & DoubleConsts.EXP_BIT_MASK); in powerOfTwoD() 270 (~DoubleConsts.SIGNIF_BIT_MASK)) | in testDoubleGetExponent() 273 DoubleConsts.SIGNIF_BIT_MASK)); in testDoubleGetExponent() 298 i < DoubleConsts.SIGNIFICAND_WIDTH; in testDoubleGetExponent() 1096 DoubleConsts.SIGNIFICAND_WIDTH + 1; in testDoubleScalb() 1152 Double.MIN_EXPONENT - DoubleConsts.SIGNIFICAND_WIDTH, in testDoubleScalb() 1153 DoubleConsts.MIN_SUB_EXPONENT, in testDoubleScalb() 1442 expected = Math.scalb(1.0, i - (DoubleConsts.SIGNIFICAND_WIDTH - 1)); in testDoubleUlp() 1453 (~DoubleConsts.SIGNIF_BIT_MASK)) | in testDoubleUlp() [all …]
|
D | HyperbolicTests.java | 267 for (int i = DoubleConsts.MIN_SUB_EXPONENT; i < -27; i++) { in testSinh() 615 for (int i = DoubleConsts.MIN_SUB_EXPONENT; i < -27; i++) { in testCosh() 963 for (int i = DoubleConsts.MIN_SUB_EXPONENT; i < -27; i++) { in testTanh()
|
D | Tests.java | 114 transducer &= DoubleConsts.SIGNIF_BIT_MASK; in ilogb() 122 (1L << (DoubleConsts.SIGNIFICAND_WIDTH - 1))) { in ilogb() 128 Double.MIN_EXPONENT - (DoubleConsts.SIGNIFICAND_WIDTH - 1) && in ilogb()
|
D | Expm1Tests.java | 83 for (int i = DoubleConsts.MIN_SUB_EXPONENT; i <= -54; i++) { in testExpm1()
|
D | Log1pTests.java | 100 for (int i = DoubleConsts.MIN_SUB_EXPONENT; i <= -54; i++) { in testLog1p()
|
D | HypotTests.java | 94 for (int i = DoubleConsts.MIN_SUB_EXPONENT; i <= Double.MAX_EXPONENT; i++) { in testHypot()
|
/libcore/ojluni/src/test/java/lang/Double/ |
D | BitwiseConversionTest.java | 37 import jdk.internal.math.DoubleConsts; 45 long y = x & DoubleConsts.SIGNIF_BIT_MASK; in testNanCase() 48 longBitsToDouble(DoubleConsts.EXP_BIT_MASK | y), in testNanCase() 49 longBitsToDouble(DoubleConsts.SIGN_BIT_MASK | DoubleConsts.EXP_BIT_MASK | y) in testNanCase() 63 for (int i = 0; i < DoubleConsts.SIGNIFICAND_WIDTH - 1; i++) { in testNanCases()
|
D | ToHexStringTest.java | 37 import jdk.internal.math.DoubleConsts; 91 DoubleConsts.EXP_BIAS; in hexLongStringtoHexDoubleString()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | FpUtils.java | 28 import jdk.internal.math.DoubleConsts; 345 case DoubleConsts.MAX_EXPONENT+1: // NaN or infinity in ilogb() 351 case DoubleConsts.MIN_EXPONENT-1: // zero or subnormal in ilogb() 367 transducer &= DoubleConsts.SIGNIF_BIT_MASK; in ilogb() 375 (1L << (DoubleConsts.SIGNIFICAND_WIDTH - 1))) { in ilogb() 381 DoubleConsts.MIN_EXPONENT - (DoubleConsts.SIGNIFICAND_WIDTH-1) && in ilogb() 382 exponent < DoubleConsts.MIN_EXPONENT); in ilogb() 387 assert( exponent >= DoubleConsts.MIN_EXPONENT && in ilogb() 388 exponent <= DoubleConsts.MAX_EXPONENT); in ilogb()
|
/libcore/ojluni/src/main/java/jdk/internal/math/ |
D | FloatingDecimal.java | 43 static final int EXP_SHIFT = DoubleConsts.SIGNIFICAND_WIDTH - 1; 45 static final long EXP_ONE = ((long)DoubleConsts.EXP_BIAS)<<EXP_SHIFT; // exponent of 1.0 820 … double d2 = Double.longBitsToDouble( EXP_ONE | ( fractBits & DoubleConsts.SIGNIF_BIT_MASK ) ); 823 … int exponent = (int)((dBits & DoubleConsts.EXP_BIT_MASK) >> EXP_SHIFT) - DoubleConsts.EXP_BIAS; 824 boolean isNegative = (dBits & DoubleConsts.SIGN_BIT_MASK) != 0; // discover sign 826 long mask = DoubleConsts.SIGNIF_BIT_MASK >> exponent; 827 … int r = (int)(( (dBits&DoubleConsts.SIGNIF_BIT_MASK) | FRACT_HOB )>>(EXP_SHIFT-exponent)); 830 return (((dBits&~DoubleConsts.SIGN_BIT_MASK) == 0) ? 0 : 1263 long bigBbits = ieeeBits & DoubleConsts.SIGNIF_BIT_MASK; 1273 binexp -= DoubleConsts.EXP_BIAS; [all …]
|
D | DoubleConsts.java | 39 public class DoubleConsts { class 43 private DoubleConsts() {} in DoubleConsts() method in DoubleConsts
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Math.java | 34 import jdk.internal.math.DoubleConsts; 947 long biasedExp = (longBits & DoubleConsts.EXP_BIT_MASK) in round() 948 >> (DoubleConsts.SIGNIFICAND_WIDTH - 1); in round() 949 long shift = (DoubleConsts.SIGNIFICAND_WIDTH - 2 in round() 950 + DoubleConsts.EXP_BIAS) - biasedExp; in round() 953 long r = ((longBits & DoubleConsts.SIGNIF_BIT_MASK) in round() 954 | (DoubleConsts.SIGNIF_BIT_MASK + 1)); in round() 2152 return Double.longBitsToDouble(Double.doubleToRawLongBits(a) & DoubleConsts.MAG_BIT_MASK); in abs() 2689 exp = exp - (DoubleConsts.SIGNIFICAND_WIDTH - 1); in ulp() 2697 (exp - (Double.MIN_EXPONENT - (DoubleConsts.SIGNIFICAND_WIDTH - 1)))); in ulp() [all …]
|
D | Double.java | 34 import jdk.internal.math.DoubleConsts; 433 & DoubleConsts.SIGNIF_BIT_MASK) | in toHexString()
|
D | StrictMath.java | 29 import jdk.internal.math.DoubleConsts; 517 long mask = DoubleConsts.SIGNIF_BIT_MASK >> exponent; in floorOrCeil()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Formatter.java | 69 import jdk.internal.math.DoubleConsts; 3807 = DoubleConsts.SIGNIFICAND_WIDTH - precision; 3808 assert(shiftDistance >= 1 && shiftDistance < DoubleConsts.SIGNIFICAND_WIDTH); 3813 = (doppel & (DoubleConsts.EXP_BIT_MASK 3814 | DoubleConsts.SIGNIF_BIT_MASK)) 3833 long signBit = doppel & DoubleConsts.SIGN_BIT_MASK;
|
/libcore/ojluni/src/main/java/java/math/ |
D | BigInteger.java | 43 import jdk.internal.math.DoubleConsts; 4520 int shift = exponent - DoubleConsts.SIGNIFICAND_WIDTH; 4547 signifFloor &= DoubleConsts.SIGNIF_BIT_MASK; // remove the implied bit 4559 long bits = (long) ((exponent + DoubleConsts.EXP_BIAS)) 4560 << (DoubleConsts.SIGNIFICAND_WIDTH - 1); 4569 bits |= signum & DoubleConsts.SIGN_BIT_MASK;
|
/libcore/ |
D | openjdk_java_files.bp | 1933 "ojluni/src/main/java/jdk/internal/math/DoubleConsts.java",
|
D | EXPECTED_UPSTREAM | 1413 …main/java/jdk/internal/math/DoubleConsts.java,jdk21u/jdk-21.0.2-ga,src/java.base/share/classes/jdk…
|