aboutsummaryrefslogtreecommitdiff
path: root/libihash/ihash.c
Commit message (Collapse)AuthorAgeFilesLines
* 2001-08-15 Roland McGrath <roland@frob.com>Roland McGrath2001-08-151-13/+18
| | | | | | | | | | | * sizes.c: New file, a list of prime numbers useful for table sizes. * priv.h (_ihash_sizes, _ihash_nsizes): Declare. (_ihash_nextprime): Don't. * ihash.c (ihash_add): Select sizes from the _ihash_sizes array instead of using _ihash_nextprime. * Makefile: Clean up whitespace, reorder all the variable definitions. (SRCS): Remove primes.c, add sizes.c instead. (OBJS): Define dynamically.
* (ihash_create):Miles Bader1997-06-201-1/+3
| | | | Initialize CLEANUP & CLEANUP_ARG fields.
* Include "priv.h".Michael I. Bushnell1996-04-111-0/+1
|
* (ihash_add): New name of nextprime.Michael I. Bushnell1996-04-111-2/+2
|
* (ihash_locp_remove): Get rid of the optimization to use HASH_EMPTY instead ofMiles Bader1995-08-071-18/+3
| | | | | | HASH_DEL when the next position on the chain is empty -- different hash chains may share this cell, and have different next positions, leading to random additional entries sometimes disappearing when deleting something.
* Initial revisionMiles Bader1995-03-311-0/+292