Home
last modified time | relevance | path

Searched refs:DoubleConsts (Results 1 – 10 of 10) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/
DMath.java33 import sun.misc.DoubleConsts;
726 long biasedExp = (longBits & DoubleConsts.EXP_BIT_MASK) in round()
727 >> (DoubleConsts.SIGNIFICAND_WIDTH - 1); in round()
728 long shift = (DoubleConsts.SIGNIFICAND_WIDTH - 2 in round()
729 + DoubleConsts.EXP_BIAS) - biasedExp; in round()
732 long r = ((longBits & DoubleConsts.SIGNIF_BIT_MASK) in round()
733 | (DoubleConsts.SIGNIF_BIT_MASK + 1)); in round()
1596 case DoubleConsts.MAX_EXPONENT+1: // NaN or infinity in ulp()
1599 case DoubleConsts.MIN_EXPONENT-1: // zero or subnormal in ulp()
1603 assert exp <= DoubleConsts.MAX_EXPONENT && exp >= DoubleConsts.MIN_EXPONENT; in ulp()
[all …]
DDouble.java30 import sun.misc.DoubleConsts;
304 boolean subnormal = (d < DoubleConsts.MIN_NORMAL); in toHexString()
310 & DoubleConsts.SIGNIF_BIT_MASK) | in toHexString()
332 DoubleConsts.MIN_EXPONENT: in toHexString()
576 return Math.abs(d) <= DoubleConsts.MAX_VALUE; in isFinite()
839 if ( ((result & DoubleConsts.EXP_BIT_MASK) == in doubleToLongBits()
840 DoubleConsts.EXP_BIT_MASK) && in doubleToLongBits()
841 (result & DoubleConsts.SIGNIF_BIT_MASK) != 0L) in doubleToLongBits()
DFloat.java30 import sun.misc.DoubleConsts;
291 DoubleConsts.MIN_EXPONENT- in toHexString()
DStrictMath.java29 import sun.misc.DoubleConsts;
409 long mask = DoubleConsts.SIGNIF_BIT_MASK >> exponent; in floorOrCeil()
/libcore/ojluni/src/main/java/sun/misc/
DFpUtils.java29 import sun.misc.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()
DFloatingDecimal.java43 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 …]
DDoubleConsts.java35 public class DoubleConsts { class
39 private DoubleConsts() {} in DoubleConsts() method in DoubleConsts
/libcore/ojluni/src/main/java/java/util/
DFormatter.java61 import sun.misc.DoubleConsts;
3551 = (exponent == DoubleConsts.MIN_EXPONENT - 1);
3561 assert exponent >= DoubleConsts.MIN_EXPONENT &&
3562 exponent <= DoubleConsts.MAX_EXPONENT: exponent;
3567 = DoubleConsts.SIGNIFICAND_WIDTH - precision;
3568 assert(shiftDistance >= 1 && shiftDistance < DoubleConsts.SIGNIFICAND_WIDTH);
3573 = (doppel & (DoubleConsts.EXP_BIT_MASK
3574 | DoubleConsts.SIGNIF_BIT_MASK))
3593 long signBit = doppel & DoubleConsts.SIGN_BIT_MASK;
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java40 import sun.misc.DoubleConsts;
4275 int shift = exponent - DoubleConsts.SIGNIFICAND_WIDTH;
4302 signifFloor &= DoubleConsts.SIGNIF_BIT_MASK; // remove the implied bit
4314 long bits = (long) ((exponent + DoubleConsts.EXP_BIAS))
4315 << (DoubleConsts.SIGNIFICAND_WIDTH - 1);
4324 bits |= signum & DoubleConsts.SIGN_BIT_MASK;
/libcore/
Dopenjdk_java_files.bp1466 "ojluni/src/main/java/sun/misc/DoubleConsts.java",