Home
last modified time | relevance | path

Searched refs:num_digits (Results 1 – 10 of 10) sorted by relevance

/external/libtextclassifier/utils/
Dchecksum.cc24 int num_digits = 0; in VerifyLuhnChecksum() local
38 ++num_digits; in VerifyLuhnChecksum()
47 return (num_digits > 1 && sum % 10 == 0); in VerifyLuhnChecksum()
/external/libunwind/src/
Dos-linux.h114 unsigned long num_digits = 0, digit, val = 0; in scan_hex() local
132 ++num_digits; in scan_hex()
135 if (!num_digits) in scan_hex()
144 unsigned long num_digits = 0, digit, val = 0; in scan_dec() local
160 ++num_digits; in scan_dec()
162 if (!num_digits) in scan_dec()
/external/u-boot/lib/libavb/
Davb_cmdline.c142 size_t n, num_digits; in uint64_to_base10() local
144 for (num_digits = 0; num_digits < AVB_MAX_DIGITS_UINT64 - 1;) { in uint64_to_base10()
145 rev_digits[num_digits++] = avb_div_by_10(&value) + '0'; in uint64_to_base10()
151 for (n = 0; n < num_digits; n++) { in uint64_to_base10()
152 digits[n] = rev_digits[num_digits - 1 - n]; in uint64_to_base10()
/external/avb/libavb/
Davb_cmdline.c169 size_t n, num_digits; in uint64_to_base10() local
171 for (num_digits = 0; num_digits < AVB_MAX_DIGITS_UINT64 - 1;) { in uint64_to_base10()
172 rev_digits[num_digits++] = avb_div_by_10(&value) + '0'; in uint64_to_base10()
178 for (n = 0; n < num_digits; n++) { in uint64_to_base10()
179 digits[n] = rev_digits[num_digits - 1 - n]; in uint64_to_base10()
/external/grpc-grpc/src/core/ext/filters/client_channel/
Dmethod_params.cc69 int num_digits = static_cast<int>(strlen(decimal_point + 1)); in ParseDuration() local
70 if (num_digits > 9) { // We don't accept greater precision than nanos. in ParseDuration()
73 for (int i = 0; i < (9 - num_digits); ++i) { in ParseDuration()
/external/perfetto/include/perfetto/base/
Dstring_writer.h91 size_t num_digits = kSizeNeeded - 1 - idx; in AppendPaddedInt() local
92 for (size_t i = num_digits; i < padding; i++) { in AppendPaddedInt()
/external/webrtc/webrtc/base/
Dfilerotatingstream.cc333 size_t num_digits = (index / 10) + 1; in GetFilePath() local
334 RTC_DCHECK_LE(num_digits, max_digits); in GetFilePath()
335 size_t padding = max_digits - num_digits; in GetFilePath()
/external/cldr/tools/java/org/unicode/cldr/posix/
DPOSIXUtilities.java317 Integer num_digits = new Integer(i - j - 1); in POSIXGrouping() local
318 result = result.concat(num_digits.toString()); in POSIXGrouping()
/external/selinux/libsepol/src/
Dmodule_to_cil.c719 static int num_digits(int n) in num_digits() function
760 len = strlen(pdb->name) + strlen(infix) + num_digits(num_attrs) + 1; in get_new_attr_name()
/external/python/cpython3/Modules/
D_datetimemodule.c671 parse_digits(const char *ptr, int *var, size_t num_digits) in parse_digits() argument
673 for (size_t i = 0; i < num_digits; ++i) { in parse_digits()