Home
last modified time | relevance | path

Searched refs:resDigits (Results 1 – 2 of 2) sorted by relevance

/libcore/luni/src/main/java/java/math/
DLogical.java46 int[] resDigits = new int[val.numberLength + 1]; in not() local
60 resDigits[i] = 1; in not()
61 return new BigInteger(-val.sign, i + 1, resDigits); in not()
68 resDigits[i] = -1; in not()
73 resDigits[i] = val.digits[i] + val.sign; in not()
76 resDigits[i] = val.digits[i]; in not()
78 return new BigInteger(-val.sign, i, resDigits); in not()
120 int[] resDigits = new int[resLength]; in andPositive() local
122 resDigits[i] = val.digits[i] & that.digits[i]; in andPositive()
125 return new BigInteger(1, resLength, resDigits); in andPositive()
[all …]
DBitLevel.java130 int[] resDigits = new int[resLen]; in shiftLeftOneBit() local
131 shiftLeftOneBit(resDigits, source.digits, srcLen); in shiftLeftOneBit()
132 return new BigInteger(source.sign, resLen, resDigits); in shiftLeftOneBit()
145 int[] resDigits = new int[resLength + 1]; in shiftRight() local
147 shiftRight(resDigits, resLength, source.digits, intCount, count); in shiftRight()
157 for (i = 0; (i < resLength) && (resDigits[i] == -1); i++) { in shiftRight()
158 resDigits[i] = 0; in shiftRight()
163 resDigits[i]++; in shiftRight()
166 return new BigInteger(source.sign, resLength, resDigits); in shiftRight()
219 int[] resDigits = new int[resLength]; in flipBit() local
[all …]