diff options
Diffstat (limited to '')
| -rw-r--r-- | ltable.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -52,7 +52,7 @@ | |||
| 52 | #define hashnum(t,n) \ | 52 | #define hashnum(t,n) \ |
| 53 | (node(t, lmod(cast(lu_hash, cast(ls_hash, n)), sizenode(t)))) | 53 | (node(t, lmod(cast(lu_hash, cast(ls_hash, n)), sizenode(t)))) |
| 54 | #define hashstr(t,str) (node(t, lmod((str)->tsv.hash, sizenode(t)))) | 54 | #define hashstr(t,str) (node(t, lmod((str)->tsv.hash, sizenode(t)))) |
| 55 | #define hashboolean(t,p) (node(t, lmod(p, sizenode(t)))) | 55 | #define hashboolean(t,p) (node(t, p)) /* `p' in [0,1] < minimum table size */ |
| 56 | #define hashpointer(t,p) (node(t, lmod(IntPoint(p), sizenode(t)))) | 56 | #define hashpointer(t,p) (node(t, lmod(IntPoint(p), sizenode(t)))) |
| 57 | 57 | ||
| 58 | 58 | ||
| @@ -192,7 +192,7 @@ static void numuse (const Table *t, int *narray, int *nhash) { | |||
| 192 | 192 | ||
| 193 | 193 | ||
| 194 | /* | 194 | /* |
| 195 | ** (log of) minimum size for hash part of a table | 195 | ** (log2 of) minimum size for hash part of a table |
| 196 | */ | 196 | */ |
| 197 | #define MINHASHSIZE 1 | 197 | #define MINHASHSIZE 1 |
| 198 | 198 | ||
