Home
last modified time | relevance | path

Searched refs:mantissa (Results 1 – 6 of 6) sorted by relevance

/libcore/ojluni/src/main/java/sun/misc/
DFormattedFloatingDecimal.java42 private char[] mantissa; field in FormattedFloatingDecimal
59 this.mantissa = fdConverter.toJavaFormatString().toCharArray(); in FormattedFloatingDecimal()
110 return mantissa; in getMantissa()
169 mantissa = create(isNegative, nDigits + extraZeros + 2); in fillCompatible()
170 System.arraycopy(digits, 0, mantissa, startIndex, nDigits); in fillCompatible()
171 Arrays.fill(mantissa, startIndex + nDigits, startIndex + nDigits + extraZeros, '0'); in fillCompatible()
172 mantissa[startIndex + nDigits + extraZeros] = '.'; in fillCompatible()
173 mantissa[startIndex + nDigits + extraZeros+1] = '0'; in fillCompatible()
176 mantissa = create(isNegative, exp + 1 + t); in fillCompatible()
177 System.arraycopy(digits, 0, mantissa, startIndex, exp); in fillCompatible()
[all …]
/libcore/luni/src/main/native/
Dcbigint.cpp430 uint64_t mantissa, test64; in toDoubleHighPrecision() local
449 mantissa = *arg << highBit; in toDoubleHighPrecision()
451 CREATE_DOUBLE_BITS (mantissa, -highBit); in toDoubleHighPrecision()
456 mantissa = *arg >> highBit; in toDoubleHighPrecision()
458 CREATE_DOUBLE_BITS (mantissa, highBit); in toDoubleHighPrecision()
462 if (test > 0x400 || ((test == 0x400) && (mantissa & 1))) in toDoubleHighPrecision()
474 mantissa = in toDoubleHighPrecision()
480 mantissa = arg[length]; in toDoubleHighPrecision()
483 CREATE_DOUBLE_BITS (mantissa, length * 64 - highBit); in toDoubleHighPrecision()
487 if (test64 > SIGN_MASK || ((test64 == SIGN_MASK) && (mantissa & 1))) in toDoubleHighPrecision()
[all …]
/libcore/luni/src/main/java/java/math/
DConversion.java439 long mantissa = lVal & 0x1FFFFFFFFFFFFFL; in bigInteger2Double() local
441 if (mantissa == 0X1FFFFFFFFFFFFFL) { in bigInteger2Double()
445 if (mantissa == 0x1FFFFFFFFFFFFEL) { in bigInteger2Double()
450 if (((mantissa & 1) == 1) in bigInteger2Double()
451 && (((mantissa & 2) == 2) || BitLevel.nonZeroDroppedBits(delta, in bigInteger2Double()
453 mantissa += 2; in bigInteger2Double()
455 mantissa >>= 1; // drop the rounding bit in bigInteger2Double()
458 long result = resSign | exponent | mantissa; in bigInteger2Double()
DBigDecimal.java468 long mantissa; in BigDecimal() local
473 mantissa = (scale == 1075) ? (bits & 0xFFFFFFFFFFFFFL) << 1 in BigDecimal()
475 if (mantissa == 0) { in BigDecimal()
481 trailingZeros = Math.min(scale, Long.numberOfTrailingZeros(mantissa)); in BigDecimal()
482 mantissa >>>= trailingZeros; in BigDecimal()
487 mantissa = -mantissa; in BigDecimal()
489 int mantissaBits = bitLength(mantissa); in BigDecimal()
493 smallValue = mantissa << (-scale); in BigDecimal()
496 bi.putLongInt(mantissa); in BigDecimal()
505 smallValue = mantissa * LONG_FIVE_POW[scale]; in BigDecimal()
[all …]
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DFormattedFloatingDecimal.java88 private char[] mantissa; field in FormattedFloatingDecimal
/libcore/ojluni/src/main/java/java/util/
DFormatter.java3670 char[] mant = bdl.mantissa();
3724 char mant[] = bdl.mantissa();
3733 mant = addDot(bdl.mantissa());
3808 public char[] mantissa() {