Home
last modified time | relevance | path

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

12

/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/
Dnumbers_benchmark.cc46 int64_t RepeatedSevens(int num_digits, int base) { in RepeatedSevens() argument
49 while (--num_digits) num = base * num + 7; in RepeatedSevens()
166 std::vector<std::string> MakeFloatStrings(int num_strings, int num_digits) { in MakeFloatStrings() argument
174 s.reserve(2 * num_digits + 1); in MakeFloatStrings()
175 for (int i = 0; i < num_digits; ++i) { in MakeFloatStrings()
179 for (int i = 0; i < num_digits; ++i) { in MakeFloatStrings()
208 const int num_digits = state.range(1); in BM_SimpleAtof() local
210 MakeFloatStrings(num_strings, num_digits); in BM_SimpleAtof()
238 const int num_digits = state.range(1); in BM_SimpleAtod() local
240 MakeFloatStrings(num_strings, num_digits); in BM_SimpleAtod()
/external/libtextclassifier/abseil-cpp/absl/strings/
Dnumbers_benchmark.cc46 int64_t RepeatedSevens(int num_digits, int base) { in RepeatedSevens() argument
49 while (--num_digits) num = base * num + 7; in RepeatedSevens()
166 std::vector<std::string> MakeFloatStrings(int num_strings, int num_digits) { in MakeFloatStrings() argument
174 s.reserve(2 * num_digits + 1); in MakeFloatStrings()
175 for (int i = 0; i < num_digits; ++i) { in MakeFloatStrings()
179 for (int i = 0; i < num_digits; ++i) { in MakeFloatStrings()
208 const int num_digits = state.range(1); in BM_SimpleAtof() local
210 MakeFloatStrings(num_strings, num_digits); in BM_SimpleAtof()
238 const int num_digits = state.range(1); in BM_SimpleAtod() local
240 MakeFloatStrings(num_strings, num_digits); in BM_SimpleAtod()
/external/openscreen/third_party/abseil/src/absl/strings/
Dnumbers_benchmark.cc46 int64_t RepeatedSevens(int num_digits, int base) { in RepeatedSevens() argument
49 while (--num_digits) num = base * num + 7; in RepeatedSevens()
166 std::vector<std::string> MakeFloatStrings(int num_strings, int num_digits) { in MakeFloatStrings() argument
174 s.reserve(2 * num_digits + 1); in MakeFloatStrings()
175 for (int i = 0; i < num_digits; ++i) { in MakeFloatStrings()
179 for (int i = 0; i < num_digits; ++i) { in MakeFloatStrings()
208 const int num_digits = state.range(1); in BM_SimpleAtof() local
210 MakeFloatStrings(num_strings, num_digits); in BM_SimpleAtof()
238 const int num_digits = state.range(1); in BM_SimpleAtod() local
240 MakeFloatStrings(num_strings, num_digits); in BM_SimpleAtod()
/external/abseil-cpp/absl/strings/
Dnumbers_benchmark.cc46 int64_t RepeatedSevens(int num_digits, int base) { in RepeatedSevens() argument
49 while (--num_digits) num = base * num + 7; in RepeatedSevens()
166 std::vector<std::string> MakeFloatStrings(int num_strings, int num_digits) { in MakeFloatStrings() argument
174 s.reserve(2 * num_digits + 1); in MakeFloatStrings()
175 for (int i = 0; i < num_digits; ++i) { in MakeFloatStrings()
179 for (int i = 0; i < num_digits; ++i) { in MakeFloatStrings()
208 const int num_digits = state.range(1); in BM_SimpleAtof() local
210 MakeFloatStrings(num_strings, num_digits); in BM_SimpleAtof()
238 const int num_digits = state.range(1); in BM_SimpleAtod() local
240 MakeFloatStrings(num_strings, num_digits); in BM_SimpleAtod()
/external/webrtc/third_party/abseil-cpp/absl/strings/
Dnumbers_benchmark.cc46 int64_t RepeatedSevens(int num_digits, int base) { in RepeatedSevens() argument
49 while (--num_digits) num = base * num + 7; in RepeatedSevens()
166 std::vector<std::string> MakeFloatStrings(int num_strings, int num_digits) { in MakeFloatStrings() argument
174 s.reserve(2 * num_digits + 1); in MakeFloatStrings()
175 for (int i = 0; i < num_digits; ++i) { in MakeFloatStrings()
179 for (int i = 0; i < num_digits; ++i) { in MakeFloatStrings()
208 const int num_digits = state.range(1); in BM_SimpleAtof() local
210 MakeFloatStrings(num_strings, num_digits); in BM_SimpleAtof()
238 const int num_digits = state.range(1); in BM_SimpleAtod() local
240 MakeFloatStrings(num_strings, num_digits); in BM_SimpleAtod()
/external/angle/third_party/abseil-cpp/absl/strings/
Dnumbers_benchmark.cc46 int64_t RepeatedSevens(int num_digits, int base) { in RepeatedSevens() argument
49 while (--num_digits) num = base * num + 7; in RepeatedSevens()
166 std::vector<std::string> MakeFloatStrings(int num_strings, int num_digits) { in MakeFloatStrings() argument
174 s.reserve(2 * num_digits + 1); in MakeFloatStrings()
175 for (int i = 0; i < num_digits; ++i) { in MakeFloatStrings()
179 for (int i = 0; i < num_digits; ++i) { in MakeFloatStrings()
208 const int num_digits = state.range(1); in BM_SimpleAtof() local
210 MakeFloatStrings(num_strings, num_digits); in BM_SimpleAtof()
238 const int num_digits = state.range(1); in BM_SimpleAtod() local
240 MakeFloatStrings(num_strings, num_digits); in BM_SimpleAtod()
/external/tensorflow/tensorflow/core/kernels/
Dsobol_op.cc70 int num_digits = NumBinaryDigits(i); in GetFirstPoint() local
72 for (int k = 0; k < num_digits; ++k) { in GetFirstPoint()
90 const int num_digits = in CalculateSobolSample() local
92 Eigen::MatrixXi direction_numbers(dim, num_digits); in CalculateSobolSample()
96 const T normalizing_constant = 1./(1 << num_digits); in CalculateSobolSample()
98 for (int k = 0; k < num_digits; ++k) { in CalculateSobolSample()
100 << (num_digits - k - 1); in CalculateSobolSample()
/external/libtextclassifier/native/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/rust/crates/grpcio-sys/grpc/src/core/lib/json/
Djson_util.cc43 int num_digits = static_cast<int>(strlen(decimal_point + 1)); in ParseDurationFromJson() local
44 if (num_digits > 9) { // We don't accept greater precision than nanos. in ParseDurationFromJson()
47 for (int i = 0; i < (9 - num_digits); ++i) { in ParseDurationFromJson()
/external/avb/libavb/
Davb_util.c460 size_t n, num_digits; in avb_uint64_to_base10() local
462 for (num_digits = 0; num_digits < AVB_MAX_DIGITS_UINT64 - 1;) { in avb_uint64_to_base10()
463 rev_digits[num_digits++] = avb_div_by_10(&value) + '0'; in avb_uint64_to_base10()
469 for (n = 0; n < num_digits; n++) { in avb_uint64_to_base10()
470 digits[n] = rev_digits[num_digits - 1 - n]; in avb_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/fmtlib/include/fmt/
Dformat.h963 int num_digits = 0;
965 ++num_digits;
967 return num_digits;
1082 inline Char* format_uint(Char* buffer, UInt value, int num_digits,
1084 buffer += num_digits;
1096 Char* format_uint(Char* buffer, detail::fallback_uintptr n, int num_digits,
1099 int start = (num_digits + char_digits - 1) / char_digits - 1;
1100 if (int start_digits = num_digits % char_digits) {
1118 inline It format_uint(It out, UInt value, int num_digits, bool upper = false) {
1119 if (auto ptr = to_pointer<Char>(out, to_unsigned(num_digits))) {
[all …]
Dformat-inl.h2313 void fallback_format(Double d, int num_digits, bool binary32, buffer<char>& buf,
2363 if (num_digits < 0) {
2367 num_digits = 0;
2374 data[num_digits++] = static_cast<char>('0' + digit);
2377 ++data[num_digits - 1];
2382 ++data[num_digits - 1];
2384 buf.try_resize(to_unsigned(num_digits));
2385 exp10 -= num_digits - 1;
2394 exp10 -= num_digits - 1;
2395 if (num_digits == 0) {
[all …]
Dchrono.h878 int num_digits = detail::count_digits(n);
879 if (width > num_digits) out = std::fill_n(out, width - num_digits, '0');
880 out = format_decimal<char_type>(out, n, num_digits).end;
/external/libtextclassifier/native/utils/grammar/parsing/
Dparser.cc213 const int num_digits = in EmitSymbol() local
215 if (num_digits <= nonterminals_->n_digits_nt()->size()) { in EmitSymbol()
217 nonterminals_->n_digits_nt()->Get(num_digits - 1); in EmitSymbol()
220 nonterminals_->n_digits_nt()->Get(num_digits - 1), in EmitSymbol()
/external/libtextclassifier/abseil-cpp/absl/strings/internal/str_format/
Dparser.cc97 int num_digits = std::numeric_limits<int>::digits10; in ConsumeConversion() local
102 --num_digits; in ConsumeConversion()
103 if (ABSL_PREDICT_FALSE(!num_digits)) break; in ConsumeConversion()
/external/openscreen/third_party/abseil/src/absl/strings/internal/str_format/
Dparser.cc111 int num_digits = std::numeric_limits<int>::digits10; in ConsumeConversion() local
116 --num_digits; in ConsumeConversion()
117 if (ABSL_PREDICT_FALSE(!num_digits)) break; in ConsumeConversion()
/external/webrtc/third_party/abseil-cpp/absl/strings/internal/str_format/
Dparser.cc97 int num_digits = std::numeric_limits<int>::digits10; in ConsumeConversion() local
102 --num_digits; in ConsumeConversion()
103 if (ABSL_PREDICT_FALSE(!num_digits)) break; in ConsumeConversion()
/external/abseil-cpp/absl/strings/internal/str_format/
Dparser.cc97 int num_digits = std::numeric_limits<int>::digits10; in ConsumeConversion() local
102 --num_digits; in ConsumeConversion()
103 if (ABSL_PREDICT_FALSE(!num_digits)) break; in ConsumeConversion()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/
Dparser.cc97 int num_digits = std::numeric_limits<int>::digits10; in ConsumeConversion() local
102 --num_digits; in ConsumeConversion()
103 if (ABSL_PREDICT_FALSE(!num_digits)) break; in ConsumeConversion()
/external/perfetto/include/perfetto/ext/base/
Dstring_writer.h162 size_t num_digits = kSizeNeeded - 1 - idx; in AppendPaddedInt() local
165 for (size_t i = num_digits; i < std::max(uint64_t{1u}, padding); i++) { in AppendPaddedInt()
/external/angle/third_party/abseil-cpp/absl/strings/internal/str_format/
Dparser.cc118 int num_digits = std::numeric_limits<int>::digits10; in ConsumeConversion() local
123 --num_digits; in ConsumeConversion()
124 if (ABSL_PREDICT_FALSE(!num_digits)) break; in ConsumeConversion()
/external/llvm-project/polly/lib/External/isl/imath/
Dgmp_compat.c769 size_t num_digits; in GMPZAPI() local
790 num_digits = (total_size + sizeof(mp_digit) - 1) / sizeof(mp_digit); in GMPZAPI()
793 mp_int_init_size(tmp, num_digits); in GMPZAPI()
794 for (i = 0; i < num_digits; i++) in GMPZAPI()
817 MP_USED(tmp) = num_digits; in GMPZAPI()
/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.c720 static int num_digits(int n) in num_digits() function
758 len = strlen(pdb->name) + strlen(infix) + num_digits(num_attrs) + 1; in get_new_attr_name()

12