blob: 0e963ea73fca4cb3cbd8c4d768cca64942c53ecc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/*
* 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;
}
|