/src/lib/libc/stdlib/ |
a64l.c | 23 long value, digit, shift; local in function:__weak_alias 32 digit = *s - '.'; 34 digit = *s - '0' + 2; 36 digit = *s - 'A' + 12; 38 digit = *s - 'a' + 38; 40 value |= digit << shift;
|
l64a.c | 37 int digit; local in function:l64a_r 46 digit = (int)(v & 0x3f); 48 if (digit < 2) 49 *s = digit + '.'; 50 else if (digit < 12) 51 *s = digit + '0' - 2; 52 else if (digit < 38) 53 *s = digit + 'A' - 12; 55 *s = digit + 'a' - 38;
|
/src/common/lib/libc/inet/ |
inet_addr.c | 133 int digit; local in function:inet_aton 144 val = 0; base = 10; digit = 0; 151 digit = 1 ; 160 digit = 1; 166 digit = 1; 190 * Did we get a valid digit? 192 if (!digit)
|
/src/lib/libc/inet/ |
inet_network.c | 68 int digit, base; local in function:__weak_alias 73 val = 0; base = 10; digit = 0; 75 digit = 1, base = 8, cp++; 77 digit = 0, base = 16, cp++; 85 digit = 1; 91 digit = 1; 96 if (!digit)
|
inet_pton.c | 103 u_int digit, base; local in function:inet_pton4 134 digit = c - '0'; 135 if (digit >= base) 137 val = (val * base) + digit; 140 digit = c + 10 - (islower(c) ? 'a' : 'A'); 141 if (digit >= 16) 143 val = (val << 4) | digit;
|
/src/regress/lib/libc/ieeefp/testfloat/ |
writeHex.c | 72 int digit; local in function:writeHex_bits8 74 digit = ( a>>4 ) & 0xF; 75 if ( 9 < digit ) digit += 'A' - ( '0' + 10 ); 76 fputc( '0' + digit, stream ); 77 digit = a & 0xF; 78 if ( 9 < digit ) digit += 'A' - ( '0' + 10 ); 79 fputc( '0' + digit, stream ); 85 int digit; local in function:writeHex_bits12 101 int digit; local in function:writeHex_bits16 [all...] |
/src/games/morse/ |
morse.c | 44 static const char digit[][6] = { variable in typeref:typename:const char[][6] 196 for (size_t i = 0; i < __arraycount(digit); i++) 197 if (strcmp(digit[i], s) == 0) { 226 show(digit[c - '0']);
|
/src/sbin/nvmectl/ |
humanize_bignum.c | 48 static mp_digit digit = 5UL; local in function:BN_value_5 49 static const BIGNUM bn = { &digit, 1, 1, 0 }; 56 static mp_digit digit = 10UL; local in function:BN_value_10 57 static const BIGNUM bn = { &digit, 1, 1, 0 }; 64 static mp_digit digit = 50UL; local in function:BN_value_50 65 static const BIGNUM bn = { &digit, 1, 1, 0 }; 72 static mp_digit digit = 100UL; local in function:BN_value_100 73 static const BIGNUM bn = { &digit, 1, 1, 0 }; 80 static mp_digit digit = 995UL; local in function:BN_value_995 81 static const BIGNUM bn = { &digit, 1, 1, 0 } 88 static mp_digit digit = 1000UL; local in function:BN_value_1000 96 static mp_digit digit = 1024UL; local in function:BN_value_1024 [all...] |
/src/sys/dev/pcmcia/ |
if_sm_pcmcia.c | 209 u_int8_t digit; local in function:sm_pcmcia_ascii_enaddr 218 for (i = 0, digit = 0; i < (ETHER_ADDR_LEN * 2); i++) { 220 digit |= cisstr[i] - '0'; 222 digit |= (cisstr[i] - 'a') + 10; 224 digit |= (cisstr[i] - 'A') + 10; 226 /* Bogus digit!! */ 232 myla[i >> 1] = digit; 233 digit = 0; 235 digit <<= 4;
|
mhzc.c | 554 u_int8_t digit; local in function:mhzc_em3336_ascii_enaddr 559 for (i = 0, digit = 0; i < (ETHER_ADDR_LEN * 2); i++) { 561 digit |= cisstr[i] - '0'; 563 digit |= (cisstr[i] - 'a') + 10; 565 digit |= (cisstr[i] - 'A') + 10; 567 /* Bogus digit!! */ 573 myla[i >> 1] = digit; 574 digit = 0; 576 digit <<= 4;
|
/src/lib/libutil/ |
strpct.c | 138 unsigned digit = 0; local in function:strpct 139 for (; bignum_ge_u(num, denominator); digit++) 142 if (i > 0 || p > buf || digit > 0) { 144 *p++ = '0' + digit, n--;
|
/src/bin/pax/ |
gen_subs.c | 229 * for each valid digit, shift running value (tval) over to next digit 230 * and add next digit 261 uint32_t digit; local in function:u32_asc 277 * least significant digit). Keep shifting until conversion value goes 282 if ((digit = (val & 0xf)) < 10) 283 *pt-- = '0' + (char)digit; 285 *pt-- = 'a' + (char)(digit - 10); 354 * for each valid digit, shift running value (tval) over to next digit 386 uintmax_t digit; local in function:umax_asc [all...] |
/src/common/lib/libc/quad/ |
qdivrem.c | 52 #define B ((int)1 << (unsigned int)HALF_BITS) /* digit base */ 54 /* Combine two `digits' to make a single two-digit number. */ 59 typedef unsigned short digit; typedef in typeref:typename:unsigned short 61 typedef u_int digit; typedef in typeref:typename:u_int 64 static void shl(digit *p, int len, int sh); 78 digit *u, *v, *q; 79 digit v1, v2; 82 digit uspace[5], vspace[5], qspace[5]; 120 u[1] = (digit)HHALF(tmp.ul[H]); 121 u[2] = (digit)LHALF(tmp.ul[H]) [all...] |
/src/games/hack/ |
makedefs.c | 88 static int digit(int); 229 } while (letter(ch) || digit(ch)); 334 digit(ch) function
|
hack.invent.c | 470 while (digit(ilet) && allowcnt) { 478 if (digit(ilet)) { 1020 digit(int c) function in typeref:typename:int
|
/src/sys/ddb/ |
db_lex.c | 215 db_expr_t r, digit = 0; local in function:db_lex 236 digit = c - '0'; 239 digit = c - 'A' + 10; 241 digit = c - 'a' + 10; 246 db_tok_number = db_tok_number * r + digit;
|
/src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
sanitizer_libc.cc | 246 int digit = ((*nptr) - '0'); local in function:__sanitizer::internal_simple_strtoll 247 res = (res <= UINT64_MAX - digit) ? res + digit : UINT64_MAX;
|
sanitizer_printf.cc | 76 char digit = static_cast<char>(num_buffer[pos]); local in function:__sanitizer::AppendNumber 77 digit = (digit < 10) ? '0' + digit : (uppercase ? 'A' : 'a') + digit - 10; 78 result += AppendChar(buff, buff_end, digit);
|
/src/sys/arch/vax/vax/ |
db_machdep.c | 542 int digit = (foo >> 28) & 0xf; local in function:db_stack_trace_print 543 if (digit > 9) { 547 tpid = tpid * 10 + digit;
|
/src/sys/arch/x68k/stand/aout2hux/ |
aout2hux.c | 775 int digit; local in function:gethex 780 digit = *p - '0'; 782 case 'a': case 'A': digit = 10; break; 783 case 'b': case 'B': digit = 11; break; 784 case 'c': case 'C': digit = 12; break; 785 case 'd': case 'D': digit = 13; break; 786 case 'e': case 'E': digit = 14; break; 787 case 'f': case 'F': digit = 15; break; 793 val = (val << 4) | digit;
|
/src/sys/dev/ic/ |
bha.c | 1084 struct bha_digit digit; local in function:bha_info 1119 digit.cmd.opcode = BHA_INQUIRE_REVISION_3; 1121 sizeof(digit.cmd), (u_char *)&digit.cmd, 1122 sizeof(digit.reply), (u_char *)&digit.reply); 1123 *p++ = digit.reply.digit; 1127 digit.cmd.opcode = BHA_INQUIRE_REVISION_4; 1129 sizeof(digit.cmd), (u_char *)&digit.cmd [all...] |
/src/lib/libc/gen/ |
getcap.c | 1134 int base, digit; local in function:cgetnum 1170 digit = *bp - '0'; 1172 digit = 10 + *bp - 'a'; 1174 digit = 10 + *bp - 'A'; 1178 if (digit >= base) 1181 n = n * base + digit;
|
/src/sys/arch/arc/dti/ |
btl.c | 1143 struct bt_digit digit; local in function:bt_inquire_setup_information 1156 digit.cmd.opcode = BT_INQUIRE_REVISION_3; 1157 bt_cmd(iobase, sc, sizeof(digit.cmd), (u_char *)&digit.cmd, 1158 sizeof(digit.reply), (u_char *)&digit.reply); 1159 *p++ = digit.reply.digit; 1162 digit.cmd.opcode = BT_INQUIRE_REVISION_4; 1163 bt_cmd(iobase, sc, sizeof(digit.cmd), (u_char *)&digit.cmd [all...] |
/src/sys/fs/nfs/server/ |
nfs_nfsdsubs.c | 1675 * Translate an ASCII hex digit to its binary value. Return -1 if the 1676 * char isn't a hex digit. 1843 char digit; local in function:nfsrv_parsename 1938 * percent == 1 -> indicates "get first hex digit" 1939 * percent == 2 -> indicates "get second hex digit" 1942 digit = nfsrv_hexdigit(*fromcp, &error); 1949 val = (digit << 4); 1952 val += digit;
|
/src/usr.sbin/makefs/ |
cd9660.c | 1062 int numbts, dot, semi, digit, digits, temp, powers, multiplier, count; local in function:cd9660_rename_filename 1148 digit = (int)(temp / powers); 1149 temp = temp - digit * powers; 1150 sprintf(&tmp[numbts] , "%d", digit);
|