Make hashtables use a little less space on 64-bit architectures.

svn:r5585
This commit is contained in:
Nick Mathewson 2005-12-14 21:10:06 +00:00
parent b881742d87
commit 7e6a41af93
2 changed files with 3 additions and 3 deletions

View File

@ -438,8 +438,8 @@ smartlist_sort_strings(smartlist_t *sl)
#define DEFINE_MAP_STRUCTS(maptype, keydecl, prefix) \
typedef struct prefix ## entry_t { \
HT_ENTRY(prefix ## entry_t) node; \
keydecl; \
void *val; \
keydecl; \
} prefix ## entry_t; \
struct maptype { \
HT_HEAD(prefix ## impl, prefix ## entry_t) head; \

View File

@ -11,10 +11,10 @@
#define HT_HEAD(name, type) \
struct name { \
/* How long is the hash table? */ \
unsigned hth_table_length; \
/* The hash table itself. */ \
struct type **hth_table; \
/* How long is the hash table? */ \
unsigned hth_table_length; \
/* How many elements does the table contain? */ \
unsigned hth_n_entries; \
/* How many elements will we allow in the table before resizing it? */ \