Home
last modified time | relevance | path

Searched refs:mag (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/main/java/java/math/
DBigInteger.java147 final int[] mag; field in BigInteger
309 mag = makePositive(val); in BigInteger()
312 mag = stripLeadingZeroBytes(val); in BigInteger()
313 signum = (mag.length == 0 ? 0 : 1); in BigInteger()
315 if (mag.length >= MAX_MAG_LENGTH) { in BigInteger()
331 mag = makePositive(val); in BigInteger()
334 mag = trustedStripLeadingZeroInts(val); in BigInteger()
335 signum = (mag.length == 0 ? 0 : 1); in BigInteger()
337 if (mag.length >= MAX_MAG_LENGTH) { in BigInteger()
359 this.mag = stripLeadingZeroBytes(magnitude); in BigInteger()
[all …]
DMutableBigInteger.java131 intLen = b.mag.length; in MutableBigInteger()
132 value = Arrays.copyOf(b.mag, intLen); in MutableBigInteger()
204 int[] mag = getMagnitudeArray(); in toBigDecimal() local
205 int len = mag.length; in toBigDecimal()
206 int d = mag[0]; in toBigDecimal()
210 return new BigDecimal(new BigInteger(mag, sign), INFLATED, scale, 0); in toBigDecimal()
212 ((mag[1] & LONG_MASK) | (d & LONG_MASK) << 32) : in toBigDecimal()
225 int[] mag = getMagnitudeArray(); in toCompactValue() local
226 int len = mag.length; in toCompactValue()
227 int d = mag[0]; in toCompactValue()
[all …]
DBigDecimal.java2080 int mag = Math.abs(n); // magnitude of n in pow() local
2082 int elength = longDigitLength(mag); // length of n in digits in pow()
2092 mag += mag; // shift left 1 bit in pow()
2093 if (mag < 0) { // top bit is set in pow()
3883 int[] m = b.mag; in compactValFor()
4248 MutableBigInteger mdividend = new MutableBigInteger(bdividend.mag); in divideAndRound()
4277 MutableBigInteger mdividend = new MutableBigInteger(bdividend.mag); in divideAndRound()
4326 MutableBigInteger mdividend = new MutableBigInteger(bdividend.mag); in divideAndRound()
4328 MutableBigInteger mdivisor = new MutableBigInteger(bdivisor.mag); in divideAndRound()
4354 MutableBigInteger mdividend = new MutableBigInteger(bdividend.mag); in divideAndRound()
[all …]
/libcore/ojluni/src/main/java/java/lang/
DLong.java355 int mag = Long.SIZE - Long.numberOfLeadingZeros(val); in toUnsignedString0() local
356 int chars = Math.max(((mag + (shift - 1)) / shift), 1); in toUnsignedString0()
DInteger.java312 int mag = Integer.SIZE - Integer.numberOfLeadingZeros(val); in toUnsignedString0() local
313 int chars = Math.max(((mag + (shift - 1)) / shift), 1); in toUnsignedString0()