Searched refs:digit (Results 1 - 25 of 94) sorted by relevance

1234

/freebsd-current/lib/libc/stdlib/
H A Da64l.c26 int digit, i, value; local
32 digit = *s - ASLASH + 1;
34 digit = *s - A0 + 2;
36 digit = *s - AA + 12;
38 digit = *s - Aa + 38;
40 value |= digit << shift;
/freebsd-current/contrib/ntp/libntp/
H A Ddolfptoa.c44 /* can add another digit */
45 u_int32 digit; local
47 digit = fpi;
49 digit -= (fpi << 3) + (fpi << 1); /* i*10 */
50 *--cp = (u_char)digit;
71 u_int32 digit, tmph, tmpl; local
79 digit = 0;
80 M_LSHIFT(digit, fpv);
81 tmph = digit;
83 M_LSHIFT(digit, fp
[all...]
H A Dvint64ops.c30 u_char digit; local
67 digit = *src - '0';
69 digit = *src - 'A' + 10;
71 digit = *src - 'a' + 10;
74 if (digit >= base)
78 res.Q_s = res.Q_s * base + digit;
93 M_ADD(res.D_s.hi, res.D_s.lo, 0, digit);
/freebsd-current/lib/libc/inet/
H A Dinet_network.c52 int i, digit; local
55 val = 0; base = 10; digit = 0;
57 digit = 1, base = 8, cp++;
66 digit = 1;
73 digit = 1;
78 if (!digit)
H A Dinet_addr.c107 int digit; local
118 val = 0; base = 10; digit = 0;
125 digit = 1 ;
134 digit = 1;
140 digit = 1;
164 * Did we get a valid digit?
166 if (!digit)
/freebsd-current/crypto/openssl/crypto/bn/
H A Dbn_intern.c19 * with the exception that the most significant digit may be only
20 * w-1 zeros away from that next non-zero digit.
61 * Modified wNAF may be one digit longer than binary representation
74 int digit = 0; local
82 digit = window_val - next_bit; /* -2^w < digit < 0 */
89 * so using a positive digit here will decrease
93 digit = window_val & (mask >> 1); /* 0 < digit < 2^w */
97 digit
[all...]
H A Drsaz_exp_x2.c46 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_st
[all...]
/freebsd-current/lib/libipsec/
H A Dpolicy_token.l63 digit [0-9]
77 usec {dot}{digit}{1,6}
82 decstring {digit}+
/freebsd-current/usr.sbin/rrenumd/
H A Dlexer.l67 digit [0-9]
78 usec {dot}{digit}{1,6}
81 decstring {digit}+
85 ipv4addr {digit}{1,3}({dot}{digit}{1,3}){0,3}
87 ipaddrmask {slash}{digit}{1,3}
89 name {letter}(({letter}|{digit}|{hyphen})*({letter}|{digit}))*
92 timeval {digit}{0,2}
/freebsd-current/contrib/libpcap/
H A Dscanner.l505 unsigned int digit;
521 while ((digit = *s++) != '\0') {
522 if (digit >= '0' && digit <= '9')
523 digit = digit - '0';
524 else if (digit >= 'a' && digit <= 'f')
525 digit = digit
[all...]
/freebsd-current/sys/kern/
H A Dsubr_blist.c514 int digit; local
545 digit = bitpos(diff);
546 update_gap_stats(stats, i + digit);
547 diff ^= bitrange(digit, 1);
591 int avail, digit; local
644 (digit = ((blk / radix) & BLIST_MASK)) == 0;
650 scan[-digit * radix_to_skip(radix)].bm_bitmap ^=
651 (u_daddr_t)1 << digit;
777 int digit; local
787 digit
870 int digit, endDigit; local
993 int digit; local
1030 int digit; local
[all...]
/freebsd-current/sys/libkern/
H A Dqdivrem.c44 #define B (1 << HALF_BITS) /* digit base */
46 /* Combine two `digits' to make a single two-digit number. */
51 typedef unsigned short digit; typedef
53 typedef u_long digit; typedef
62 __shl(digit *p, int len, int sh)
83 digit *u, *v, *q;
84 digit v1, v2;
87 digit uspace[5], vspace[5], qspace[5];
137 digit q1, q2, q3, q4;
165 * there is a complete four-digit quotien
[all...]
/freebsd-current/bin/pax/
H A Dgen_subs.c215 * for each valid digit, shift running value (tval) over to next digit
216 * and add next digit
247 u_long digit; local
256 * least significant digit). Keep shifting until conversion value goes
261 if ((digit = (val & 0xf)) < 10)
262 *pt-- = '0' + (char)digit;
264 *pt-- = 'a' + (char)(digit - 10);
311 * for each valid digit, shift running value (tval) over to next digit
343 u_quad_t digit; local
[all...]
/freebsd-current/lib/libc/quad/
H A Dqdivrem.c43 #define B (1L << HALF_BITS) /* digit base */
45 /* Combine two `digits' to make a single two-digit number. */
50 typedef unsigned short digit; typedef
52 typedef u_long digit; typedef
61 shl(digit *p, int len, int sh)
82 digit *u, *v, *q;
83 digit v1, v2;
86 digit uspace[5], vspace[5], qspace[5];
136 digit q1, q2, q3, q4;
164 * there is a complete four-digit quotien
[all...]
/freebsd-current/crypto/heimdal/lib/wind/
H A Dpunycode.c49 digit(unsigned n) function
150 out[o++] = digit(t + ((q - t) % (base - t)));
155 out[o++] = digit(q);
/freebsd-current/contrib/tcpdump/
H A Dstrtoaddr.c61 u_int digit; local
86 digit = c - '0';
87 val = (val * 10) + digit;
/freebsd-current/crypto/openssl/crypto/
H A Dcpuid.c66 unsigned int digit, base = 10; local
74 while((digit = todigit(*str++)) < base)
75 ret = ret * base + digit;
H A Dpunycode.c65 * code points digit-values
102 * let digit = the code point's digit-value, fail if it has none
103 * let i = i + digit * w, fail on overflow
106 * if digit < t then break
152 int digit; local
158 digit = digit_decoded(pEncoded[loop]);
161 if (digit < 0)
163 if ((unsigned int)digit > (maxint - i) / w)
166 i = i + digit *
[all...]
/freebsd-current/contrib/libarchive/libarchive/
H A Darchive_read_support_format_ar.c592 unsigned int digit, base; local
602 digit = *p - '0';
603 while (*p >= '0' && digit < base && char_cnt-- > 0) {
604 if (l>limit || (l == limit && digit > last_digit_limit)) {
608 l = (l * base) + digit;
609 digit = *++p - '0';
618 unsigned int base, digit; local
627 digit = *p - '0';
628 while (*p >= '0' && digit < base && char_cnt-- > 0) {
629 if (l > limit || (l == limit && digit > last_digit_limi
[all...]
/freebsd-current/contrib/openpam/t/
H A Dt_openpam_ctype.c85 T_OC(digit)
107 T_OC_ADD(digit);
/freebsd-current/sys/ddb/
H A Ddb_lex.c204 int r, digit = 0; local
227 digit = c - '0';
231 digit = c - 'a' + 10;
233 digit = c - 'A' + 10;
237 db_tok_number = db_tok_number * r + digit;
/freebsd-current/contrib/ntp/ntpd/
H A Drefclock_wwv.c122 * 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 */ member in struct:decvec
[all...]
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_printf.cpp75 char digit = static_cast<char>(num_buffer[pos]); local
76 digit = (digit < 10) ? '0' + digit : (uppercase ? 'A' : 'a') + digit - 10;
77 result += AppendChar(buff, buff_end, digit);
/freebsd-current/crypto/openssl/crypto/ec/
H A Decp_nistputil.c142 * significant bit), and recodes them into a signed digit for use in fast point
155 * shown to be the basis of various signed-digit representations that do have
182 * (a signed-digit encoding independently discovered by various researchers
193 * signed bits into a signed digit:
197 * The sign-alternating property implies that the resulting digit values are
202 * to the wNAF): a direct computation obtains the recoded digit from the
206 * recoded digit to *sign (0 for positive, 1 for negative) and *digit (absolute
209 * to compute the least significant recoded digit, given that there's no bit
214 unsigned char *digit, unsigne
213 ossl_ec_GFp_nistp_recode_scalar_bits(unsigned char *sign, unsigned char *digit, unsigned char in) argument
[all...]
/freebsd-current/sbin/setkey/
H A Dtoken.l74 digit [0-9]
85 decstring {digit}+
88 ipaddrmask {slash}{digit}{1,3}
89 name {letter}(({letter}|{digit}|{hyphen})*({letter}|{digit}))*

Completed in 253 milliseconds

1234