/prebuilts/go/darwin-x86/test/fixedbugs/ |
bug020.go | 9 var digits string; var 11 func putint(buf []byte, i, base, val int, digits string) { 12 buf[i] = digits[val];
|
bug022.go | 9 func putint(digits *string) { 11 i = (*digits)[7]; // compiles 12 i = digits[7]; // ERROR "illegal|is not|invalid"
|
/prebuilts/go/linux-x86/test/fixedbugs/ |
bug020.go | 9 var digits string; var 11 func putint(buf []byte, i, base, val int, digits string) { 12 buf[i] = digits[val];
|
bug022.go | 9 func putint(digits *string) { 11 i = (*digits)[7]; // compiles 12 i = digits[7]; // ERROR "illegal|is not|invalid"
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_fpformat.py | 17 # digits instead of 2. 23 def checkFix(self, n, digits): 24 result = fix(n, digits) 27 expected = "%.*f" % (digits, float(n)) 31 def checkSci(self, n, digits): 32 result = sci(n, digits) 35 expected = "%.*e" % (digits, float(n))
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_fpformat.py | 17 # digits instead of 2. 23 def checkFix(self, n, digits): 24 result = fix(n, digits) 27 expected = "%.*f" % (digits, float(n)) 31 def checkSci(self, n, digits): 32 result = sci(n, digits) 35 expected = "%.*e" % (digits, float(n))
|
/external/desugar/test/java/com/google/devtools/build/android/desugar/testdata/java8/ |
DefaultInterfaceWithLambda.java | 31 return digits(); 34 public List<String> digits(); method in interface:DefaultInterfaceWithLambda
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
DateNumberFormat.java | 38 private char[] digits; field in class:DateNumberFormat 43 private static final int DECIMAL_BUF_SIZE = 20; // 20 digits is good enough to store Long.MAX_VALUE 53 throw new UnsupportedOperationException("DateNumberFormat does not support digits out of BMP."); 93 digits = new char[10]; 94 System.arraycopy(elems, 0, digits, 0, 10); 95 zeroDigit = digits[0]; 131 if (digits == null) { 132 digits = new char[10]; 134 digits[0] = zero; 136 digits[i] = (char)(zero+i) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
DateNumberFormat.java | 34 private char[] digits; field in class:DateNumberFormat 39 private static final int DECIMAL_BUF_SIZE = 20; // 20 digits is good enough to store Long.MAX_VALUE 49 throw new UnsupportedOperationException("DateNumberFormat does not support digits out of BMP."); 89 digits = new char[10]; 90 System.arraycopy(elems, 0, digits, 0, 10); 91 zeroDigit = digits[0]; 127 if (digits == null) { 128 digits = new char[10]; 130 digits[0] = zero; 132 digits[i] = (char)(zero+i) [all...] |
/external/python/cpython2/Lib/test/ |
test_strtod.py | 108 # exact halfway cases with a small number of significant digits 119 # with small number of significant digits. 128 # until n * 2**p2 has more than 20 significant digits. 129 digits, exponent = n, e 130 while digits < 10**20: 131 s = '{}e{}'.format(digits, exponent) 134 s = '{}e{}'.format(digits * 10**40, exponent - 40) 136 digits *= 2 140 digits, exponent = n, e 141 while digits < 10**20 [all...] |
/external/python/cpython3/Lib/test/ |
test_strtod.py | 107 # exact halfway cases with a small number of significant digits 118 # with small number of significant digits. 127 # until n * 2**p2 has more than 20 significant digits. 128 digits, exponent = n, e 129 while digits < 10**20: 130 s = '{}e{}'.format(digits, exponent) 133 s = '{}e{}'.format(digits * 10**40, exponent - 40) 135 digits *= 2 139 digits, exponent = n, e 140 while digits < 10**20 [all...] |
/external/guava/guava-tests/test/com/google/common/math/ |
MathBenchmarking.java | 67 int digits = RANDOM_SOURCE.nextInt(numBits); local 68 if (digits == 0) { 71 return new BigInteger(digits, RANDOM_SOURCE) 72 .setBit(digits);
|
/external/icu/icu4c/source/i18n/ |
digitformatter.cpp | 99 // We always emit '0' in lieu of no digits. 112 const VisibleDigits &digits, 115 if (digits.isNaN()) { 118 if (digits.isInfinite()) { 123 digits.getInterval(), 129 const VisibleDigitsWithExponent &digits, 131 if (digits.isNaN()) { 134 if (digits.isInfinite()) { 137 const VisibleDigits *exponent = digits.getExponent(); 142 digits.getMantissa().getInterval() 370 uint8_t digits[10]; local [all...] |
digitlst.cpp | 79 * This is the zero digit. The base for the digits returned by getDigit() 100 fContext.digits = fStorage.getCapacity(); 137 // Always reset the fContext.digits, even if fDecNumber was not reallocated, 139 fContext.digits = fStorage.getCapacity(); 169 c.digits = 1; 185 int32_t savedDigits = fContext.digits; 186 fContext.digits = 1; 188 fContext.digits = savedDigits; 202 // Reduce - remove trailing zero digits. 210 // trim - remove trailing fraction zero digits [all...] |
decNumber.cpp | 62 /* precision (up to 999,999,999 digits) and arbitrary exponent */ 66 /* tightly: digits, emax, and -emin in the context must be <= */ 71 /* be finite, positive, have an exponent of zero, and all digits */ 72 /* must be either 0 or 1. The result will only contain digits */ 152 /* 6. The digits count is allowed to rise to a multiple of DECDPUN */ 154 /* accounting of digits is not needed. The correct digits value */ 156 /* This must be called before any rounding if the number of digits */ 160 /* numbers up to four digits, using appropriate constants. This */ 218 /* round-for-reround digits */ 7814 Int digits=(len-1)*DECDPUN+1; \/* possible digits excluding msu *\/ local 8004 Int ae, d, digits; \/* .. *\/ local [all...] |
valueformatter.cpp | 34 VisibleDigitsWithExponent &digits, 39 value, digits, status); 43 value, digits, status); 49 return digits; 55 VisibleDigitsWithExponent &digits, 60 value, digits, status); 64 value, digits, status); 70 return digits;
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
FixASCIIControlsReader.java | 40 /** count the digits of the sequence */ 41 private int digits = 0; field in class:FixASCIIControlsReader 138 digits = 0; 144 digits = 1; 157 digits++; 158 if (digits <= 5) 184 digits++; 185 if (digits <= 4)
|
/libcore/luni/src/main/java/java/math/ |
BigInteger.java | 54 transient int[] digits; field in class:BigInteger 58 * digits.length(). 113 * @param digits a reference of some array created before. 115 BigInteger(int sign, int numberLength, int[] digits) { 116 setJavaRepresentation(sign, numberLength, digits); 136 int[] digits = new int[numberLength]; local 138 digits[i] = random.nextInt(); 141 digits[numberLength - 1] >>>= (-numBits) & 31; 142 setJavaRepresentation(sign, numberLength, digits); 207 * non-empty sequence of decimal digits. Digits are interpreted as if b 358 int[] digits = (sign != 0) ? bigInt.littleEndianIntsMagnitude() : new int[] { 0 }; local 1188 int[] digits = new int[bigRadixDigitsLength]; local [all...] |
BitLevel.java | 47 int highDigit = val.digits[val.numberLength - 1]; 73 bCount += Integer.bitCount(val.digits[i]); 77 bCount += Integer.bitCount(-val.digits[i]); 79 bCount += Integer.bitCount(~val.digits[i]); 94 return ((val.digits[n >> 5] & (1 << (n & 31))) != 0); 103 static boolean nonZeroDroppedBits(int numberOfBits, int[] digits) { 108 for (i = 0; (i < intCount) && (digits[i] == 0); i++) { 111 return ((i != intCount) || (digits[i] << (32 - bitCount) != 0)); 131 shiftLeftOneBit(resDigits, source.digits, srcLen); 147 shiftRight(resDigits, resLength, source.digits, intCount, count) [all...] |
/bionic/libc/dns/nameser/ |
ns_ttl.c | 99 int ch, digits, dirty; local 103 digits = 0; 111 digits++; 114 if (digits == 0) 128 digits = 0; 131 if (digits > 0) {
|
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/ |
ns_ttl.c | 127 int ch, digits, dirty;
local 131 digits = 0;
139 digits++;
142 if (digits == 0)
156 digits = 0;
159 if (digits > 0) {
|
/external/curl/docs/cmdline-opts/ |
hostpubmd5.d | 7 Pass a string containing 32 hexadecimal digits. The string should
|
/external/fonttools/Lib/fontTools/misc/ |
fixedTools.py | 31 digits = (precisionBits + 2) // 3 32 fmt = "%%.%df" % digits
|
/libcore/ojluni/src/main/java/java/util/ |
UUID.java | 376 return (digits(mostSigBits >> 32, 8) + "-" + 377 digits(mostSigBits >> 16, 4) + "-" + 378 digits(mostSigBits, 4) + "-" + 379 digits(leastSigBits >> 48, 4) + "-" + 380 digits(leastSigBits, 12)); 383 /** Returns val represented by the specified number of hex digits. */ 384 private static String digits(long val, int digits) { method in class:UUID 385 long hi = 1L << (digits * 4);
|
/external/libcxx/test/std/utilities/time/ |
hours.pass.cpp | 25 static_assert(std::numeric_limits<Rep>::digits >= 22, "");
|