Searched defs:digit (Results 1 - 25 of 60) sorted by relevance

123

/illumos-gate/usr/src/lib/libresolv2/common/inet/
H A Dinet_network.c59 int digit; local
62 val = 0; base = 10; digit = 0;
64 digit = 1, base = 8, cp++;
73 digit = 1;
80 digit = 1;
85 if (!digit)
/illumos-gate/usr/src/lib/libast/common/tm/
H A Dtmdata.c166 static char digit[] = "0123456789"; variable
282 Tm_data_t _tm_data_ = { format, lex, digit, days, sum, leap, zone };
/illumos-gate/usr/src/lib/libbc/libc/gen/sys5/
H A Dassert.c50 int div, digit; local
61 if ((digit = line_num/div) != 0 || p != &linestr[7] || div == 1)
62 *p++ = digit + '0';
/illumos-gate/usr/src/cmd/genmsg/
H A Dgenmsg.y61 %type <id> cast_setid, setid, cast_msgid, msgid, cast_digit, digit
166 cast_digit: '(' INT ')' digit { $$ = $4; }
167 | '(' CONST INT ')' digit { $$ = $5; }
168 | digit
171 digit: digit '+' digit { $$ = $1 + $3; } label
172 | digit '-' digit { $$ = $1 - $3; }
173 | digit '*' digi
[all...]
/illumos-gate/usr/src/cmd/tbl/
H A Dts.c59 digit(int x) function
/illumos-gate/usr/src/lib/libc/port/gen/
H A Decvt.c116 int digit = value/pow10; local
117 *p++ = digit + '0';
118 value -= digit * pow10;
/illumos-gate/usr/src/common/bignum/i386/
H A Dbignum_i386.c77 (*big_mul_set_vec_impl)(uint32_t *r, uint32_t *a, int len, uint32_t digit)
81 (*big_mul_add_vec_impl)(uint32_t *r, uint32_t *a, int len, uint32_t digit)
92 big_mul_set_vec_init(uint32_t *r, uint32_t *a, int len, uint32_t digit) argument
95 return ((*big_mul_set_vec_impl)(r, a, len, digit));
99 big_mul_add_vec_init(uint32_t *r, uint32_t *a, int len, uint32_t digit) argument
102 return ((*big_mul_add_vec_impl)(r, a, len, digit));
/illumos-gate/usr/src/common/mpi/
H A Dmplogic.c179 integer a, as long as bit lsbNum is in the high order digit of a.
185 mp_digit * digit = MP_DIGITS(a) + lsWndx; local
193 mask &= (digit[0] >> rshift);
195 mask &= ((digit[0] >> rshift) | (digit[1] << (MP_DIGIT_BIT - rshift)));
/illumos-gate/usr/src/cmd/csh/
H A Dsh.char.h59 #define digit(c) cmap(c, _DIG) macro
/illumos-gate/usr/src/cmd/time/
H A Dtime.c146 char digit[9]; local
157 digit[i] = a % quant[i];
163 c = (digit[i] != 0) ? digit[i]+'0' : (nonzero ? '0': pad[i]);
166 nonzero |= digit[i];
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_util.c222 int digit; local
226 digit = ((value & (0xf << (i * 4))) >> (i * 4));
227 ret += digit * 10 * i;
/illumos-gate/usr/src/lib/libmp/common/
H A Dutil.c153 * Convert hex digit to binary value
176 short digit; local
183 digit = xtoi(*key);
184 if (digit < 0) {
187 d = mp_itom(digit);
/illumos-gate/usr/src/lib/libc/port/fp/
H A Dqdivrem.c47 #define B (1 << HALF_BITS) /* digit base */
49 /* Combine two `digits' to make a single two-digit number. */
54 typedef unsigned short digit; typedef
56 typedef ulong_t digit; typedef
65 shl(digit *p, int len, int sh)
86 digit *u, *v, *q;
87 digit v1, v2;
90 digit uspace[5], vspace[5], qspace[5];
140 digit q1, q2, q3, q4;
168 * there is a complete four-digit quotien
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Dtty_common.c555 uint_t digit; local
562 digit = *s++ - '0';
564 digit = *s++ - 'a' + 10;
566 digit = *s++ - 'A' + 10;
571 *valp = (*valp * 16) + digit;
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dasn1_encode.c62 int digit; local
66 digit = (int) (valcopy&0xFF);
67 retval = asn1buf_insert_octet(buf,(asn1_octet) digit);
73 if ((val > 0) && ((digit&0x80) == 0x80)) { /* make sure the high bit is */
77 } else if ((val < 0) && ((digit&0x80) != 0x80)) {
134 int digit; local
138 digit = (int) (valcopy&0xFF);
139 retval = asn1buf_insert_octet(buf,(asn1_octet) digit);
145 if (digit&0x80) { /* make sure the high bit is */
/illumos-gate/usr/src/lib/libnisdb/
H A Dnis_parse_ldap_attr.c966 time_t digit; local
976 digit = (*s++) - '0';
978 if (WILL_OVERFLOW_TIME(tv_sec, digit))
981 tv_sec = tv_sec * 10 + digit;
991 digit = (*s++) - '0';
992 tv_usec += digit * mult;
1035 time_t digit; local
1043 digit = (*s++) - '0';
1044 if (WILL_OVERFLOW_LIMIT(l, digit))
1047 l = l * 10 + digit;
[all...]
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
H A Ddoscan.c356 int digit; local
357 digit = c - '0';
360 if (digit >= 8)
363 lcval = (lcval<<3) + digit;
370 lcval = (((lcval<<2) + lcval)<<1) + digit;
372 lcval = (lcval<<4) + digit;
382 int digit; local
383 digit = c - (isupper(c) ? 'A' - 10 : 'a' - 10);
385 lcval = (lcval<<4) + digit;
/illumos-gate/usr/src/lib/libc/port/regex/
H A Dregcmp.c955 char digit; local
960 digit = *regexp;
961 if (('0' <= digit) && (digit <= '9')) {
962 return ((int)(digit - '0'));
/illumos-gate/usr/src/common/bignum/
H A Dmont_mulf.c247 double digit, m2j, a, b; local
259 digit = mod(lower32(a, Zero) * dn0, TwoToMinus16, TwoTo16);
264 a = pdtj[0] + pdn[0] * digit;
270 pdtj[2 * i] += pdm1[i] * m2j + pdn[i] * digit;
277 digit = mod(lower32(b, Zero) * dn0,
300 digit = mod(lower32(a, Zero) * dn0, TwoToMinus16, TwoTo16);
306 a = pdtj[0] + pdn_0 * digit;
310 pdtj[2] += pdm1[1] *m2j + pdn[1] * digit;
311 pdtj[4] += pdm1[2] *m2j + pdn[2] * digit;
312 pdtj[6] += pdm1[3] *m2j + pdn[3] * digit;
[all...]
/illumos-gate/usr/src/cmd/sh/
H A Dctype.h109 #define digit(c) ((c<QUOTE) && _ctype2[c]&(T_DIG)) macro
/illumos-gate/usr/src/lib/libast/common/vmalloc/
H A Dvmtrace.c71 { reg char* digit = "0123456789abcdef"; local
73 { *s-- = digit[v&0xf];
/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dlbaselib.c55 int digit = (isdigit((unsigned char)*s)) ? *s - '0' local
57 if (digit >= base) break; /* invalid numeral; force a fail */
58 n = n * (lua_Number)base + (lua_Number)digit;
/illumos-gate/usr/src/boot/lib/libstand/
H A Dqdivrem.c46 #define B (1 << HALF_BITS) /* digit base */
48 /* Combine two `digits' to make a single two-digit number. */
55 typedef unsigned short digit; typedef
63 shl(digit *p, int len, int sh)
84 digit *u, *v, *q;
85 digit v1, v2;
88 digit uspace[5], vspace[5], qspace[5];
138 digit q1, q2, q3, q4;
166 * there is a complete four-digit quotient at &qspace[1] when
195 digit uj
[all...]
/illumos-gate/usr/src/common/ficl/
H A Dfloat.c264 unsigned char digit; local
309 digit = (unsigned char)(c - '0');
310 if (digit > 9)
313 accum = accum * 10 + digit;
324 digit = (unsigned char)(c - '0');
325 if (digit > 9)
328 accum += digit * mant;
349 digit = (unsigned char)(c - '0');
350 if (digit > 9)
353 exponent = exponent * 10 + digit;
[all...]
/illumos-gate/usr/src/cmd/sgs/lex/common/
H A Dsub1.c86 digit(int c) function
227 if (!digit(*s) && *s != '-')
234 if (!digit(*s))
300 if (digit((dd = *++*ss)) ||
304 while (digit(dd) ||
307 if (digit(dd))
412 if (digit((dd = gch())) ||
416 while (digit(dd) ||
419 if (digit(dd))
425 if (!digit(pee
[all...]

Completed in 245 milliseconds

123