Home
last modified time | relevance | path

Searched full:digits (Results 1 – 25 of 912) sorted by relevance

12345678910>>...37

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DScaledNumber.h10 // numbers -- in particular, pairs of integers where one represents digits and
46 /// Given \c Digits and \c Scale, round up iff \c ShouldRound is \c true.
52 inline std::pair<DigitsT, int16_t> getRounded(DigitsT Digits, int16_t Scale, in getRounded() argument
57 if (!++Digits) in getRounded()
60 return std::make_pair(Digits, Scale); in getRounded()
64 inline std::pair<uint32_t, int16_t> getRounded32(uint32_t Digits, int16_t Scale, in getRounded32() argument
66 return getRounded(Digits, Scale, ShouldRound); in getRounded32()
70 inline std::pair<uint64_t, int16_t> getRounded64(uint64_t Digits, int16_t Scale, in getRounded64() argument
72 return getRounded(Digits, Scale, ShouldRound); in getRounded64()
79 inline std::pair<DigitsT, int16_t> getAdjusted(uint64_t Digits,
[all …]
H A DFormatProviders.h109 /// integer_options :: [style][digits]
111 /// digits :: <non-negative integer> 0-99
114 /// | style | Meaning | Example | Digits Meaning |
118 /// | x- | Hex no prefix, lower | 42 | 2a | Minimum # digits |
119 /// | X- | Hex no prefix, upper | 42 | 2A | Minimum # digits |
120 /// | x+ / x | Hex + prefix, lower | 42 | 0x2a | Minimum # digits |
121 /// | X+ / X | Hex + prefix, upper | 42 | 0x2A | Minimum # digits |
135 size_t Digits = 0;
137 Digits = consumeNumHexDigits(Style, *HS, 0);
138 write_hex(Stream, V, *HS, Digits);
[all …]
/freebsd/contrib/tzcode/
H A Ddate.172 %d 08 Day of month (always two digits)
76 %H 14 24-hour-clock hour (two digits)
77 %I 02 12-hour-clock hour (two digits)
78 %j 067 Julian day number (three digits)
81 %m 03 Month number (two digits)
82 %M 54 Minute (two digits)
87 %S 40 Second (two digits)
90 %U 10 Sunday-based week number (two digits)
92 %W 10 Monday-based week number (two digits)
95 %y 89 Last two digits of year
[all …]
/freebsd/contrib/ntp/libntp/
H A Dhextolfp.c23 static const char *digits = "0123456789abcdefABCDEF"; in hextolfp() local
38 (ind = strchr(digits, *cp)) != NULL) { in hextolfp()
40 dec_i += ((ind - digits) > 15) in hextolfp()
41 ? (u_long)(ind - digits - 6) in hextolfp()
42 : (u_long)(ind - digits); in hextolfp()
53 (ind = strchr(digits, *cp)) != NULL) { in hextolfp()
55 dec_f += ((ind - digits) > 15) in hextolfp()
56 ? (u_long)(ind - digits - 6) in hextolfp()
57 : (u_long)(ind - digits); in hextolfp()
H A Datolfp.c41 static const char *digits = "0123456789"; in atolfp() local
53 * [spaces][-|+][digits][.][digits][spaces|\n|\0] in atolfp()
69 while (*cp != '\0' && (ind = strchr(digits, *cp)) != NULL) { in atolfp()
71 dec_i += (u_long)(ind - digits); in atolfp()
80 && (ind = strchr(digits, *cp)) != NULL) { in atolfp()
83 dec_f += (u_long)(ind - digits); in atolfp()
/freebsd/share/doc/usd/05.dc/
H A Ddc62 can be handled varies from several hundred digits on the smallest
82 digits to be maintained.
117 A number is an unbroken string of the digits 0-9
118 and the capital letters A\-F which are treated as digits
140 An exponent must not have any digits after the decimal point.
297 of digits to the base 100 stored one digit per byte
298 (centennial digits).
304 that all digits are in the range 0\-99 and that
312 and all other digits are in the range 0\-99.
328 assumed decimal digits after the decimal point. The representation
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__bit/
H A Dcountl.h66 return __builtin_clzg(__t, numeric_limits<_Tp>::digits); in __countl_zero()
69 return numeric_limits<_Tp>::digits; in __countl_zero()
73 (numeric_limits<unsigned int>::digits - numeric_limits<_Tp>::digits); in __countl_zero()
76 (numeric_limits<unsigned long>::digits - numeric_limits<_Tp>::digits); in __countl_zero()
79 (numeric_limits<unsigned long long>::digits - numeric_limits<_Tp>::digits); in __countl_zero()
83 const unsigned int __ulldigits = numeric_limits<unsigned long long>::digits; in __countl_zero()
104 …umeric_limits<_Tp>::max() ? std::countl_zero(static_cast<_Tp>(~__t)) : numeric_limits<_Tp>::digits; in countl_one()
H A Dbit_ceil.h30 const unsigned __n = numeric_limits<_Tp>::digits - std::__countl_zero((_Tp)(__t - 1u)); in __bit_ceil()
31 …_LIBCPP_ASSERT_ARGUMENT_WITHIN_DOMAIN(__n != numeric_limits<_Tp>::digits, "Bad input to bit_ceil"); in __bit_ceil()
36 const unsigned __extra = numeric_limits<unsigned>::digits - numeric_limits<_Tp>::digits; in __bit_ceil()
/freebsd/lib/libc/inet/
H A Dinet_net_pton.c62 static const char digits[] = "0123456789"; in inet_net_pton_ipv4() local
101 n = strchr(digits, ch) - digits; in inet_net_pton_ipv4()
130 n = strchr(digits, ch) - digits; in inet_net_pton_ipv4()
189 static const char digits[] = "0123456789"; in getbits() local
199 pch = strchr(digits, ch); in getbits()
204 val += (pch - digits); in getbits()
219 static const char digits[] = "0123456789"; in getv4() local
230 pch = strchr(digits, c in getv4()
268 int digits; inet_net_pton_ipv6() local
[all...]
/freebsd/lib/libc/stdio/
H A Dwprintf.3162 digits follow it (normally, a decimal point appears in the results of
231 This gives the minimum number of digits to appear for
235 conversions, the number of digits to appear after the decimal-point for
239 conversions, the maximum number of significant digits for
317 or an asterisk followed by one or more decimal digits and a
358 The precision, if any, gives the minimum number of digits that must
359 appear; if the converted value requires fewer digits, it is padded on
380 and the number of digits after it is equal to the precision;
391 The exponent always contains at least two digits; if the value is zero,
419 where the number of digits after the decimal-point character
[all …]
H A Dprintf.3243 digits follow it (normally, a decimal point appears in the results of
312 This gives the minimum number of digits to appear for
316 conversions, the number of digits to appear after the decimal-point for
320 conversions, the maximum number of significant digits for
402 or an asterisk followed by one or more decimal digits and a
448 The precision, if any, gives the minimum number of digits that must
449 appear; if the converted value requires fewer digits, it is padded on
470 and the number of digits after it is equal to the precision;
481 The exponent always contains at least two digits; if the value is zero,
509 where the number of digits after the decimal-point character
[all …]
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlcompat.c27 int digits; in lcompat_strtoll() local
53 digits = *cp - '0'; in lcompat_strtoll()
55 digits = *cp - 'a' + 10; in lcompat_strtoll()
57 digits = *cp - 'A' + 10; in lcompat_strtoll()
61 if (digits >= base) { in lcompat_strtoll()
64 value = (value * base) + digits; in lcompat_strtoll()
/freebsd/usr.bin/hexdump/
H A Dodsyntax.c307 int digits; in odformatfp() local
335 digits = FLT_DIG; in odformatfp()
338 digits = DBL_DIG; in odformatfp()
342 digits = LDBL_DIG; in odformatfp()
349 16UL / (u_long)isize, (u_long)isize, digits + 8, digits); in odformatfp()
363 int digits; in odformatint() local
399 * Calculate the maximum number of digits we need to in odformatint()
405 digits = 0; in odformatint()
407 digits++; in odformatint()
411 digits++; in odformatint()
[all …]
/freebsd/contrib/pam_modules/pam_passwdqc/
H A Dpasswdqc_check.c66 int digits, lowers, uppers, others, unknowns; in is_simple() local
70 digits = lowers = uppers = others = unknowns = 0; in is_simple()
76 if (isdigit(c)) digits++; else in is_simple()
91 /* Upper case characters and digits used in common ways don't increase the in is_simple()
96 if (digits && isascii(c) && isdigit(c)) digits--; in is_simple()
99 * that there're no non-ASCII characters for digits. */ in is_simple()
101 if (digits) classes++; in is_simple()
105 if (unknowns && (!classes || (digits && classes == 1))) classes++; in is_simple()
247 * passed the other checks due to uncommon capitalization, digits, and
/freebsd/contrib/llvm-project/libcxx/include/__charconv/
H A Dto_chars_base_10.h118 // digits and are outputted after this if statement. in __base_10_u64()
147 // digits separately. in __base_10_u128()
150 // 64 bit 18'446'744'073'709'551'615 (20 digits) in __base_10_u128()
151 // 128 bit 340'282'366'920'938'463'463'374'607'431'768'211'455 (39 digits) in __base_10_u128()
152 // step 1 ^ ([0-1] digits) in __base_10_u128()
153 // step 2 ^^^^^^^^^^^^^^^^^^^^^^^^^ ([0-19] digits) in __base_10_u128()
154 // step 3 ^^^^^^^^^^^^^^^^^^^^^^^^^ (19 digits) in __base_10_u128()
160 // step 2 always 19 digits. in __base_10_u128()
/freebsd/share/i18n/csmapper/APPLE/
H A DFARSI%UCS.src36 # loose mapping of digits, and changes to
94 # character set. The main difference is in the right-to-left digits
96 # versions of the Unicode ARABIC-INDIC DIGITs 0660-0669; for
98 # Unicode EXTENDED ARABIC-INDIC DIGITs 06F0-06F9. The other
136 # The digits at 0x30-0x39 may be displayed using either European
139 # side of a sequence consisting of digits 0x30-0x39 and possibly comma
142 # between the digits and the strong European character). Otherwise, the
143 # digits will be displayed using Persian forms, the comma will be
148 # The digits at 0xB0-0xB9 are always displayed using Persian digit
149 # shapes, and moreover, these digits always have strong right-left
[all …]
H A DUCS%FARSI.src36 # loose mapping of digits, and changes to
94 # character set. The main difference is in the right-to-left digits
96 # versions of the Unicode ARABIC-INDIC DIGITs 0660-0669; for
98 # Unicode EXTENDED ARABIC-INDIC DIGITs 06F0-06F9. The other
136 # The digits at 0x30-0x39 may be displayed using either European
139 # side of a sequence consisting of digits 0x30-0x39 and possibly comma
142 # between the digits and the strong European character). Otherwise, the
143 # digits will be displayed using Persian forms, the comma will be
148 # The digits at 0xB0-0xB9 are always displayed using Persian digit
149 # shapes, and moreover, these digits always have strong right-left
[all …]
H A DUCS%ARABIC.src36 # loose mapping of digits.
119 # and duplicates of some of the punctuation, symbols, and digits in
156 # The digits at 0x30-0x39 may be displayed using either European
159 # side of a sequence consisting of digits 0x30-0x39 and possibly comma
162 # between the digits and the strong European character). Otherwise, the
163 # digits will be displayed using Arabic forms, the comma will be
168 # The digits at 0xB0-0xB9 are always displayed using Arabic digit
169 # shapes, and moreover, these digits always have strong right-left
254 # always needed to map the right-left digits at 0xB0-0xB9.
282 # 2. Mapping the Mac OS Arabic digits
[all …]
/freebsd/lib/libc/nameser/
H A Dns_ttl.c97 int ch, digits, dirty; in ns_parse_ttl() local
101 digits = 0; in ns_parse_ttl()
109 digits++; in ns_parse_ttl()
112 if (digits == 0) in ns_parse_ttl()
126 digits = 0; in ns_parse_ttl()
129 if (digits > 0) { in ns_parse_ttl()
/freebsd/contrib/llvm-project/libcxx/include/
H A Dlimits28 static constexpr int digits = 0;
144 static _LIBCPP_CONSTEXPR const int digits = 0;
196 …static _LIBCPP_CONSTEXPR const int digits = static_cast<int>(sizeof(type) * __CHAR_BIT__ - i…
197 static _LIBCPP_CONSTEXPR const int digits10 = digits * 3 / 10;
199 …static _LIBCPP_CONSTEXPR const type __min = __libcpp_compute_min<type, digits, is_signed>::v…
247 static _LIBCPP_CONSTEXPR const int digits = 1;
294 static _LIBCPP_CONSTEXPR const int digits = __FLT_MANT_DIG__;
296 static _LIBCPP_CONSTEXPR const int max_digits10 = 2 + (digits * 30103l) / 100000l;
351 static _LIBCPP_CONSTEXPR const int digits = __DBL_MANT_DIG__;
353 static _LIBCPP_CONSTEXPR const int max_digits10 = 2 + (digits * 30103l) / 100000l;
[all …]
/freebsd/contrib/wpa/src/tls/
H A Dlibtommath.c108 #define MP_PREC 32 /* default digits of precision */
110 #define MP_PREC 8 /* default digits of precision */
218 * them. "x" will point to the input with the most digits in s_mp_add()
270 * if A or B has more digits add those in in s_mp_add()
288 /* clear digits above oldused */ in s_mp_add()
343 /* now copy higher words if any, e.g. if A has more digits than B */ in s_mp_sub()
355 /* clear digits above used (since we may not have grown result above) */ in s_mp_sub()
377 /* set the digits to zero */ in mp_init()
382 /* set the used to zero, allocated digits to the default precision in mp_init()
399 /* first zero the digits */ in mp_clear()
[all …]
/freebsd/usr.bin/touch/
H A Dtouch.1121 At least four decimal digits representing the year.
132 more digits.
133 The number of significant digits depends on the kernel configuration and the
170 The first two digits of the year (the century).
172 The second two digits of the year.
218 argument is a string of digits either eight or ten characters in length,
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A Dbit.h154 return std::numeric_limits<T>::digits;
160 T Shift = std::numeric_limits<T>::digits >> 1;
214 /// Returns std::numeric_limits<T>::digits on an input of 0.
225 return std::numeric_limits<T>::digits;
229 for (T Shift = std::numeric_limits<T>::digits >> 1; Shift; Shift >>= 1) {
280 /// Returns std::numeric_limits<T>::digits on an input of 0.
293 /// Returns std::numeric_limits<T>::digits on an input of all ones.
306 /// Returns std::numeric_limits<T>::digits on an input of all ones.
320 return std::numeric_limits<T>::digits - llvm::countl_zero(Value);
395 unsigned N = std::numeric_limits<T>::digits;
[all...]
/freebsd/share/doc/usd/06.bc/
H A Dbc104 The actual limit on the number of digits that can
106 Manipulation of numbers with many hundreds of digits
236 interpreted as digits having values 10\-15 respectively.
266 For example, large numbers can be output in groups of five digits
274 of very large numbers (i.e., more than 100 digits) with other bases
291 up to a specific number of decimal digits after the decimal point.
293 We refer to the number of digits after the decimal point of
322 of integers, with digits being discarded when necessary.
323 In every case where digits are discarded, truncation and
347 number of decimal digits to be retained in internal
[all …]
/freebsd/lib/libc/locale/
H A Dlocaleconv.388 The separator between groups of digits
91 The sizes of the groups of digits, except for currency values.
99 the last group size before the 0 is repeated to account for all the digits.
122 The number of digits after the decimal point
125 The number of digits after the decimal point

12345678910>>...37