/original-bsd/sys/pmax/pmax/ |
H A D | asic.h | 191 #define ASIC_REG_BUFF0(base) ((base) + ASIC_BUFF0) argument 192 #define ASIC_REG_BUFF1(base) ((base) + ASIC_BUFF1) argument 193 #define ASIC_REG_BUFF2(base) ((base) + ASIC_BUFF2) argument 194 #define ASIC_REG_BUFF3(base) ((base) + ASIC_BUFF3) argument 195 #define ASIC_REG_CSR(base) ((base) + ASIC_CSR) argument 196 #define ASIC_REG_INTR(base) ((base) + ASIC_INTR) argument 197 #define ASIC_REG_IMSK(base) ((base) + ASIC_IMSK) argument 198 #define ASIC_REG_CURADDR(base) ((base) + ASIC_CURADDR) argument 206 #define ASIC_REG_SCSI_SCR(base) ((base) + ASIC_SCSI_SCR) argument 207 #define ASIC_REG_SCSI_SDR0(base) ((base) + ASIC_SCSI_SDR0) argument [all …]
|
/original-bsd/sys/i386/stand/ |
H A D | mem.c | 18 long base; in main() local 21 base = 0; in main() 23 printf("0x%X - ", base); in main() 24 for ( ;; base+= CHK) { in main() 25 if (base >= 0xa0000 && base <= 0xe0000) break; in main() 28 *((long *) base) = base*4 + 0x55555555; in main() 29 if (*((long *) base) != base*4 + 0x55555555) { in main() 36 for ( ;; base+= CHK) { in main() 37 if (base >= 0xa0000 && base <= 0xe0000) continue ; in main() 40 *((long *) base) = base*4 + 0x55555555; in main() [all …]
|
/original-bsd/local/toolchest/ksh/shlib/ |
H A D | utos.c | 61 char *ltos(sint,base) in ltos() argument 63 int base; 68 sp = utos(l,base); 92 char *utos(usint,base) in utos() argument 93 register int base; in utos() 105 if(base < 2 || base > BASEMAX) 108 *--cp = hdigits[(l%base)<<1]; 111 if(base==10) 114 *--cp = hdigits[(base%10)<<1]; 115 if(base /= 10) [all …]
|
/original-bsd/lib/libc/stdlib/ |
H A D | strtoul.c | 24 strtoul(nptr, endptr, base) in strtoul() argument 27 register int base; 46 if ((base == 0 || base == 16) && 50 base = 16; 52 if (base == 0) 53 base = c == '0' ? 8 : 10; 54 cutoff = (unsigned long)ULONG_MAX / (unsigned long)base; 55 cutlim = (unsigned long)ULONG_MAX % (unsigned long)base; 63 if (c >= base) 69 acc *= base;
|
H A D | strtol.c | 25 strtol(nptr, endptr, base) in strtol() argument 28 register int base; 49 if ((base == 0 || base == 16) && 53 base = 16; 55 if (base == 0) 56 base = c == '0' ? 8 : 10; 76 cutlim = cutoff % (unsigned long)base; 77 cutoff /= (unsigned long)base; 85 if (c >= base) 91 acc *= base;
|
H A D | strtoq.c | 26 strtoq(nptr, endptr, base) in strtoq() argument 29 register int base; 54 if ((base == 0 || base == 16) && 58 base = 16; 60 if (base == 0) 61 base = c == '0' ? 8 : 10; 81 qbase = (unsigned)base; 92 if (c >= base)
|
H A D | strtouq.c | 26 strtouq(nptr, endptr, base) in strtouq() argument 29 register int base; 52 if ((base == 0 || base == 16) && 56 base = 16; 58 if (base == 0) 59 base = c == '0' ? 8 : 10; 60 qbase = (unsigned)base; 70 if (c >= base)
|
H A D | heapsort.c | 56 child = base + child_i * size; \ 61 par = base + par_i * size; \ 87 child = base + child_i * size; \ 92 par = base + par_i * size; \ 98 child = base + child_i * size; \ 99 par = base + par_i * size; \ 123 char *base, *k, *p, *t; local 140 base = (char *)vbase - size; 151 COPY(k, base + nmemb * size, cnt, size, tmp1, tmp2); 152 COPY(base + nmemb * size, base + size, cnt, size, tmp1, tmp2);
|
/original-bsd/lib/libcompat/4.3/ |
H A D | lsearch.c | 21 lsearch(key, base, nelp, width, compar) in lsearch() argument 22 char *key, *base; in lsearch() 26 return(linear_base(key, base, nelp, width, compar, 1)); 30 lfind(key, base, nelp, width, compar) in lfind() argument 31 char *key, *base; in lfind() 35 return(linear_base(key, base, nelp, width, compar, 0)); 39 linear_base(key, base, nelp, width, compar, add_flag) in linear_base() argument 40 char *key, *base; in linear_base() 46 end = base + *nelp * width; 47 for (element = base; element < end; element += width)
|
/original-bsd/sys/tahoe/tahoe/ |
H A D | Locore.c | 218 fubyte(base) caddr_t base; { return (0); } in fubyte() argument 220 subyte(base, i) caddr_t base; { return (0); } in subyte() argument 222 fuword(base) caddr_t base; { return (0); } in fuword() argument 224 suword(base, i) caddr_t base; { return (0); } in suword() argument 260 fuibyte(base) caddr_t base; { return (fubyte(base)); } in fuibyte() argument 262 fuiword(base) caddr_t base; { return (fuword(base)); } in fuiword() argument 263 suibyte(base, i) caddr_t base; { return (subyte(base, i)); } in suibyte() argument 264 suiword(base, i) caddr_t base; { return (suword(base, i)); } in suiword() argument 277 bzero(base, count) caddr_t base; unsigned count; { } in bzero() argument 279 blkclr(base, count) caddr_t base; unsigned count; { } in blkclr() argument
|
/original-bsd/sys/luna68k/dev/ |
H A D | dbgprf.c | 26 static char *sprintn __P((u_long num, int base, int *len)); 67 register int ch, base; local 105 base = 10; 110 base = 8; 115 base = 10; 120 base = 16; 121 number: for (p = sprintn(ul, base, NULL); ch = *p--;) 147 sprintn(ul, base, lenp) in sprintn() argument 149 register int base, *lenp; 156 *++p = "0123456789abcdef"[ul % base]; [all …]
|
/original-bsd/usr.bin/hexdump/ |
H A D | odsyntax.c | 136 int base; local 157 base = 0; 166 base = 16; 169 base = 16; 173 if (base == 16) 184 if (base) 186 base = 10; 189 skip = strtol(num, &end, base ? base : 8); 216 if (base == 16) { 219 } else if (base == 10) {
|
/original-bsd/games/boggle/boggle/ |
H A D | prtable.c | 37 prtable(base, num, d_cols, width, prentry, length) in prtable() argument 38 char *base[]; in prtable() 49 maxlen = get_maxlen(base, num, length) + 1; 65 (*prentry)(base, j); 66 loc += (*length)(base, j); 88 get_maxlen(base, num, length) in get_maxlen() argument 89 char *base[]; in get_maxlen() 95 max = (*length)(base, 0); 97 if ((len = (*length)(base, i)) > max)
|
/original-bsd/sys/deprecated/kdb/ |
H A D | kdb_expr.c | 118 register base, d, regptr; in kdbitem() local 177 kdbexpv=kdbvar[base]; in kdbitem() 204 register base,d,frpt; in kdbgetnum() local 208 if ((base = kdbradix) < 0) in kdbgetnum() 209 base = -base; in kdbgetnum() 212 register m = MAXINT/base; in kdbgetnum() 215 kdbexpv = (kdbexpv-m)*base+m*base; in kdbgetnum() 217 kdbexpv *= base; in kdbgetnum() 223 base=16; (void) kdbreadchar(); in kdbgetnum() 227 base=8; (void) kdbreadchar(); in kdbgetnum() [all …]
|
/original-bsd/old/vpr/vtools/ |
H A D | fcvt.c | 40 int base, nb, ncol, nleft, r, i; local 80 base = right(c); 81 if (base == 0) 87 charcode = left(base) & 0777; 90 wordcount = right(base); 91 if (base+wordcount > sws) { 92 printf("Bad range %o-%o > %o glyph %o\n", base, base+wordcount, sws, c); 97 datarowcount = right(base+1); 119 base += 2; 123 lh = left(base); rh = right(base++); [all …]
|
/original-bsd/old/fcvt/ |
H A D | fcvt.c | 31 int base, nb, ncol, nleft, r, i; local 71 base = right(c); 72 if (base == 0) 78 charcode = left(base) & 0777; 81 wordcount = right(base); 82 if (base+wordcount > sws) { 83 printf("Bad range %o-%o > %o glyph %o\n", base, base+wordcount, sws, c); 88 datarowcount = right(base+1); 110 base += 2; 114 lh = left(base); rh = right(base++); [all …]
|
/original-bsd/old/pcc/ccom.vax/VMS/ |
H A D | filter.c | 43 while(--base>=*argv && *base!='/'); /* find last slash */ 44 base++; /* set base */ 45 for(i = 0; i < 16 && base[i] && base[i]!='.';) 46 namebuf[i++]=((base[i] >= 'a' && base[i] <= 'z') 47 ? (base[i] + 'A' -'a') : base[i]); 130 register base; in oyylex() local 196 base = 16; in oyylex() 213 base = 8; in oyylex() 224 copy(val),base = 10; in oyylex() 228 if (base==8) in oyylex() [all …]
|
/original-bsd/sbin/routed/ |
H A D | timer.c | 30 struct rthash *base = hosthash; in timer() local 40 for (rh = base; rh < &base[ROUTEHASHSIZ]; rh++) { in timer() 64 base = nethash; in timer() 83 struct rthash *base = hosthash; in hup() local 88 for (rh = base; rh < &base[ROUTEHASHSIZ]; rh++) { in hup() 95 base = nethash; in hup()
|
/original-bsd/sys/vax/vax/ |
H A D | clock.c | 45 inittodr(base) in inittodr() argument 46 time_t base; in inittodr() 50 if (base < 5*SECYR) { 53 base = 6*SECYR + 186*SECDAY + SECDAY/2; 56 switch ((*cpuops->cpu_clock->clkread)(base)) { 63 time.tv_sec = base; 78 deltat = time.tv_sec - base; 84 time.tv_sec < base ? "lost" : "gained", deltat / SECDAY); 122 vaxstd_clkread(base) in vaxstd_clkread() argument 123 time_t base; in vaxstd_clkread() [all …]
|
/original-bsd/sbin/XNSrouted/ |
H A D | timer.c | 31 struct rthash *base = hosthash; in timer() local 39 for (rh = base; rh < &base[ROUTEHASHSIZ]; rh++) { in timer() 79 base = nethash; in timer() 95 struct rthash *base = hosthash; in hup() local 100 for (rh = base; rh < &base[ROUTEHASHSIZ]; rh++) { in hup() 107 base = nethash; in hup()
|
/original-bsd/lib/libc/net/ |
H A D | inet_network.c | 26 register u_long val, base, n; local 32 val = 0; base = 10; 34 base = 8, cp++; 36 base = 16, cp++; 39 val = (val * base) + (c - '0'); 43 if (base == 16 && isxdigit(c)) {
|
/original-bsd/old/adb/adb.tahoe/ |
H A D | expr.c | 124 REG base, d, regptr; in item() local 184 ELIF (base=varchk(savc)) != -1 in item() 185 THEN expv=var[base]; in item() 209 REG base,d,frpt; in getnum() local 211 IF (base = radix) < 0 THEN base = -base; FI in getnum() 217 m = MAXINT/base; in getnum() 220 expv = (expv-m)*base+m*base; in getnum() 222 expv *= base; in getnum() 227 THEN base=16; readchar(); in getnum() 238 DO real.r *= base; frpt++; in getnum() [all …]
|
/original-bsd/bin/pax/ |
H A D | gen_subs.c | 250 asc_ul(str, len, base) in asc_ul() 253 register int base; 271 if (base == HEX) { 301 ul_asc(val, str, len, base) in ul_asc() 305 register int base; 321 if (base == HEX) { 364 asc_uqd(str, len, base) in asc_uqd() 367 register int base; 385 if (base == HEX) { 419 register int base; [all …]
|
/original-bsd/sys/netiso/ |
H A D | clnp_sprintf.c | 35 register int ch, base; local 71 base = 10; 80 base = 8; 89 base = 10; 98 base = 16; 101 *p++ = "0123456789abcdef"[ul % base]; 102 } while (ul /= base);
|
/original-bsd/usr.bin/f77/libF77/ |
H A D | trapov_.c | 476 register int mode, reg, base; in get_operand_address() local 492 return (anyval *) base; in get_operand_address() 511 base = fetch_byte(); in get_operand_address() 513 return (anyval *) base; in get_operand_address() 516 base = fetch_byte(); in get_operand_address() 521 base = fetch_word(); in get_operand_address() 523 return (anyval *) base; in get_operand_address() 526 base = fetch_word(); in get_operand_address() 531 base = fetch_long(); in get_operand_address() 533 return (anyval *) base; in get_operand_address() [all …]
|