Hash table sizes now must be a power of two (saves a modulus instruction);
authorDavid Given <dg@cowlark.com>
Sat, 17 Dec 2016 09:30:27 +0000 (10:30 +0100)
committerDavid Given <dg@cowlark.com>
Sat, 17 Dec 2016 09:30:27 +0000 (10:30 +0100)
commit30d855c079a1aef97aa348e7e25cd46175bfe1a1
tree30ffa609c3c862e90c2e79f17e0c7e53b5061599
parentd2bf7702e710c054fe2f5f356d7a9d79007fb8cf
Hash table sizes now must be a power of two (saves a modulus instruction);
optimise key comparison (if the two keys are identical, we don't need to call
the comparator).
modules/src/data/hashtable.c
modules/src/data/hashtable.h