/external/ppp/pppd/plugins/pppoatm/ |
ans.c | 179 int digit; local 183 digit = addr[i] & 0x0F; 184 *(buf++) = digit + (digit >= 10 ? '7' : '0'); 186 digit = ((unsigned char) (addr[i])) >> 4; 187 *(buf++) = digit + (digit >= 10 ? '7' : '0');
|
/libcore/luni/src/main/java/java/math/ |
Logical.java | 74 // Copying the remaining unchanged digit 178 int digit; local 180 digit = -shorter.digits[i] & ~longer.digits[i]; 182 digit = ~shorter.digits[i] & -longer.digits[i]; 184 digit = -shorter.digits[i] & -longer.digits[i]; 186 if (digit == 0) { 187 for (i++; i < shorter.numberLength && (digit = ~(longer.digits[i] | shorter.digits[i])) == 0; i++) 188 ; // digit = ~longer.digits[i] & ~shorter.digits[i] 189 if (digit == 0) { 191 for ( ; i < longer.numberLength && (digit = ~longer.digits[i]) == 0; i++ 303 int digit; local 733 int digit = positive.digits[i] ^ -negative.digits[i]; local [all...] |
BigInteger.java | 174 * {@code Character.digit(char,10)}. 191 * are interpreted as if by {@code Character.digit(char, radix)}. 521 int digit = digits[intCount]; local 528 digit = -digit; 530 digit = ~digit; 533 return ((digit & n) != 0); 609 // (sign != 0) implies that exists some non zero digit [all...] |
/external/openssl/crypto/ec/ |
ec_mult.c | 190 * with the exception that the most significant digit may be only 191 * w-1 zeros away from that next non-zero digit. 236 r = OPENSSL_malloc(len + 1); /* modified wNAF may be one digit longer than binary representation 248 int digit = 0; local 258 digit = window_val - next_bit; /* -2^w < digit < 0 */ 265 * so using a positive digit here will decrease 268 digit = window_val & (mask >> 1); /* 0 < digit < 2^w */ 274 digit = window_val; /* 0 < digit < 2^w * 666 int digit = wNAF[i][k]; local [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
Fingerprint.java | 177 int digit = Character.digit(streamId.charAt(index), 16); local 178 if (digit < 0) { 179 throw new IllegalArgumentException("illegal hex digit in " + streamId); 181 return digit;
|
/libcore/luni/src/main/java/java/text/ |
DecimalFormatSymbols.java | 46 private char digit; field in class:DecimalFormatSymbols 86 this.digit = '#'; 177 digit == obj.digit && 197 ",digit=" + digit + 258 * Returns the character which represents a single digit in a format 261 * @return the digit pattern character. 264 return digit; 362 result = 31*result + digit; [all...] |
/external/icu4c/common/ |
cstring.c | 148 uint8_t digit; local 163 digit = (uint8_t)(uval % radix); 164 tbuf[--tbx] = (char)(T_CString_itosOffset(digit)); 186 uint8_t digit; local 201 digit = (uint8_t)(uval % radix); 202 tbuf[--tbx] = (char)(T_CString_itosOffset(digit));
|
/external/icu4c/test/intltest/ |
punyref.c | 73 /* is undefined if flag is nonzero and digit d has no uppercase form. */ 223 b, j, in, oldi, w, k, digit, t; local 260 digit = decode_digit(input[in++]); 261 if (digit >= base) return punycode_bad_input; 262 if (digit > (maxint - i) / w) return punycode_overflow; 263 i += digit * w; 266 if (digit < t) break;
|
/external/protobuf/src/google/protobuf/io/ |
tokenizer.cc | 124 CHARACTER_CLASS(Digit, '0' <= c && c <= '9'); 145 // Given a char, interpret it as a numeric digit and return its value. 147 inline int DigitValue(char digit) { 148 if ('0' <= digit && digit <= '9') return digit - '0'; 149 if ('a' <= digit && digit <= 'z') return digit - 'a' + 10; 150 if ('A' <= digit && digit <= 'Z') return digit - 'A' + 10 586 int digit = DigitValue(*ptr); local [all...] |
/external/v8/src/ |
fixed-dtoa.cc | 137 int digit = number % 10; local 139 buffer[(*length) + number_length] = '0' + digit; 200 // Round the last digit until we either have a digit that was not '9' or until 201 // we reached the first digit. 210 // If the first digit is now '0' + 10, we would need to set it to '0' and add 211 // a '1' in front. However we reach the first digit only if all following 213 // we simply switch the first digit to '1' and update the decimal-point 214 // (indicating that the point is now one digit to the right). 258 int digit = static_cast<int>(fractionals >> point) local 279 int digit = fractionals128.DivModPowerOf2(point); local [all...] |
fast-dtoa.cc | 43 // A different range might be chosen on a different platform, to optimize digit 49 // Adjusts the last digit of the generated number, and screens out generated 208 // Increment the last digit recursively until we find a non '9' digit. 215 // If the first digit is now '0'+ 10 we had a buffer with all '9's. With the 216 // exception of the first digit all digits are now '0'. Simply switch the 217 // first digit to '1' and adjust the kappa. Example: "99" becomes "10" and 358 // * buffer contains the shortest possible decimal digit-sequence 376 // get each digit. Example the first digit after the point would be computed b 432 int digit = integrals \/ divisor; local 467 int digit = static_cast<int>(fractionals >> -one.e()); local 541 int digit = integrals \/ divisor; local 574 int digit = static_cast<int>(fractionals >> -one.e()); local [all...] |
/external/webkit/Source/JavaScriptCore/runtime/ |
JSGlobalObjectFunctions.cpp | 162 int digit = -1; local 165 digit = c - '0'; 167 digit = c - 'A' + 10; 169 digit = c - 'a' + 10; 171 if (digit >= radix) 173 return digit; 188 int digit = parseDigit(*p, radix); local 189 number += digit * radixMultiplier; 210 int digit = parseDigit(*p, radix); local 211 number += digit * radixMultiplier 256 int digit = parseDigit(data[p], radix); local [all...] |
/libcore/luni/src/main/java/java/util/ |
TimeZone.java | 338 if (Character.digit(name.charAt(index), 10) != -1) { 381 int index = offset, length = string.length(), digit, result = 0; local 383 && (digit = Character.digit(string.charAt(index), 10)) != -1) { 385 result = result * 10 + digit;
|
Scanner.java | 435 * <code>findWithinHorizon(Pattern.compile("\\p{Digit}{3}"), 2)</code> 437 * <code>findWithinHorizon(Pattern.compile("\\p{Digit}{3}"), 3)</code> [all...] |
/external/chromium/base/ |
string_number_conversions.cc | 99 // Utility to convert a character to a digit in a given base 106 static bool Convert(CHAR c, uint8* digit) { 108 *digit = c - '0'; 118 static bool Convert(CHAR c, uint8* digit) { 120 *digit = c - '0'; 122 *digit = c - 'a' + 10; 124 *digit = c - 'A' + 10; 132 template<int BASE, typename CHAR> bool CharToDigit(CHAR c, uint8* digit) { 133 return BaseCharToDigit<CHAR, BASE, BASE <= 10>::Convert(c, digit); 204 // - a static function, CheckBounds, that determines whether the next digit [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_Configuration.java | 228 int digit = Character.digit((char) nextChar, 16); local 229 if (digit >= 0) { 230 unicode = (unicode << 4) + digit;
|
/external/icu4c/io/ |
ufmt_cmn.c | 71 uint32_t digit; local 75 digit = (uint32_t)(value % radix); 77 buffer[length++] = (UChar)(uselower ? TO_LC_DIGIT(digit) 78 : TO_UC_DIGIT(digit)); 149 /* read the next digit */
|
/libcore/luni/src/main/java/java/lang/ |
Integer.java | 373 int digit = Character.digit(string.charAt(offset++), radix); local 374 if (digit == -1) { 380 int next = result * radix - digit;
|
/external/stlport/test/unit/ |
ctype_facets_test.cpp | 33 CPPUNIT_ASSERT( ct.is(ctype_base::digit, '0') ); 50 CPPUNIT_ASSERT( (res[0] & ctype_base::digit) != 0 ); 66 CPPUNIT_ASSERT( (res[3] & ctype_base::digit) == 0 ); 70 CPPUNIT_ASSERT( (res[4] & ctype_base::digit) == 0 ); 177 CPPUNIT_CHECK( wct.is(ctype_base::digit, L'0') ); 194 CPPUNIT_CHECK( (res[0] & ctype_base::digit) != 0 ); 210 CPPUNIT_CHECK( (res[3] & ctype_base::digit) == 0 ); 214 CPPUNIT_CHECK( (res[4] & ctype_base::digit) == 0 ); 454 CPPUNIT_CHECK(cfacet_byname.is(ctype_base::digit, c) == cfacet.is(ctype_base::digit, c)) [all...] |
/ndk/tests/device/test-gnustl-full/unit/ |
ctype_facets_test.cpp | 33 CPPUNIT_ASSERT( ct.is(ctype_base::digit, '0') ); 50 CPPUNIT_ASSERT( (res[0] & ctype_base::digit) != 0 ); 66 CPPUNIT_ASSERT( (res[3] & ctype_base::digit) == 0 ); 70 CPPUNIT_ASSERT( (res[4] & ctype_base::digit) == 0 ); 177 CPPUNIT_CHECK( wct.is(ctype_base::digit, L'0') ); 194 CPPUNIT_CHECK( (res[0] & ctype_base::digit) != 0 ); 210 CPPUNIT_CHECK( (res[3] & ctype_base::digit) == 0 ); 214 CPPUNIT_CHECK( (res[4] & ctype_base::digit) == 0 ); 454 CPPUNIT_CHECK(cfacet_byname.is(ctype_base::digit, c) == cfacet.is(ctype_base::digit, c)) [all...] |
/ndk/tests/device/test-stlport/unit/ |
ctype_facets_test.cpp | 33 CPPUNIT_ASSERT( ct.is(ctype_base::digit, '0') ); 50 CPPUNIT_ASSERT( (res[0] & ctype_base::digit) != 0 ); 66 CPPUNIT_ASSERT( (res[3] & ctype_base::digit) == 0 ); 70 CPPUNIT_ASSERT( (res[4] & ctype_base::digit) == 0 ); 177 CPPUNIT_CHECK( wct.is(ctype_base::digit, L'0') ); 194 CPPUNIT_CHECK( (res[0] & ctype_base::digit) != 0 ); 210 CPPUNIT_CHECK( (res[3] & ctype_base::digit) == 0 ); 214 CPPUNIT_CHECK( (res[4] & ctype_base::digit) == 0 ); 454 CPPUNIT_CHECK(cfacet_byname.is(ctype_base::digit, c) == cfacet.is(ctype_base::digit, c)) [all...] |
/cts/tests/tests/telephony/src/android/telephony/cts/ |
TelephonyManagerTest.java | 309 // IMEI may include the check digit 314 // if the ID is 15 digits, the 15th must be a check digit. 321 int actualCheckDigit = Character.digit(deviceId.charAt(14), 10); 322 assertEquals("Incorrect check digit for " + deviceId, expectedCheckDigit, actualCheckDigit); 334 * Calculate the check digit by starting from the right, doubling every 335 * each digit, summing all the digits including the doubled ones, and 338 * @param deviceId not including the check digit 339 * @return the check digit 345 int digit = Character.digit(deviceId.charAt(i), 10) local [all...] |
/external/chromium/chrome/browser/autofill/ |
credit_card.cc | 415 int digit = *iter - '0'; local 417 digit *= 2; 418 sum += digit / 10 + digit % 10; 420 sum += digit;
|
/libcore/luni/src/main/native/ |
cbigint.cpp | 314 simpleAppendDecimalDigitHighPrecision (uint64_t * arg1, int32_t length, uint64_t digit) 316 /* assumes digit is less than 32 bits */ 320 digit <<= 32; 324 digit = HIGH_IN_U64 (digit) + TIMES_TEN (arg); 325 LOW_U32_FROM_PTR (arg1 + index) = LOW_U32_FROM_VAR (digit); 328 digit = HIGH_IN_U64 (digit) + TIMES_TEN (arg); 329 HIGH_U32_FROM_PTR (arg1 + index) = LOW_U32_FROM_VAR (digit); 333 return HIGH_U32_FROM_VAR (digit); [all...] |
/external/webkit/Tools/android/flex-2.5.4a/ |
scan.l | 133 ^"%"{LEXOPT}{OPTWS}[[:digit:]]*{OPTWS}{NL} ++linenum; /* ignore */ 159 [[:digit:]]+ linenum = myctoi( yytext ); 336 "{"/[[:digit:]] BEGIN(NUM); return '{'; 523 "[:digit:]" BEGIN(CCL); return CCE_DIGIT; 540 [[:digit:]]+ {
|