/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 | 46 static ossl_inline void put_digit52(uint8_t *out, int out_len, uint64_t digit); 443 uint64_t digit = 0; 448 digit <<= 8; 449 digit += (uint64_t)(in[in_len - 1]); 451 return digit; 471 uint64_t digit; 473 memcpy(&digit, in_str, sizeof(digit)); 474 out[0] = digit & DIGIT_MASK; 476 memcpy(&digit, in_str, sizeof(digit)); 477 out[1] = (digit >> 4) & DIGIT_MASK; [all …]
|
H A D | bn_intern.c | 74 int digit = 0; in bn_compute_wNAF() local 82 digit = window_val - next_bit; /* -2^w < digit < 0 */ in bn_compute_wNAF() 93 digit = window_val & (mask >> 1); /* 0 < digit < 2^w */ in bn_compute_wNAF() 97 digit = window_val; /* 0 < digit < 2^w */ in bn_compute_wNAF() 100 if (digit <= -bit || digit >= bit || !(digit & 1)) { in bn_compute_wNAF() 105 window_val -= digit; in bn_compute_wNAF() 118 r[j++] = sign * digit; in bn_compute_wNAF()
|
/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/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/contrib/libpcap/ |
H A D | scanner.l | 516 unsigned int digit; variable 534 digit = *s++; 536 if (digit >= '0' && digit <= '9') 537 digit = digit - '0'; 538 else if (digit >= 'a' && digit <= 'f') 539 digit = digit - 'a' + 10; 540 else if (digit >= 'A' && digit <= 'F') 541 digit = digit - 'A' + 10; 567 n = (n << 4) + digit; 579 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/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/contrib/libarchive/libarchive/ |
H A D | archive_read_support_format_ar.c | 592 unsigned int digit, base; in ar_atol8() local 602 digit = *p - '0'; in ar_atol8() 603 while (*p >= '0' && digit < base && char_cnt-- > 0) { in ar_atol8() 604 if (l>limit || (l == limit && digit > last_digit_limit)) { in ar_atol8() 608 l = (l * base) + digit; in ar_atol8() 609 digit = *++p - '0'; in ar_atol8() 618 unsigned int base, digit; in ar_atol10() local 627 digit = *p - '0'; in ar_atol10() 628 while (*p >= '0' && digit < base && char_cnt-- > 0) { in ar_atol10() 629 if (l > limit || (l == limit && digit > last_digit_limit)) { in ar_atol10() [all …]
|
/freebsd/crypto/openssl/crypto/ |
H A D | punycode.c | 152 int digit; in ossl_punycode_decode() local 158 digit = digit_decoded(pEncoded[loop]); in ossl_punycode_decode() 161 if (digit < 0) in ossl_punycode_decode() 163 if ((unsigned int)digit > (maxint - i) / w) in ossl_punycode_decode() 166 i = i + digit * w; in ossl_punycode_decode() 169 if ((unsigned int)digit < t) in ossl_punycode_decode()
|
H A D | cpuid.c | 66 unsigned int digit, base = 10; in ossl_strtouint64() local 74 while((digit = todigit(*str++)) < base) in ossl_strtouint64() 75 ret = ret * base + digit; in ossl_strtouint64()
|
/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/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()
|
/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/contrib/bc/gen/ |
H A D | dc_help.txt | 75 -C --no-digit-clamp 80 This means that the value added to a number from a digit is always that 81 digit's value multiplied by the value of ibase raised to the power of the 82 digit's position, which starts from 0 at the least significant digit. 86 -c --digit-clamp 91 This means that digits that the value added to a number from a digit that 93 multiplied by the value of ibase raised to the power of the digit's 94 position, which starts from 0 at the least significant digit.
|
/freebsd/lib/libipsec/ |
H A D | policy_token.l | 63 digit [0-9] 77 usec {dot}{digit}{1,6}
|
/freebsd/contrib/tcpdump/ |
H A D | strtoaddr.c | 59 u_int digit; in strtoaddr() local 84 digit = c - '0'; in strtoaddr() 85 val = (val * 10) + digit; in strtoaddr()
|