Home
last modified time | relevance | path

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

/titanic_44/usr/src/cmd/refer/
H A Dinv6.c23 whash(FILE *ft, FILE *fa, FILE *fb, int nhash, int iflong, in whash() argument
38 hpt = (long *)calloc(nhash+1, sizeof (*hpt)); in whash()
40 hfreq = (int *)calloc(nhash, sizeof (*hfreq)); in whash()
71 while (hash < nhash) in whash()
73 fwrite(&nhash, sizeof (nhash), 1, fa); in whash()
75 fwrite(hpt, sizeof (*hpt), nhash, fa); in whash()
76 fwrite(hfreq, sizeof (*hfreq), nhash, fa); in whash()
H A Dglue1.c67 static int nhash = 0; in huntmain() local
163 fread(&nhash, sizeof (nhash), 1, fa); in huntmain()
165 if (nhash > maxhash) { in huntmain()
172 maxhash = nhash; in huntmain()
179 hpt = (long *)zalloc(nhash, sizeof (*hpt)); in huntmain()
191 nhash); in huntmain()
192 fread(hpt, sizeof (*hpt), nhash, fa); in huntmain()
194 hfreq = (int *)zalloc(nhash, sizeof (*hfreq)); in huntmain()
202 nhash); in huntmain()
203 frtbl = fread(hfreq, sizeof (*hfreq), nhash, fa); in huntmain()
[all …]
H A Dhunt1.c67 int falseflg, nhash, nitem, nfound, frtbl, kk; in main() local
177 fread(&nhash, sizeof (nhash), 1, fa); in main()
182 hpt = (long *)calloc(nhash, sizeof (*hpt)); in main()
183 kk = fread(hpt, sizeof (*hpt), nhash, fa); in main()
186 kk, iflong, nhash); in main()
188 assert(kk == nhash); in main()
189 hfreq = (int *)calloc(nhash, sizeof (*hfreq)); in main()
191 frtbl = fread(hfreq, sizeof (*hfreq), nhash, fa); in main()
192 hfrflg = (frtbl == nhash); in main()
205 nfound = doquery(hpt, nhash, fb, nitem, qitem, master); in main()
H A Dinv1.c43 int nhash = 256; in main() local
66 nhash = atoi(argv[1]+2); in main()
120 nhash = recopy(ftb, fb, fopen(nma, "r")); in main()
128 docs = newkeys(fta, stdin, fc, nhash, fd, &iflong); in main()
152 whash(fta, fa, fb, nhash, iflong, &keys, &hashes); in main()
H A Dinv2.c24 newkeys(FILE *outf, FILE *inf, FILE *recf, int nhash, FILE *fd, int *iflong) in newkeys() argument
71 fprintf(outf, "%04d %06ld\n", hash(keyv[i])%nhash, lp); in newkeys()
75 keyv[i], hash(keyv[i])%nhash); in newkeys()
89 hash(key)%nhash, lp); in newkeys()
H A Dinv5.c23 recopy(FILE *ft, FILE *fb, FILE *fa, int nhash) in recopy() argument
46 if (n != nhash) in recopy()
H A Dhunt2.c37 doquery(long *hpt, int nhash, FILE *fb, int nitem, in doquery() argument
78 hh[i] = hash(qitem[i])%nhash; in doquery()
84 fprintf(stderr, "past that loop nhash %d hpt is %lo\n", nhash, hpt); in doquery()
/titanic_44/usr/src/cmd/troff/
H A Dn4.c58 struct numtab *nhash[128]; /* 128 == the 0177 on line above */ variable
234 nhash[i] = 0; in nrehash()
241 p->link = nhash[i]; in nrehash()
242 nhash[i] = p; in nrehash()
257 lp = &nhash[NHASH(rp->r)];
280 for (p = nhash[h]; p; p = p->link)
286 p->link = nhash[h];
287 nhash[h] = p;
307 for (p = nhash[NHASH(i)]; p; p = p->link)
/titanic_44/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Ddoupdate.c84 static unsigned int *nhash = NULL; variable
86 static unsigned long *nhash = NULL; variable
151 new = malloc(lines * sizeof (*nhash)); in __m_doupdate_init()
154 if (nhash != NULL) in __m_doupdate_init()
155 free(nhash); in __m_doupdate_init()
157 nhash = (unsigned int *) new; in __m_doupdate_init()
159 nhash = (unsigned long *) new; in __m_doupdate_init()
830 if (ohash[or] != nhash[nr]) { in cost()
945 __m_cc_hash(newscr, nhash, i); in complex()
951 nhash[i] = __m_screen->_hash[i]; in complex()
[all …]
/titanic_44/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()
/titanic_44/usr/src/lib/libpkg/
H A DMakefile.com35 mappath.o ncgrpw.o nhash.o \
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dif.c102 static uint_t nhash(const void *, uint_t);
133 NULL, nhash, offsetof(struct interface, int_nhash),
156 nhash(const void *arg, size_t voffs) in nhash() function
/titanic_44/usr/src/cmd/sgs/elfdump/common/
H A Delfdump.c3915 ulong_t nbkt, nhash; in hash_entry() local
3941 nhash = elf_hash(symname); in hash_entry()
3942 nbkt = nhash % bkts; in hash_entry()
/titanic_44/
H A D.gitignore3863 usr/src/lib/libpkg/common/nhash.i