Home
last modified time | relevance | path

Searched refs:numberLength (Results 1 – 4 of 4) sorted by relevance

/libcore/luni/src/main/java/java/math/
DLogical.java46 int[] resDigits = new int[val.numberLength + 1]; in not()
51 if (val.digits[val.numberLength - 1] != -1) { in not()
56 for (i = 0; (i < val.numberLength) && (val.digits[i] == -1); i++) { in not()
59 if (i == val.numberLength) { in not()
75 for (i++; i < val.numberLength; i++) { in not()
102 } else if (val.numberLength > that.numberLength) { in and()
113 int resLength = Math.min(val.numberLength, that.numberLength); in andPositive()
136 if (iNeg >= positive.numberLength) { in andDiffSigns()
139 int resLength = positive.numberLength; in andDiffSigns()
148 int limit = Math.min(negative.numberLength, positive.numberLength); in andDiffSigns()
[all …]
DBitLevel.java46 int bLength = (val.numberLength << 5); in bitLength()
47 int highDigit = val.digits[val.numberLength - 1]; in bitLength()
52 if (i == val.numberLength - 1) { in bitLength()
72 for ( ; i < val.numberLength; i++) { in bitCount()
78 for (i++; i < val.numberLength; i++) { in bitCount()
82 bCount = (val.numberLength << 5) - bCount; in bitCount()
128 int srcLen = source.numberLength; in shiftLeftOneBit()
140 if (intCount >= source.numberLength) { in shiftRight()
144 int resLength = source.numberLength - intCount; in shiftRight()
218 int resLength = Math.max(intCount + 1, val.numberLength) + 1; in flipBit()
[all …]
DConversion.java56 int numberLength = val.numberLength; in bigInteger2String() local
62 if (numberLength == 1) { in bigInteger2String()
63 int highDigit = digits[numberLength - 1]; in bigInteger2String()
83 int[] temp = new int[numberLength]; in bigInteger2String()
84 System.arraycopy(digits, 0, temp, 0, numberLength); in bigInteger2String()
85 int tempLen = numberLength; in bigInteger2String()
114 for (int i = 0; i < numberLength; i++) { in bigInteger2String()
140 int numberLength = val.numberLength; in toDecimalScaledString() local
174 resLengthInChars = numberLength * 10 + 1 + 7; in toDecimalScaledString()
184 if (numberLength == 1) { in toDecimalScaledString()
[all …]
DBigInteger.java62 transient int numberLength; field in BigInteger
117 BigInteger(int sign, int numberLength, int[] digits) { in BigInteger() argument
118 setJavaRepresentation(sign, numberLength, digits); in BigInteger()
137 int numberLength = (numBits + 31) >> 5; in BigInteger() local
138 int[] digits = new int[numberLength]; in BigInteger()
139 for (int i = 0; i < numberLength; i++) { in BigInteger()
143 digits[numberLength - 1] >>>= (-numBits) & 31; in BigInteger()
144 setJavaRepresentation(sign, numberLength, digits); in BigInteger()
335 private void setJavaRepresentation(int sign, int numberLength, int[] digits) { in setJavaRepresentation() argument
337 while (numberLength > 0 && digits[--numberLength] == 0) { in setJavaRepresentation()
[all …]