home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
historic
/
v941.tgz
/
icon.v941src.tar
/
icon.v941src
/
src
/
icont
/
tglobals.c
< prev
next >
Wrap
C/C++ Source or Header
|
2000-10-03
|
633b
|
25 lines
/*
* tglobals.c - declaration and initialization of icont globals.
*/
#include "../h/gsupport.h"
#include "tproto.h"
#define Global
#define Init(v) = v
#include "tglobals.h" /* define globals */
/*
* Initialize globals that cannot be handled statically.
*/
void initglob(void) {
/*
* Round hash table sizes to next power of two, and set masks for hashing.
*/
lchsize = round2(lchsize); cmask = lchsize - 1;
fhsize = round2(fhsize); fmask = fhsize - 1;
ghsize = round2(ghsize); gmask = ghsize - 1;
ihsize = round2(ihsize); imask = ihsize - 1;
lhsize = round2(lhsize); lmask = lhsize - 1;
}