Age | Commit message (Collapse) | Author |
|
|
|
add curlies
use assert(0) in place of abort
|
|
much the table grows and shrinks.
(next_prime): Don't assert.
(hash_reset_tuning): New function.
(check_tuning): New function.
(hash_initialize): Accept and use new tuning parameter.
(hash_rehash): Rewrite, updating for tuning.
(hash_insert): Honor tuning semantics.
(hash_delete): Likewise.
From François Pinard.
|
|
(hash_insert): Don't increment n_entries unconditionally --
otherwise, we'd do so even when the insertion failed.
From François Pinard.
|
|
(next_prime): Ansideclify. Add an assertion.
|
|
|
|
span more than a line -- even around multiline simple statements or
single-line simple statements preceded by a comment line.
|
|
(hash_rehash): Rewritten to be easier on the allocator.
From François Pinard.
|
|
Move function to precede first use.
|
|
|
|
|
|
|
|
|
|
use Uli's prime code, not near-prime
(hash_initialize): don't require prime table size as input
(hash_insert_if_absent): When rehashing, choose new size that is 2N+1, not 2N.
|
|
|