| /freebsd/contrib/ntp/libntp/ |
| H A D | dolfptoa.c | 42 /* can add another digit */ in dolfptoa() 43 u_int32 digit; in dolfptoa() 45 digit = fpi; in dolfptoa() local 47 digit -= (fpi << 3) + (fpi << 1); /* i*10 */ in dolfptoa() 48 *--cp = (u_char)digit; in dolfptoa() 69 u_int32 digit, tmph, tmpl; in dolfptoa() 77 digit = 0; in dolfptoa() 78 M_LSHIFT(digit, fpv); in dolfptoa() 79 tmph = digit; in dolfptoa() 81 M_LSHIFT(digit, fp in dolfptoa() 71 u_int32 digit, tmph, tmpl; dolfptoa() local [all...] |
| H A D | vint64ops.c | 31 u_char digit; in strtouv64() 68 digit = *src - '0'; in strtouv64() 70 digit = *src - 'A' + 10; in strtouv64() 72 digit = *src - 'a' + 10; in strtouv64() 75 if (digit >= base) in strtouv64() 79 res.Q_s = res.Q_s * base + digit; in strtouv64() 94 M_ADD(res.D_s.hi, res.D_s.lo, 0, digit); in strtouv64() 30 u_char digit; strtouv64() local
|
| /freebsd/crypto/openssl/crypto/bn/ |
| H A D | rsaz_exp_x2.c | 43 static ossl_inline void put_digit(uint8_t *out, int out_len, uint64_t digit); 578 uint64_t digit = 0; 584 digit <<= 8; 585 digit += (uint64_t)(in[in_len - 1]); 587 return digit; 607 uint64_t digit; 609 memcpy(&digit, in_str, sizeof(digit)); 610 out[0] = digit & DIGIT_MASK; 612 memcpy(&digit, in_str, sizeof(digit)); 613 out[1] = (digit >> 4) & DIGIT_MASK; [all …]
|
| H A D | bn_intern.c | 70 int digit = 0; in bn_compute_wNAF() local 78 digit = window_val - next_bit; /* -2^w < digit < 0 */ in bn_compute_wNAF() 89 digit = window_val & (mask >> 1); /* 0 < digit < 2^w */ in bn_compute_wNAF() 93 digit = window_val; /* 0 < digit < 2^w */ in bn_compute_wNAF() 96 if (digit <= -bit || digit >= bit || !(digit & 1)) { in bn_compute_wNAF() 101 window_val -= digit; in bn_compute_wNAF() 114 r[j++] = sign * digit; in bn_compute_wNAF()
|
| /freebsd/sys/kern/ |
| H A D | subr_blist.c | 514 int digit; in blist_stats() local 545 digit = bitpos(diff); in blist_stats() 546 update_gap_stats(stats, i + digit); in blist_stats() 547 diff ^= bitrange(digit, 1); in blist_stats() 591 int avail, digit; in blst_next_leaf_alloc() local 644 (digit = ((blk / radix) & BLIST_MASK)) == 0; in blst_next_leaf_alloc() 650 scan[-digit * radix_to_skip(radix)].bm_bitmap ^= in blst_next_leaf_alloc() 651 (u_daddr_t)1 << digit; in blst_next_leaf_alloc() 777 int digit; in blst_meta_alloc() local 787 digit = (cursor / radix) & BLIST_MASK; in blst_meta_alloc() [all …]
|
| /freebsd/lib/libc/stdlib/ |
| H A D | a64l.c | 26 int digit, i, value; in a64l() local 32 digit = *s - ASLASH + 1; in a64l() 34 digit = *s - A0 + 2; in a64l() 36 digit = *s - AA + 12; in a64l() 38 digit = *s - Aa + 38; in a64l() 40 value |= digit << shift; in a64l()
|
| /freebsd/contrib/libpcap/ |
| H A D | scanner.l | 494 unsigned int digit; variable 512 digit = *s++; 514 if (digit >= '0' && digit <= '9') 515 digit = digit - '0'; 516 else if (digit >= 'a' && digit <= 'f') 517 digit = digit - 'a' + 10; 518 else if (digit >= 'A' && digit <= 'F') 519 digit = digit - 'A' + 10; 545 n = (n << 4) + digit; 557 digit = *s++; [all …]
|
| /freebsd/lib/libc/inet/ |
| H A D | inet_network.c | 52 int i, digit; in inet_network() local 55 val = 0; base = 10; digit = 0; in inet_network() 57 digit = 1, base = 8, cp++; in inet_network() 66 digit = 1; in inet_network() 73 digit = 1; in inet_network() 78 if (!digit) in inet_network()
|
| H A D | inet_addr.c | 107 int digit; in inet_aton() local 118 val = 0; base = 10; digit = 0; in inet_aton() 125 digit = 1 ; in inet_aton() 134 digit = 1; in inet_aton() 140 digit = 1; in inet_aton() 166 if (!digit) in inet_aton()
|
| /freebsd/contrib/lyaml/lib/lyaml/ |
| H A D | implicit.lua | 111 gsub(rest, '_*(.)', function(digit) 112 r = r * 2 + int(digit) 131 gsub(rest, '_*(.)', function(digit) 132 r = r * 8 + int(digit) 190 gsub(rest, '([0-9]+):?', function(digit) 191 r = r * 60 + int(digit) 257 gsub(rest, '([0-9]+):?', function(digit) 258 r = r * 60 + int(digit)
|
| /freebsd/lib/libc/net/ |
| H A D | linkaddr.c | 101 int digit, digit2; in link_addr() local 127 if ((digit = DIGIT(*addr)) == -1) { in link_addr() 136 digit = (digit << 4) | digit2; in link_addr() 146 *cp++ = digit; in link_addr() 153 *cp++ = digit; in link_addr() 156 *cp++ = digit; in link_addr()
|
| /freebsd/bin/pax/ |
| H A D | gen_subs.c | 247 u_long digit; in ul_asc() local 261 if ((digit = (val & 0xf)) < 10) in ul_asc() 262 *pt-- = '0' + (char)digit; in ul_asc() 264 *pt-- = 'a' + (char)(digit - 10); in ul_asc() 343 u_quad_t digit; in uqd_asc() local 357 if ((digit = (val & 0xf)) < 10) in uqd_asc() 358 *pt-- = '0' + (char)digit; in uqd_asc() 360 *pt-- = 'a' + (char)(digit - 10); in uqd_asc()
|
| /freebsd/lib/libc/quad/ |
| H A D | qdivrem.c | 50 typedef unsigned short digit; typedef 52 typedef u_long digit; typedef 61 shl(digit *p, int len, int sh) in shl() 82 digit *u, *v, *q; in __qdivrem() 83 digit v1, v2; in __qdivrem() 86 digit uspace[5], vspace[5], qspace[5]; in __qdivrem() 136 digit q1, q2, q3, q4; in __qdivrem() 193 digit uj0, uj1, uj2; in __qdivrem()
|
| /freebsd/sys/libkern/ |
| H A D | qdivrem.c | 51 typedef unsigned short digit; typedef 53 typedef u_long digit; typedef 62 __shl(digit *p, int len, int sh) in __shl() 83 digit *u, *v, *q; in __qdivrem() 84 digit v1, v2; in __qdivrem() 87 digit uspace[5], vspace[5], qspace[5]; in __qdivrem() 137 digit q1, q2, q3, q4; in __qdivrem() 194 digit uj0, uj1, uj2; in __qdivrem()
|
| /freebsd/usr.sbin/lpr/lpd/ |
| H A D | recvjob.c | 60 #define digit(ch) ((ch) >= '0' && (ch) <= '9') macro 198 for (size = 0; digit(*cp); cp++) { in readjob() 212 !digit(cp[3]) || !digit(cp[4]) || !digit(cp[5])) in readjob() 249 for (size = 0; digit(*cp); cp++) { in readjob() 266 !digit(cp[3]) || !digit(cp[4]) || !digit(cp[5])) in readjob()
|
| /freebsd/contrib/llvm-project/libc/src/__support/ |
| H A D | integer_to_string.h | 175 const uint8_t digit(static_cast<uint8_t>(value % 10)); in extract_decimal_digit() 181 return digit; in extract_decimal_digit() 234 uint8_t digit = static_cast<uint8_t>(acc_remainder % 10); in extract_decimal_digit() local 238 value -= digit; in extract_decimal_digit() 328 return digit; in extract_decimal_digit() 381 LIBC_INLINE static char digit_char(uint8_t digit) { in digit_char() 382 const int result = internal::int_to_b36_char(digit); in digit_char() 391 const uint8_t digit(static_cast<uint8_t>(value % Fmt::BASE)); in write_unsigned_number() 392 sink.push(digit_char(digit)); in write_unsigned_number() 400 const uint8_t digit = extract_decimal_digit(value); in write_unsigned_number_dec() local [all …]
|
| /freebsd/crypto/openssl/crypto/ |
| H A D | punycode.c | 153 int digit; in ossl_punycode_decode() local 159 digit = digit_decoded(pEncoded[loop]); in ossl_punycode_decode() 162 if (digit < 0) in ossl_punycode_decode() 164 if ((unsigned int)digit > (maxint - i) / w) in ossl_punycode_decode() 167 i = i + digit * w; in ossl_punycode_decode() 171 if ((unsigned int)digit < t) in ossl_punycode_decode()
|
| /freebsd/contrib/libarchive/libarchive/ |
| H A D | archive_read_support_format_ar.c | 556 unsigned int digit, base; in ar_atol8() local 564 digit = *p - '0'; in ar_atol8() 565 while (*p >= '0' && digit < base && char_cnt-- > 0) { in ar_atol8() 567 archive_ckd_add_u64(&l, l, digit)) { in ar_atol8() 571 digit = *++p - '0'; in ar_atol8() 580 unsigned int base, digit; in ar_atol10() local 587 digit = *p - '0'; in ar_atol10() 588 while (*p >= '0' && digit < base && char_cnt-- > 0) { in ar_atol10() 590 archive_ckd_add_u64(&l, l, digit)) { in ar_atol10() 594 digit = *++p - '0'; in ar_atol10()
|
| /freebsd/contrib/ntp/ntpd/ |
| H A D | refclock_wwv.c | 122 * sync pulse has been acquired. DSYNC is set when the units digit has 158 #define CMPERR 0x1 /* digit or misc bit compare error */ 159 #define LOWERR 0x2 /* low bit or digit amplitude or SNR */ 195 #define BTHR 1000. /* digit threshold */ 196 #define BSNR 3. /* digit likelihood threshold (dB) */ 197 #define BCMP 3 /* digit compare threshold */ 215 #define TCONST 16 /* data bit/digit time constant */ 294 #define DECIM9 4 /* BCD digit 0-9 */ 295 #define DECIM6 5 /* BCD digit 0-6 */ 296 #define DECIM3 6 /* BCD digit 467 int digit; /* current clock digit */ global() member [all...] |
| /freebsd/share/examples/ipfilter/ |
| H A D | BNF | 43 host-num = digit [ digit [ digit ] ] . 74 decnumber = digit [ decnumber ] . 79 hexdigit = digit | "a" | "b" | "c" | "d" | "e" | "f" . 80 digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" .
|
| /freebsd/bin/sh/tests/builtins/ |
| H A D | case8.0 | 8 [[:alpha:][:digit:]]) echo Failed at $LINENO ;; 9 [![:alpha:][:digit:]]) ;; 29 '[:digit:]]) ;;
|
| /freebsd/sys/ddb/ |
| H A D | db_lex.c | 204 int r, digit = 0; in db_lex() local 227 digit = c - '0'; in db_lex() 231 digit = c - 'a' + 10; in db_lex() 233 digit = c - 'A' + 10; in db_lex() 237 db_tok_number = db_tok_number * r + digit; in db_lex()
|
| /freebsd/stand/ficl/ |
| H A D | float.c | 835 unsigned char ch, digit; in ficlParseFloatNumber() local 894 digit = (unsigned char)(ch - '0'); in ficlParseFloatNumber() 895 if (digit > 9) in ficlParseFloatNumber() 898 accum = accum * 10 + digit; in ficlParseFloatNumber() 915 digit = (unsigned char)(ch - '0'); in ficlParseFloatNumber() 916 if (digit > 9) in ficlParseFloatNumber() 919 accum += digit * mant; in ficlParseFloatNumber() 946 digit = (unsigned char)(ch - '0'); in ficlParseFloatNumber() 947 if (digit > 9) in ficlParseFloatNumber() 950 exponent = exponent * 10 + digit; in ficlParseFloatNumber()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_printf.cpp | 75 char digit = static_cast<char>(num_buffer[pos]); in AppendNumber() local 76 digit = (digit < 10) ? '0' + digit : (uppercase ? 'A' : 'a') + digit - 10; in AppendNumber() 77 result += AppendChar(buff, buff_end, digit); in AppendNumber()
|
| /freebsd/crypto/heimdal/lib/wind/ |
| H A D | punycode.c | 49 digit(unsigned n) in digit() function 150 out[o++] = digit(t + ((q - t) % (base - t))); in wind_punycode_label_toascii() 155 out[o++] = digit(q); in wind_punycode_label_toascii()
|