Home
last modified time | relevance | path

Searched refs:FloatConsts (Results 1 – 11 of 11) sorted by relevance

/libcore/ojluni/src/test/java/lang/Math/
DFloatConsts.java31 public final class FloatConsts { class
36 private FloatConsts() { in FloatConsts() method in FloatConsts
42 public static final int EXP_BIAS = jdk.internal.math.FloatConsts.EXP_BIAS;
47 public static final int EXP_BIT_MASK = jdk.internal.math.FloatConsts.EXP_BIT_MASK;
52 public static final int SIGN_BIT_MASK = jdk.internal.math.FloatConsts.SIGN_BIT_MASK;
57 public static final int SIGNIF_BIT_MASK = jdk.internal.math.FloatConsts.SIGNIF_BIT_MASK;
63 public static final int SIGNIFICAND_WIDTH = jdk.internal.math.FloatConsts.SIGNIFICAND_WIDTH;
69 public static final int MIN_SUB_EXPONENT = jdk.internal.math.FloatConsts.MIN_SUB_EXPONENT;
DIeeeRecommendedTests.java77 (FloatConsts.SIGNIFICAND_WIDTH - 1)) in powerOfTwoF()
78 & FloatConsts.EXP_BIT_MASK); in powerOfTwoF()
173 (~FloatConsts.SIGNIF_BIT_MASK)) | in testFloatGetExponent()
176 FloatConsts.SIGNIF_BIT_MASK)); in testFloatGetExponent()
200 i < FloatConsts.SIGNIFICAND_WIDTH; in testFloatGetExponent()
902 FloatConsts.SIGNIFICAND_WIDTH + 1; in testFloatScalb()
958 Float.MIN_EXPONENT - FloatConsts.SIGNIFICAND_WIDTH, in testFloatScalb()
959 FloatConsts.MIN_SUB_EXPONENT, in testFloatScalb()
1339 expected = Math.scalb(1.0f, i - (FloatConsts.SIGNIFICAND_WIDTH - 1)); in testFloatUlp()
1350 (~FloatConsts.SIGNIF_BIT_MASK)) | in testFloatUlp()
[all …]
DTests.java183 transducer &= FloatConsts.SIGNIF_BIT_MASK; in ilogb()
191 (1 << (FloatConsts.SIGNIFICAND_WIDTH - 1))) { in ilogb()
197 Float.MIN_EXPONENT - (FloatConsts.SIGNIFICAND_WIDTH - 1) && in ilogb()
/libcore/ojluni/src/test/java/lang/Float/
DBitwiseConversionTest.java37 import jdk.internal.math.FloatConsts;
45 int y = x & FloatConsts.SIGNIF_BIT_MASK; in testNanCase()
48 intBitsToFloat(FloatConsts.EXP_BIT_MASK | y), in testNanCase()
49 intBitsToFloat(FloatConsts.SIGN_BIT_MASK | FloatConsts.EXP_BIT_MASK | y) in testNanCase()
63 for (int i = 0; i < FloatConsts.SIGNIFICAND_WIDTH - 1; i++) { in testNanCases()
/libcore/ojluni/src/main/java/sun/misc/
DFpUtils.java29 import jdk.internal.math.FloatConsts;
415 case FloatConsts.MAX_EXPONENT+1: // NaN or infinity in ilogb()
421 case FloatConsts.MIN_EXPONENT-1: // zero or subnormal in ilogb()
437 transducer &= FloatConsts.SIGNIF_BIT_MASK; in ilogb()
445 (1 << (FloatConsts.SIGNIFICAND_WIDTH - 1))) { in ilogb()
451 FloatConsts.MIN_EXPONENT - (FloatConsts.SIGNIFICAND_WIDTH-1) && in ilogb()
452 exponent < FloatConsts.MIN_EXPONENT); in ilogb()
457 assert( exponent >= FloatConsts.MIN_EXPONENT && in ilogb()
458 exponent <= FloatConsts.MAX_EXPONENT); in ilogb()
/libcore/ojluni/src/main/java/java/lang/
DMath.java33 import jdk.internal.math.FloatConsts;
897 int biasedExp = (intBits & FloatConsts.EXP_BIT_MASK) in round()
898 >> (FloatConsts.SIGNIFICAND_WIDTH - 1); in round()
899 int shift = (FloatConsts.SIGNIFICAND_WIDTH - 2 in round()
900 + FloatConsts.EXP_BIAS) - biasedExp; in round()
903 int r = ((intBits & FloatConsts.SIGNIF_BIT_MASK) in round()
904 | (FloatConsts.SIGNIF_BIT_MASK + 1)); in round()
2126 return Float.intBitsToFloat(Float.floatToRawIntBits(a) & FloatConsts.MAG_BIT_MASK); in abs()
2736 exp = exp - (FloatConsts.SIGNIFICAND_WIDTH - 1); in ulp()
2744 (exp - (Float.MIN_EXPONENT - (FloatConsts.SIGNIFICAND_WIDTH - 1)))); in ulp()
[all …]
/libcore/ojluni/src/main/java/jdk/internal/math/
DFloatConsts.java39 public class FloatConsts { class
43 private FloatConsts() {} in FloatConsts() method in FloatConsts
DFloatingDecimal.java54 static final int SINGLE_EXP_SHIFT = FloatConsts.SIGNIFICAND_WIDTH - 1;
1569 int bigBbits = ieeeBits & FloatConsts.SIGNIF_BIT_MASK; in floatValue()
1579 binexp -= FloatConsts.EXP_BIAS; in floatValue()
1606 if (binexp <= -FloatConsts.EXP_BIAS) { in floatValue()
1610 hulpbias = binexp + lowOrderZeros + FloatConsts.EXP_BIAS; in floatValue()
1648 if ((bigIntNBits == 1) && (bigIntExp > -FloatConsts.EXP_BIAS + 1)) { in floatValue()
1687 … if (ieeeBits == 0 || ieeeBits == FloatConsts.EXP_BIT_MASK) { // 0.0 or Float.POSITIVE_INFINITY in floatValue()
1695 ieeeBits |= FloatConsts.SIGN_BIT_MASK; in floatValue()
1791 boolean isNegative = (fBits&FloatConsts.SIGN_BIT_MASK) != 0; in getBinaryToASCIIConverter()
1792 int fractBits = fBits&FloatConsts.SIGNIF_BIT_MASK; in getBinaryToASCIIConverter()
[all …]
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java44 import jdk.internal.math.FloatConsts;
4435 int shift = exponent - FloatConsts.SIGNIFICAND_WIDTH;
4454 signifFloor &= FloatConsts.SIGNIF_BIT_MASK; // remove the implied bit
4466 int bits = ((exponent + FloatConsts.EXP_BIAS))
4467 << (FloatConsts.SIGNIFICAND_WIDTH - 1);
4476 bits |= signum & FloatConsts.SIGN_BIT_MASK;
/libcore/
Dopenjdk_java_files.bp1935 "ojluni/src/main/java/jdk/internal/math/FloatConsts.java",
DEXPECTED_UPSTREAM1415 …/main/java/jdk/internal/math/FloatConsts.java,jdk21u/jdk-21.0.2-ga,src/java.base/share/classes/jdk…