Home
last modified time | relevance | path

Searched refs:digits (Results 1 – 19 of 19) sorted by relevance

/libcore/luni/src/main/java/java/math/
DLogical.java51 if (val.digits[val.numberLength - 1] != -1) { in not()
52 for (i = 0; val.digits[i] == -1; i++) { in not()
56 for (i = 0; (i < val.numberLength) && (val.digits[i] == -1); i++) { in not()
67 for (i = 0; val.digits[i] == 0; i++) { in not()
73 resDigits[i] = val.digits[i] + val.sign; in not()
76 resDigits[i] = val.digits[i]; in not()
122 resDigits[i] = val.digits[i] & that.digits[i]; in andPositive()
145 resDigits[i] = -negative.digits[i] & positive.digits[i]; in andDiffSigns()
150 resDigits[i] = ~negative.digits[i] & positive.digits[i]; in andDiffSigns()
156 resDigits[i] = positive.digits[i]; in andDiffSigns()
[all …]
DBigInteger.java56 transient int[] digits; field in BigInteger
117 BigInteger(int sign, int numberLength, int[] digits) { in BigInteger() argument
118 setJavaRepresentation(sign, numberLength, digits); in BigInteger()
138 int[] digits = new int[numberLength]; in BigInteger() local
140 digits[i] = random.nextInt(); in BigInteger()
143 digits[numberLength - 1] >>>= (-numBits) & 31; in BigInteger()
144 setJavaRepresentation(sign, numberLength, digits); in BigInteger()
324 bigInt.putLittleEndianInts(digits, (sign < 0)); in getBigInt()
335 private void setJavaRepresentation(int sign, int numberLength, int[] digits) { in setJavaRepresentation() argument
337 while (numberLength > 0 && digits[--numberLength] == 0) { in setJavaRepresentation()
[all …]
DBitLevel.java47 int highDigit = val.digits[val.numberLength - 1]; in bitLength()
73 bCount += Integer.bitCount(val.digits[i]); in bitCount()
77 bCount += Integer.bitCount(-val.digits[i]); in bitCount()
79 bCount += Integer.bitCount(~val.digits[i]); in bitCount()
94 return ((val.digits[n >> 5] & (1 << (n & 31))) != 0); in testBit()
103 static boolean nonZeroDroppedBits(int numberOfBits, int[] digits) { in nonZeroDroppedBits() argument
108 for (i = 0; (i < intCount) && (digits[i] == 0); i++) { in nonZeroDroppedBits()
111 return ((i != intCount) || (digits[i] << (32 - bitCount) != 0)); in nonZeroDroppedBits()
131 shiftLeftOneBit(resDigits, source.digits, srcLen); in shiftLeftOneBit()
147 shiftRight(resDigits, resLength, source.digits, intCount, count); in shiftRight()
[all …]
DConversion.java57 int[] digits = val.digits; in bigInteger2String() local
63 int highDigit = digits[numberLength - 1]; in bigInteger2String()
84 System.arraycopy(digits, 0, temp, 0, numberLength); in bigInteger2String()
116 resDigit = digits[i] >> (j << 2) & 0xf; in bigInteger2String()
141 int[] digits = val.digits; in toDecimalScaledString() local
185 int highDigit = digits[0]; in toDecimalScaledString()
204 System.arraycopy(digits, 0, temp, 0, tempLen); in toDecimalScaledString()
422 || ((val.numberLength == 2) && (val.digits[1] > 0))) { in bigInteger2Double()
452 val.digits))) { in bigInteger2Double()
/libcore/ojluni/src/main/java/sun/misc/
DFormattedFloatingDecimal.java63 char[] digits = getBuffer(); in FormattedFloatingDecimal() local
64 int nDigits = fdConverter.getDigits(digits); in FormattedFloatingDecimal()
72 fillCompatible(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal()
75 exp = applyPrecision(decExp, digits, nDigits, decExp + precision); in FormattedFloatingDecimal()
76 fillDecimal(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal()
80 exp = applyPrecision(decExp, digits, nDigits, precision + 1); in FormattedFloatingDecimal()
81 fillScientific(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal()
85 exp = applyPrecision(decExp, digits, nDigits, precision); in FormattedFloatingDecimal()
91 fillScientific(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal()
95 fillDecimal(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal()
[all …]
DFloatingDecimal.java153 public int getDigits(char[] digits); in getDigits() argument
220 public int getDigits(char[] digits) { in getDigits() argument
264 private final char[] digits; field in FloatingDecimal.BinaryToASCIIBuffer
285 this.digits = new char[20]; in BinaryToASCIIBuffer()
291 BinaryToASCIIBuffer(boolean isNegative, char[] digits){ in BinaryToASCIIBuffer() argument
294 this.digits = digits; in BinaryToASCIIBuffer()
296 this.nDigits = digits.length; in BinaryToASCIIBuffer()
323 public int getDigits(char[] digits) { in getDigits() argument
324 System.arraycopy(this.digits,firstDigitIndex,digits,0,this.nDigits); in getDigits()
380 int digitno = digits.length -1; in developLongDigits()
[all …]
DFDBigInteger.java207 public FDBigInteger(long lValue, char[] digits, int kDigits, int nDigits) { in FDBigInteger() argument
219 v = (int) digits[i++] - (int) '0'; in FDBigInteger()
221 v = 10 * v + (int) digits[i++] - (int) '0'; in FDBigInteger()
228 v = 10 * v + (int) digits[i++] - (int) '0'; in FDBigInteger()
/libcore/ojluni/src/main/java/java/util/
DUUID.java376 return (digits(mostSigBits >> 32, 8) + "-" + in toString()
377 digits(mostSigBits >> 16, 4) + "-" + in toString()
378 digits(mostSigBits, 4) + "-" + in toString()
379 digits(leastSigBits >> 48, 4) + "-" + in toString()
380 digits(leastSigBits, 12)); in toString()
384 private static String digits(long val, int digits) { in digits() argument
385 long hi = 1L << (digits * 4); in digits()
DScanner.java420 private String digits = "0123456789abcdefghijklmnopqrstuvwxyz"; field in Scanner
424 String radixDigits = digits.substring(0, radix); in buildIntegerPatternString()
436 String non0RadixDigits = "((?i)[" + digits.substring(1, radix) + "]|(" + non0Digit + "))"; in buildIntegerPatternString()
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DFormattedFloatingDecimal.java59 private static int applyPrecision(int decExp, char[] digits, int nDigits, int prec) { in applyPrecision() argument
64 int precision, char[] digits, int nDigits, int exp, boolean isNegative) { in fillCompatible() argument
73 int precision, char[] digits, int nDigits, int exp, boolean isNegative) { in fillDecimal() argument
78 int precision, char[] digits, int nDigits, int exp, boolean isNegative) { in fillScientific() argument
DFloatingDecimal.java221 ASCIIToBinaryBuffer(boolean negSign, int decExponent, char[] digits, int n) { in ASCIIToBinaryBuffer() argument
271 char[] digits; field in FloatingDecimal.ASCIIToBinaryBuffer
293 BinaryToASCIIBuffer(boolean isNegative, char[] digits) { in BinaryToASCIIBuffer() argument
309 public int getDigits(char[] digits) { in getDigits() argument
378 private final char[] digits; field in FloatingDecimal.BinaryToASCIIBuffer
381 digits = new char[0];
404 public int getDigits(char[] digits); in getDigits() argument
435 public int getDigits(char[] digits) { in getDigits() argument
/libcore/ojluni/src/main/java/java/lang/
DByte.java526 char[] digits = upperCase ? UPPER_CASE_DIGITS : DIGITS; in toHexString() local
528 buf[0] = digits[(b >> 4) & 0xf]; in toHexString()
529 buf[1] = digits[b & 0xf]; in toHexString()
DInteger.java78 final static char[] digits = { field in Integer
149 buf[charPos--] = digits[-(i % radix)]; in toString()
152 buf[charPos] = digits[-i]; in toString()
337 buf[offset + --charPos] = Integer.digits[val & mask]; in formatUnsignedInt()
492 buf [--charPos] = digits [r];
DLong.java135 buf[charPos--] = Integer.digits[(int)(-(i % radix))]; in toString()
138 buf[charPos] = Integer.digits[(int)(-i)]; in toString()
379 buf[offset + --charPos] = Integer.digits[((int) val) & mask]; in formatUnsignedLong()
472 buf[--charPos] = Integer.digits[r]; in getChars()
/libcore/ojluni/annotations/hiddenapi/java/util/
DUUID.java85 private static java.lang.String digits(long val, int digits) { in digits() argument
/libcore/ojluni/src/main/java/java/text/
DDecimalFormat.java4189 int digits = currency.getDefaultFractionDigits(); in adjustForCurrencyDefaultFractionDigits() local
4190 if (digits != -1) { in adjustForCurrencyDefaultFractionDigits()
4195 setMinimumFractionDigits(digits); in adjustForCurrencyDefaultFractionDigits()
4196 setMaximumFractionDigits(digits); in adjustForCurrencyDefaultFractionDigits()
4198 setMinimumFractionDigits(Math.min(digits, oldMinDigits)); in adjustForCurrencyDefaultFractionDigits()
4199 setMaximumFractionDigits(digits); in adjustForCurrencyDefaultFractionDigits()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DInteger.java291 static final char[] digits; field in Integer
294 digits = new char[0];
/libcore/benchmarks/src/benchmarks/regression/
DR.java1530 public static final int digits = 0; field in R
/libcore/expectations/
Dknownfailures.txt68 description: "DecimalFormat is limited to 127 digits",