| /freebsd-13.1/contrib/ntp/libntp/ |
| H A D | hextolfp.c | 23 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 D | atolfp.c | 41 static const char *digits = "0123456789"; in atolfp() local 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-13.1/lib/libc/inet/ |
| H A D | inet_net_pton.c | 68 static const char digits[] = "0123456789"; in inet_net_pton_ipv4() local 107 n = strchr(digits, ch) - digits; in inet_net_pton_ipv4() 136 n = strchr(digits, ch) - digits; in inet_net_pton_ipv4() 205 pch = strchr(digits, ch); in getbits() 210 val += (pch - digits); in getbits() 236 pch = strchr(digits, ch); in getv4() 241 val += (pch - digits); in getv4() 274 int digits; in inet_net_pton_ipv6() local 290 digits = 0; in inet_net_pton_ipv6() 301 if (++digits > 4) in inet_net_pton_ipv6() [all …]
|
| H A D | inet_cidr_pton.c | 85 static const char digits[] = "0123456789"; variable 97 n = strchr(digits, ch) - digits; in inet_cidr_pton_ipv4() 266 cp = strchr(digits, ch); in getbits() 270 bits += cp - digits; in getbits()
|
| H A D | inet_pton.c | 83 static const char digits[] = "0123456789"; in inet_pton4() local 93 if ((pch = strchr(digits, ch)) != NULL) { in inet_pton4() 94 u_int new = *tp * 10 + (pch - digits); in inet_pton4()
|
| /freebsd-13.1/usr.bin/hexdump/ |
| H A D | odsyntax.c | 315 int digits; in odformatfp() local 343 digits = FLT_DIG; in odformatfp() 346 digits = DBL_DIG; in odformatfp() 350 digits = LDBL_DIG; in odformatfp() 357 16UL / (u_long)isize, (u_long)isize, digits + 8, digits); in odformatfp() 371 int digits; in odformatint() local 413 digits = 0; in odformatint() 415 digits++; in odformatint() 419 digits++; in odformatint() 421 16UL / (u_long)isize, (u_long)isize, (int)(4 * isize - digits), in odformatint() [all …]
|
| /freebsd-13.1/sys/contrib/openzfs/module/lua/ |
| H A D | lcompat.c | 26 int digits; in lcompat_strtoll() local 52 digits = *cp - '0'; in lcompat_strtoll() 54 digits = *cp - 'a' + 10; in lcompat_strtoll() 56 digits = *cp - 'A' + 10; in lcompat_strtoll() 60 if (digits >= base) { in lcompat_strtoll() 63 value = (value * base) + digits; in lcompat_strtoll()
|
| /freebsd-13.1/contrib/llvm-project/libcxx/include/ |
| H A D | bit | 85 const unsigned int __dig = numeric_limits<_Tp>::digits; 96 const unsigned int __dig = numeric_limits<_Tp>::digits; 108 return numeric_limits<_Tp>::digits; 135 return numeric_limits<_Tp>::digits; 139 - (numeric_limits<unsigned int>::digits - numeric_limits<_Tp>::digits); 142 - (numeric_limits<unsigned long>::digits - numeric_limits<_Tp>::digits); 145 - (numeric_limits<unsigned long long>::digits - numeric_limits<_Tp>::digits); 168 : numeric_limits<_Tp>::digits; 178 : numeric_limits<_Tp>::digits; 198 __t >>= numeric_limits<unsigned long long>::digits; [all …]
|
| /freebsd-13.1/lib/libc/nameser/ |
| H A D | ns_ttl.c | 103 int ch, digits, dirty; in ns_parse_ttl() local 107 digits = 0; in ns_parse_ttl() 115 digits++; in ns_parse_ttl() 118 if (digits == 0) in ns_parse_ttl() 132 digits = 0; in ns_parse_ttl() 135 if (digits > 0) { in ns_parse_ttl()
|
| H A D | ns_name.c | 53 static const char digits[] = "0123456789"; variable 165 *dn++ = digits[c / 100]; in ns_name_ntop() 166 *dn++ = digits[(c % 100) / 10]; in ns_name_ntop() 167 *dn++ = digits[c % 10]; in ns_name_ntop() 255 else if ((cp = strchr(digits, c)) != NULL) { in ns_name_pton2() 256 n = (cp - digits) * 100; in ns_name_pton2() 258 (cp = strchr(digits, c)) == NULL) { in ns_name_pton2() 262 n += (cp - digits) * 10; in ns_name_pton2() 264 (cp = strchr(digits, c)) == NULL) { in ns_name_pton2() 268 n += (cp - digits); in ns_name_pton2()
|
| /freebsd-13.1/contrib/ntp/lib/isc/ |
| H A D | hex.c | 84 int digits; /*%< Number of buffered hex digits */ member 91 ctx->digits = 0; in hex_decode_init() 102 ctx->val[ctx->digits++] = s - hex; in hex_decode_char() 103 if (ctx->digits == 2) { in hex_decode_char() 114 ctx->digits = 0; in hex_decode_char() 123 if (ctx->digits != 0) in hex_decode_finish()
|
| H A D | base64.c | 105 int digits; /*%< Number of buffered base64 digits */ member 113 ctx->digits = 0; in base64_decode_init() 127 ctx->val[ctx->digits++] = s - base64; in base64_decode_char() 128 if (ctx->digits == 4) { in base64_decode_char() 165 ctx->digits = 0; in base64_decode_char() 174 if (ctx->digits != 0) in base64_decode_finish()
|
| H A D | base32.c | 141 int digits; /*%< Number of buffered base32 digits */ member 152 ctx->digits = 0; in base32_decode_init() 186 switch (ctx->digits) { in base32_decode_char() 218 ctx->val[ctx->digits++] = (last == 32) ? 0 : last; in base32_decode_char() 220 if (ctx->digits == 8) { in base32_decode_char() 240 ctx->digits = 0; in base32_decode_char() 249 if (ctx->digits != 0) in base32_decode_finish()
|
| H A D | string.c | 32 static char digits[] = "0123456789abcdefghijklmnoprstuvwxyz"; variable 71 if ((o = strchr(digits, c)) == NULL) { in isc_string_touint64() 76 if ((o - digits) >= base) { in isc_string_touint64() 87 if ((tmp + (o - digits)) < tmp) { in isc_string_touint64() 91 tmp += o - digits; in isc_string_touint64()
|
| H A D | inet_pton.c | 84 static const char digits[] = "0123456789"; in inet_pton4() local 94 if ((pch = strchr(digits, ch)) != NULL) { in inet_pton4() 95 size_t newv = *tp * 10 + (pch - digits); in inet_pton4()
|
| /freebsd-13.1/crypto/heimdal/lib/roken/ |
| H A D | inet_ntop.c | 45 const char digits[] = "0123456789"; in inet_ntop_v4() local 60 *dst++ = digits[n / 100]; in inet_ntop_v4() 65 *dst++ = digits[n / 10]; in inet_ntop_v4() 69 *dst++ = digits[n]; in inet_ntop_v4()
|
| /freebsd-13.1/contrib/pam_modules/pam_passwdqc/ |
| H A D | passwdqc_check.c | 66 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() 96 if (digits && isascii(c) && isdigit(c)) digits--; in is_simple() 101 if (digits) classes++; in is_simple() 105 if (unknowns && (!classes || (digits && classes == 1))) classes++; in is_simple()
|
| /freebsd-13.1/contrib/tcpdump/ |
| H A D | addrtostr.c | 65 const char digits[] = "0123456789"; in addrtostr() local 78 *dst++ = digits[n / 100]; in addrtostr() 83 *dst++ = digits[n / 10]; in addrtostr() 87 *dst++ = digits[n]; in addrtostr()
|
| /freebsd-13.1/contrib/subversion/subversion/libsvn_subr/ |
| H A D | utf8proc.c | 447 static const char digits[] = "0123456789ABCDEF"; in svn_utf__fuzzy_escape() local 574 svn_stringbuf_appendbyte(result, digits[(rcp & 0x00f0) >> 4]); in svn_utf__fuzzy_escape() 575 svn_stringbuf_appendbyte(result, digits[(rcp & 0x000f)]); in svn_utf__fuzzy_escape() 590 svn_stringbuf_appendbyte(result, digits[(cp & 0xf00000) >> 20]); in svn_utf__fuzzy_escape() 591 svn_stringbuf_appendbyte(result, digits[(cp & 0x0f0000) >> 16]); in svn_utf__fuzzy_escape() 593 svn_stringbuf_appendbyte(result, digits[(cp & 0xf000) >> 12]); in svn_utf__fuzzy_escape() 594 svn_stringbuf_appendbyte(result, digits[(cp & 0x0f00) >> 8]); in svn_utf__fuzzy_escape() 595 svn_stringbuf_appendbyte(result, digits[(cp & 0x00f0) >> 4]); in svn_utf__fuzzy_escape() 596 svn_stringbuf_appendbyte(result, digits[(cp & 0x000f)]); in svn_utf__fuzzy_escape()
|
| /freebsd-13.1/stand/libsa/ |
| H A D | ether.c | 132 static char digits[] = "0123456789abcdef"; variable 141 *cp++ = digits[*ap >> 4]; in ether_sprintf() 142 *cp++ = digits[*ap++ & 0xf]; in ether_sprintf()
|
| /freebsd-13.1/usr.bin/dc/ |
| H A D | inout.c | 303 get_digit(u_long num, int digits, u_int base) in get_digit() argument 312 if (asprintf(&p, "%0*lu", digits, num) == -1) in get_digit() 327 int digits; in printnumber() local 339 digits = 1; in printnumber() 341 digits = snprintf(buf, sizeof(buf), "%u", base-1); in printnumber() 349 stack_pushstring(&stack, get_digit(rem, digits, base)); in printnumber() 390 p = get_digit(rem, digits, base); in printnumber()
|
| /freebsd-13.1/usr.bin/localedef/ |
| H A D | charmap.c | 287 static const char *digits = "0123456789"; in add_charmap_range() local 292 if (((si = strcspn(s, digits)) == 0) || (si == ls) || in add_charmap_range() 294 ((int)strspn(s + si, digits) != (ls - si)) || in add_charmap_range() 295 ((int)strspn(e + si, digits) != (le - si)) || in add_charmap_range()
|
| /freebsd-13.1/contrib/file/src/ |
| H A D | der.c | 184 uint8_t digits, i; in getlength() local 199 digits = c[(*p)++] & 0x7f; in getlength() 200 if (*p + digits >= l) { in getlength() 201 DPRINTF(("%s:[2] %zu + %u >= %zu\n", __func__, *p, digits, l)); in getlength() 206 return digits; in getlength() 213 for (i = 0; i < digits; i++) in getlength()
|
| /freebsd-13.1/sys/libkern/ |
| H A D | inet_pton.c | 76 static const char digits[] = "0123456789"; in inet_pton4() local 87 if ((pch = strchr(digits, ch)) != NULL) { in inet_pton4() 88 u_int new = *tp * 10 + (pch - digits); in inet_pton4()
|
| /freebsd-13.1/contrib/llvm-project/libcxx/src/ |
| H A D | random.cpp | 188 if (ent > std::numeric_limits<result_type>::digits) in entropy() 189 return std::numeric_limits<result_type>::digits; in entropy() 193 return std::numeric_limits<result_type>::digits; in entropy()
|