Home
last modified time | relevance | path

Searched refs:digit (Results 1 – 25 of 752) sorted by relevance

12345678910>>...31

/external/smali/smali/src/main/java/org/jf/smali/
DLiteralTools.java67 } else if (Character.digit(byteChars[position], 8) >= 0) { in parseByte()
74 int digit; in parseByte() local
78 digit = Character.digit(byteChars[position], radix); in parseByte()
79 if (digit < 0) { in parseByte()
86 if (shiftedResult < 0 && shiftedResult >= -digit) { in parseByte()
89 result = (byte)(shiftedResult + digit); in parseByte()
137 } else if (Character.digit(shortChars[position], 8) >= 0) { in parseShort()
144 int digit; in parseShort() local
148 digit = Character.digit(shortChars[position], radix); in parseShort()
149 if (digit < 0) { in parseShort()
[all …]
/external/openscreen/util/
Dstringprintf.h45 char digit = (c >> 4) & 0xf; in PrettyPrintAsciiHex() local
46 if (digit >= 0 && digit <= 9) { in PrettyPrintAsciiHex()
47 os.put(digit + '0'); in PrettyPrintAsciiHex()
49 os.put(digit - 10 + 'a'); in PrettyPrintAsciiHex()
51 digit = c & 0xf; in PrettyPrintAsciiHex()
52 if (digit >= 0 && digit <= 9) { in PrettyPrintAsciiHex()
53 os.put(digit + '0'); in PrettyPrintAsciiHex()
55 os.put(digit - 10 + 'a'); in PrettyPrintAsciiHex()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/ec/
Dwnaf.c100 int digit = 0; in ec_compute_wNAF() local
104 digit = window_val - next_bit; in ec_compute_wNAF()
114 digit = window_val & (mask >> 1); in ec_compute_wNAF()
118 digit = window_val; in ec_compute_wNAF()
122 window_val -= digit; in ec_compute_wNAF()
129 assert(-bit < digit && digit < bit); in ec_compute_wNAF()
132 assert(digit & 1); in ec_compute_wNAF()
135 out[j] = digit; in ec_compute_wNAF()
162 const EC_RAW_POINT *precomp, int digit) { in lookup_precomp() argument
163 if (digit < 0) { in lookup_precomp()
[all …]
/external/boringssl/src/crypto/fipsmodule/ec/
Dwnaf.c100 int digit = 0; in ec_compute_wNAF() local
104 digit = window_val - next_bit; in ec_compute_wNAF()
114 digit = window_val & (mask >> 1); in ec_compute_wNAF()
118 digit = window_val; in ec_compute_wNAF()
122 window_val -= digit; in ec_compute_wNAF()
129 assert(-bit < digit && digit < bit); in ec_compute_wNAF()
132 assert(digit & 1); in ec_compute_wNAF()
135 out[j] = digit; in ec_compute_wNAF()
162 const EC_RAW_POINT *precomp, int digit) { in lookup_precomp() argument
163 if (digit < 0) { in lookup_precomp()
[all …]
/external/python/cpython3/Include/
Dlongintrepr.h45 typedef uint32_t digit; typedef
51 #define _PyLong_DECIMAL_BASE ((digit)1000000000) /* 10 ** DECIMAL_SHIFT */
53 typedef unsigned short digit;
59 #define _PyLong_DECIMAL_BASE ((digit)10000) /* 10 ** DECIMAL_SHIFT */
63 #define PyLong_BASE ((digit)1 << PyLong_SHIFT)
64 #define PyLong_MASK ((digit)(PyLong_BASE - 1))
87 digit ob_digit[1];
/external/libcxx/test/std/re/re.traits/
Dlookup_classname.pass.cpp67 LIBCPP_ASSERT((std::ctype_base::digit & std::regex_traits<char>::__regex_word) == 0); in main()
72 test("d", std::ctype_base::digit); in main()
73 test("D", std::ctype_base::digit); in main()
74 test("d", std::ctype_base::digit, true); in main()
75 test("D", std::ctype_base::digit, true); in main()
111 test("digit", std::ctype_base::digit); in main()
112 test("Digit", std::ctype_base::digit); in main()
113 test("digit", std::ctype_base::digit, true); in main()
114 test("Digit", std::ctype_base::digit, true); in main()
116 test("digit", std::ctype_base::digit); in main()
[all …]
/external/llvm-project/libcxx/test/std/re/re.traits/
Dlookup_classname.pass.cpp66 LIBCPP_ASSERT((std::ctype_base::digit & std::regex_traits<char>::__regex_word) == 0); in main()
71 test("d", std::ctype_base::digit); in main()
72 test("D", std::ctype_base::digit); in main()
73 test("d", std::ctype_base::digit, true); in main()
74 test("D", std::ctype_base::digit, true); in main()
110 test("digit", std::ctype_base::digit); in main()
111 test("Digit", std::ctype_base::digit); in main()
112 test("digit", std::ctype_base::digit, true); in main()
113 test("Digit", std::ctype_base::digit, true); in main()
115 test("digit", std::ctype_base::digit); in main()
[all …]
/external/python/cpython2/Include/
Dlongintrepr.h45 typedef PY_UINT32_T digit; typedef
51 #define _PyLong_DECIMAL_BASE ((digit)1000000000) /* 10 ** DECIMAL_SHIFT */
53 typedef unsigned short digit;
59 #define _PyLong_DECIMAL_BASE ((digit)10000) /* 10 ** DECIMAL_SHIFT */
63 #define PyLong_BASE ((digit)1 << PyLong_SHIFT)
64 #define PyLong_MASK ((digit)(PyLong_BASE - 1))
92 digit ob_digit[1];
/external/stressapptest/src/
Dsattypes.h136 int digit = 0, last_non_zero_size = 1; in cpuset_format() local
139 digit |= 1 << (i & 3); in cpuset_format()
142 format += char(digit <= 9 ? '0' + digit: 'A' + digit - 10); in cpuset_format()
143 if (digit) { in cpuset_format()
145 digit = 0; in cpuset_format()
149 if (digit) { in cpuset_format()
150 format += char(digit <= 9 ? '0' + digit: 'A' + digit - 10); in cpuset_format()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DDateNumberFormat.java228 int digit = ch - digits[0]; in parse() local
229 if (digit < 0 || 9 < digit) { in parse()
230 digit = UCharacter.digit(ch); in parse()
232 if (digit < 0 || 9 < digit) { in parse()
233 for ( digit = 0 ; digit < 10 ; digit++ ) { in parse()
234 if ( ch == digits[digit]) { in parse()
239 if (0 <= digit && digit <= 9 && num < PARSE_THRESHOLD) { in parse()
241 num = num * 10 + digit; in parse()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DDateNumberFormat.java224 int digit = ch - digits[0]; in parse() local
225 if (digit < 0 || 9 < digit) { in parse()
226 digit = UCharacter.digit(ch); in parse()
228 if (digit < 0 || 9 < digit) { in parse()
229 for ( digit = 0 ; digit < 10 ; digit++ ) { in parse()
230 if ( ch == digits[digit]) { in parse()
235 if (0 <= digit && digit <= 9 && num < PARSE_THRESHOLD) { in parse()
237 num = num * 10 + digit; in parse()
/external/rust/crates/syn/src/
Dbigint.rs17 for digit in self.digits.iter().rev() { in to_string()
18 has_nonzero |= *digit != 0; in to_string()
20 repr.push((*digit + b'0') as char); in to_string()
60 for digit in &mut self.digits { in mul_assign()
61 let prod = *digit * base + carry; in mul_assign()
62 *digit = prod % 10; in mul_assign()
/external/python/cpython2/Objects/
Dlongobject.c63 ((PY_SSIZE_T_MAX - offsetof(PyLongObject, ob_digit))/sizeof(digit))
131 digit *p = v->ob_digit; in PyLong_FromLong()
135 *p++ = (digit)(t & PyLong_MASK); in PyLong_FromLong()
159 digit *p = v->ob_digit; in PyLong_FromUnsignedLong()
162 *p++ = (digit)(ival & PyLong_MASK); in PyLong_FromUnsignedLong()
201 digit bits = (digit)frac; in PyLong_FromDouble()
503 digit msd = v->ob_digit[ndigits - 1]; in _PyLong_NumBits()
615 v->ob_digit[idigit] = (digit)(accum & PyLong_MASK); in _PyLong_FromByteArray()
625 v->ob_digit[idigit] = (digit)accum; in _PyLong_FromByteArray()
644 digit carry; /* for computing 2's-comp */ in _PyLong_AsByteArray()
[all …]
/external/flatbuffers/docs/source/
DGrammar.md56 `[:digit:]` = `[0-9]`
60 dec\_integer\_constant = `[-+]?[:digit:]+`
66 dec\_float\_constant = `[-+]?(([.][:digit:]+)|([:digit:]+[.][:digit:]*)|([:digit:]+))([eE][-+]?[:di…
68 …ant = `[-+]?0[xX](([.][:xdigit:]+)|([:xdigit:]+[.][:xdigit:]*)|([:xdigit:]+))([pP][-+]?[:digit:]+)`
/external/cpuinfo/src/arm/linux/
Dcpuinfo.c32 const uint32_t digit = (uint32_t) (*digit_ptr - '0'); in parse_processor_number() local
33 if (digit > 10) { in parse_processor_number()
39 processor_number = processor_number * 10 + digit; in parse_processor_number()
331 const uint32_t digit = (*cpu_architecture_ptr) - '0'; in parse_cpu_architecture() local
334 if (digit >= 10) { in parse_cpu_architecture()
338 architecture = architecture * 10 + digit; in parse_cpu_architecture()
430 uint32_t digit; in parse_cpu_part() local
432 digit = digit_char - '0'; in parse_cpu_part()
434 digit = 10 + (digit_char - 'A'); in parse_cpu_part()
436 digit = 10 + (digit_char - 'a'); in parse_cpu_part()
[all …]
/external/icu/icu4c/source/common/
Dustrfmt.cpp34 int digit; in uprv_itou() local
39 digit = (int)(i % radix); in uprv_itou()
40 buffer[length++]=(UChar)(digit<=9?(0x0030+digit):(0x0030+digit+7)); in uprv_itou()
/external/libpcap/
Dscanner.l502 unsigned int digit; variable
518 while ((digit = *s++) != '\0') {
519 if (digit >= '0' && digit <= '9')
520 digit = digit - '0';
521 else if (digit >= 'a' && digit <= 'f')
522 digit = digit - 'a' + 10;
524 digit = digit - 'A' + 10;
541 n = (n << 4) + digit;
551 while ((digit = *s++) != '\0') {
552 if (digit >= '0' && digit <= '7')
[all …]
/external/rust/crates/uuid/src/parser/
Dmod.rs77 let mut digit = 0; in parse_str() localVariable
83 if digit as usize >= adapter::Simple::LENGTH && group != 4 { in parse_str()
100 if digit % 2 == 0 { in parse_str()
112 if ACC_GROUP_LENS[group] as u8 != digit { in parse_str()
119 digit - ACC_GROUP_LENS[group - 1] as u8 in parse_str()
121 digit in parse_str()
135 digit -= 1; in parse_str()
159 digit - ACC_GROUP_LENS[group - 1] as u8 in parse_str()
161 digit in parse_str()
181 buffer[(digit / 2) as usize] = acc; in parse_str()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DWNafL2RMultiplier.java42 int digit = wi >> 16, zeroes = wi & 0xFFFF; in multiplyPositive() local
44 int n = Math.abs(digit); in multiplyPositive()
45 ECPoint[] table = digit < 0 ? preCompNeg : preComp; in multiplyPositive()
75 int digit = wi >> 16, zeroes = wi & 0xFFFF; in multiplyPositive()
77 int n = Math.abs(digit); in multiplyPositive()
78 ECPoint[] table = digit < 0 ? preCompNeg : preComp; in multiplyPositive()
/external/python/cpython3/Objects/
Dlongobject.c243 ((PY_SSIZE_T_MAX - offsetof(PyLongObject, ob_digit))/sizeof(digit))
260 size*sizeof(digit)); in _PyLong_New()
326 abs_ival, unsigned long, digit); in PyLong_FromLong()
338 abs_ival & PyLong_MASK, unsigned long, digit); in PyLong_FromLong()
340 abs_ival >> PyLong_SHIFT, unsigned long, digit); in PyLong_FromLong()
354 digit *p = v->ob_digit; in PyLong_FromLong()
359 t & PyLong_MASK, unsigned long, digit); in PyLong_FromLong()
382 digit *p = v->ob_digit; \
384 *p++ = (digit)((ival) & PyLong_MASK); \
460 digit bits = (digit)frac; in PyLong_FromDouble()
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/math/ec/
DWNafL2RMultiplier.java44 int digit = wi >> 16, zeroes = wi & 0xFFFF; in multiplyPositive() local
46 int n = Math.abs(digit); in multiplyPositive()
47 ECPoint[] table = digit < 0 ? preCompNeg : preComp; in multiplyPositive()
77 int digit = wi >> 16, zeroes = wi & 0xFFFF; in multiplyPositive()
79 int n = Math.abs(digit); in multiplyPositive()
80 ECPoint[] table = digit < 0 ? preCompNeg : preComp; in multiplyPositive()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/
DWNafL2RMultiplier.java44 int digit = wi >> 16, zeroes = wi & 0xFFFF; in multiplyPositive() local
46 int n = Math.abs(digit); in multiplyPositive()
47 ECPoint[] table = digit < 0 ? preCompNeg : preComp; in multiplyPositive()
77 int digit = wi >> 16, zeroes = wi & 0xFFFF; in multiplyPositive()
79 int n = Math.abs(digit); in multiplyPositive()
80 ECPoint[] table = digit < 0 ? preCompNeg : preComp; in multiplyPositive()
/external/rust/crates/nom/tests/
Dfloat.rs4 use nom::character::streaming::digit1 as digit;
14 delimited!(digit, tag!("."), opt!(digit)) | delimited!(opt!(digit), tag!("."), digit)
/external/smali/dexlib2/src/main/java/org/jf/util/
DIndentingWriter.java180 int digit = (int)(value & 15); in printUnsignedLongAsHex() local
181 if (digit < 10) { in printUnsignedLongAsHex()
182 buffer[bufferIndex--] = (char)(digit + '0'); in printUnsignedLongAsHex()
184 buffer[bufferIndex--] = (char)((digit - 10) + 'a'); in printUnsignedLongAsHex()
204 long digit = value % 10; in printSignedLongAsDec() local
205 buffer[bufferIndex--] = (char)(digit + '0'); in printSignedLongAsDec()
224 int digit = value % 10; in printSignedIntAsDec() local
225 buffer[bufferIndex--] = (char)(digit + '0'); in printSignedIntAsDec()
/external/icu/icu4c/source/i18n/
Ddouble-conversion-bignum-dtoa.cpp210 uint16_t digit; in GenerateShortestDigits() local
211 digit = numerator->DivideModuloIntBignum(*denominator); in GenerateShortestDigits()
212 DOUBLE_CONVERSION_ASSERT(digit <= 9); // digit is a uint16_t and therefore always positive. in GenerateShortestDigits()
215 buffer[(*length)++] = static_cast<char>(digit + '0'); in GenerateShortestDigits()
302 uint16_t digit; in GenerateCountedDigits() local
303 digit = numerator->DivideModuloIntBignum(*denominator); in GenerateCountedDigits()
304 DOUBLE_CONVERSION_ASSERT(digit <= 9); // digit is a uint16_t and therefore always positive. in GenerateCountedDigits()
307 buffer[i] = static_cast<char>(digit + '0'); in GenerateCountedDigits()
312 uint16_t digit; in GenerateCountedDigits() local
313 digit = numerator->DivideModuloIntBignum(*denominator); in GenerateCountedDigits()
[all …]

12345678910>>...31