diff options
author | Paul Smith <psmith@gnu.org> | 2012-10-28 14:57:49 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2012-10-28 14:57:49 +0000 |
commit | 2efd6b47bf59c3202ccc6218b42ba360136d3789 (patch) | |
tree | 4a6722cc9c448baa6e04205e400d6353ccb59738 /hash.h | |
parent | ca8885d5be16e5ea100d640761a60ab48b3bd8f0 (diff) | |
download | gunmake-2efd6b47bf59c3202ccc6218b42ba360136d3789.tar.gz |
Rearrange elements to reduce struct size on 64bit architectures.
Diffstat (limited to 'hash.h')
-rw-r--r-- | hash.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -41,6 +41,9 @@ typedef void (*hash_map_arg_func_t) __P((void const *item, void *arg)); struct hash_table { void **ht_vec; + hash_func_t ht_hash_1; /* primary hash function */ + hash_func_t ht_hash_2; /* secondary hash function */ + hash_cmp_func_t ht_compare; /* comparison function */ unsigned long ht_size; /* total number of slots (power of 2) */ unsigned long ht_capacity; /* usable slots, limited by loading-factor */ unsigned long ht_fill; /* items in table */ @@ -48,9 +51,6 @@ struct hash_table unsigned long ht_collisions; /* # of failed calls to comparison function */ unsigned long ht_lookups; /* # of queries */ unsigned int ht_rehashes; /* # of times we've expanded table */ - hash_func_t ht_hash_1; /* primary hash function */ - hash_func_t ht_hash_2; /* secondary hash function */ - hash_cmp_func_t ht_compare; /* comparison function */ }; typedef int (*qsort_cmp_t) __P((void const *, void const *)); |