/libcore/luni/src/main/java/java/math/ |
D | Logical.java | 51 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 …]
|
D | BitLevel.java | 47 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 …]
|
D | BigInteger.java | 56 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 …]
|
D | Conversion.java | 57 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/ |
D | FormattedFloatingDecimal.java | 63 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 …]
|
D | FloatingDecimal.java | 153 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 …]
|
D | FDBigInteger.java | 207 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/ |
D | UUID.java | 376 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()
|
D | Scanner.java | 420 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/luni/src/main/java/libcore/util/ |
D | HexEncoding.java | 42 char[] digits = upperCase ? UPPER_CASE_DIGITS : LOWER_CASE_DIGITS; in encodeToString() local 44 buf[0] = digits[(b >> 4) & 0xf]; in encodeToString() 45 buf[1] = digits[b & 0xf]; in encodeToString() 77 char[] digits = upperCase ? UPPER_CASE_DIGITS : LOWER_CASE_DIGITS; in encode() local 82 result[resultIndex] = (digits[(b >> 4) & 0x0f]); in encode() 83 result[resultIndex + 1] = (digits[b & 0x0f]); in encode()
|
/libcore/ojluni/annotations/hiddenapi/sun/misc/ |
D | FormattedFloatingDecimal.java | 59 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
|
D | FloatingDecimal.java | 221 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/annotations/hiddenapi/java/util/ |
D | UUID.java | 85 private static java.lang.String digits(long val, int digits) { in digits() method in UUID
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Integer.java | 78 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];
|
D | Long.java | 135 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/lang/ |
D | Integer.java | 291 static final char[] digits; field in Integer 294 digits = new char[0];
|
/libcore/ojluni/src/main/java/java/text/ |
D | DecimalFormat.java | 4190 int digits = currency.getDefaultFractionDigits(); in adjustForCurrencyDefaultFractionDigits() local 4191 if (digits != -1) { in adjustForCurrencyDefaultFractionDigits() 4196 setMinimumFractionDigits(digits); in adjustForCurrencyDefaultFractionDigits() 4197 setMaximumFractionDigits(digits); in adjustForCurrencyDefaultFractionDigits() 4199 setMinimumFractionDigits(Math.min(digits, oldMinDigits)); in adjustForCurrencyDefaultFractionDigits() 4200 setMaximumFractionDigits(digits); in adjustForCurrencyDefaultFractionDigits()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | R.java | 1530 public static final int digits = 0; field in R
|
/libcore/expectations/ |
D | knownfailures.txt | 68 description: "DecimalFormat is limited to 127 digits",
|