Home
last modified time | relevance | path

Searched refs:nhash (Results 1 – 16 of 16) sorted by relevance

/illumos-gate/usr/src/cmd/refer/
H A Dinv6.c21 whash(FILE *ft, FILE *fa, FILE *fb, int nhash, int iflong, in whash() argument
36 hpt = (long *)calloc(nhash+1, sizeof (*hpt)); in whash()
38 hfreq = (int *)calloc(nhash, sizeof (*hfreq)); in whash()
69 while (hash < nhash) in whash()
71 fwrite(&nhash, sizeof (nhash), 1, fa); in whash()
73 fwrite(hpt, sizeof (*hpt), nhash, fa); in whash()
74 fwrite(hfreq, sizeof (*hfreq), nhash, fa); in whash()
H A Dglue1.c65 static int nhash = 0; in huntmain() local
161 fread(&nhash, sizeof (nhash), 1, fa); in huntmain()
163 if (nhash > maxhash) { in huntmain()
170 maxhash = nhash; in huntmain()
177 hpt = (long *)zalloc(nhash, sizeof (*hpt)); in huntmain()
189 nhash); in huntmain()
190 fread(hpt, sizeof (*hpt), nhash, fa); in huntmain()
192 hfreq = (int *)zalloc(nhash, sizeof (*hfreq)); in huntmain()
200 nhash); in huntmain()
201 frtbl = fread(hfreq, sizeof (*hfreq), nhash, fa); in huntmain()
[all …]
H A Dhunt1.c65 int falseflg, nhash, nitem, nfound, frtbl, kk; in main() local
175 fread(&nhash, sizeof (nhash), 1, fa); in main()
180 hpt = (long *)calloc(nhash, sizeof (*hpt)); in main()
181 kk = fread(hpt, sizeof (*hpt), nhash, fa); in main()
184 kk, iflong, nhash); in main()
186 assert(kk == nhash); in main()
187 hfreq = (int *)calloc(nhash, sizeof (*hfreq)); in main()
189 frtbl = fread(hfreq, sizeof (*hfreq), nhash, fa); in main()
190 hfrflg = (frtbl == nhash); in main()
203 nfound = doquery(hpt, nhash, fb, nitem, qitem, master); in main()
H A Dinv1.c41 int nhash = 256; in main() local
64 nhash = atoi(argv[1]+2); in main()
118 nhash = recopy(ftb, fb, fopen(nma, "r")); in main()
126 docs = newkeys(fta, stdin, fc, nhash, fd, &iflong); in main()
150 whash(fta, fa, fb, nhash, iflong, &keys, &hashes); in main()
H A Dinv2.c22 newkeys(FILE *outf, FILE *inf, FILE *recf, int nhash, FILE *fd, int *iflong) in newkeys() argument
69 fprintf(outf, "%04d %06ld\n", hash(keyv[i])%nhash, lp); in newkeys()
73 keyv[i], hash(keyv[i])%nhash); in newkeys()
87 hash(key)%nhash, lp); in newkeys()
H A Dinv5.c21 recopy(FILE *ft, FILE *fb, FILE *fa, int nhash) in recopy() argument
44 if (n != nhash) in recopy()
H A Dhunt2.c35 doquery(long *hpt, int nhash, FILE *fb, int nitem, in doquery() argument
76 hh[i] = hash(qitem[i])%nhash; in doquery()
82 fprintf(stderr, "past that loop nhash %d hpt is %lo\n", nhash, hpt); in doquery()
/illumos-gate/usr/src/cmd/troff/
H A Dn4.c56 struct numtab *nhash[128]; /* 128 == the 0177 on line above */ variable
230 nhash[i] = 0; in nrehash()
237 p->link = nhash[i]; in nrehash()
238 nhash[i] = p; in nrehash()
253 lp = &nhash[NHASH(rp->r)];
276 for (p = nhash[h]; p; p = p->link)
282 p->link = nhash[h];
283 nhash[h] = p;
303 for (p = nhash[NHASH(i)]; p; p = p->link)
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Ddoupdate.c82 static unsigned int *nhash = NULL; variable
84 static unsigned long *nhash = NULL; variable
149 new = malloc(lines * sizeof (*nhash)); in __m_doupdate_init()
152 if (nhash != NULL) in __m_doupdate_init()
153 free(nhash); in __m_doupdate_init()
155 nhash = (unsigned int *) new; in __m_doupdate_init()
157 nhash = (unsigned long *) new; in __m_doupdate_init()
828 if (ohash[or] != nhash[nr]) { in cost()
943 __m_cc_hash(newscr, nhash, i); in complex()
949 nhash[i] = __m_screen->_hash[i]; in complex()
[all …]
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Ddoupdate.c86 static unsigned long *nhash = (unsigned long *) 0; variable
149 new = m_malloc(lines * sizeof *nhash); in __m_doupdate_init()
152 if (nhash != (unsigned long *) 0) in __m_doupdate_init()
153 free(nhash); in __m_doupdate_init()
154 nhash = (unsigned long *) new; in __m_doupdate_init()
693 if (ohash[or] != nhash[nr]
814 __m_cc_hash(newscr, nhash, i); in complex()
820 nhash[i] = __m_screen->_hash[i]; in complex()
857 __m_screen->_hash[i] = nhash[i]; in complex()
887 __m_cc_hash(newscr, nhash, row); in simple()
/illumos-gate/usr/src/lib/libpkg/
H A DMakefile.com39 mappath.o ncgrpw.o nhash.o \
/illumos-gate/usr/src/uts/common/io/cxgbe/firmware/
H A Dt4fw_cfg.txt376 nhash = 12288 # number of hash region entries
400 nhash = 2048
421 nhash = 2048
H A Dt5fw_cfg.txt417 nhash = 12288 # number of hash region entries
442 nhash = 2048
464 nhash = 2048
H A Dt6fw_cfg.txt431 nhash = 12288 # number of hash region entries
459 nhash = 2048
482 nhash = 2048
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dif.c102 static uint_t nhash(const void *, size_t);
133 NULL, nhash, offsetof(struct interface, int_nhash),
156 nhash(const void *arg, size_t voffs) in nhash() function
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Delfdump.c4020 ulong_t nbkt, nhash; in hash_entry() local
4046 nhash = elf_hash(symname); in hash_entry()
4047 nbkt = nhash % bkts; in hash_entry()