6198522971
linear hash implementation. In particular, I've implemented (sort of) an iterator for linear hash, and (sort of) ported libdfa to linearhash.c I say 'sort of' since this functionality is broken with this commit. On the other hand, CVS should build now, and the tests under lladd will pass. libdfa's new tests don't pass at the moment.
11 lines
400 B
C
11 lines
400 B
C
|
|
#include <lladd/crc32.h>
|
|
|
|
#ifndef __HASH_H
|
|
#define __HASH_H
|
|
/** @todo replace() powl in hash with something more efficient, if hash() becomes a bottleneck. */
|
|
unsigned int max_bucket(unsigned char tableBits, unsigned long nextExtension);
|
|
unsigned int hash(const void * val, long val_length, unsigned char tableBits, unsigned long nextExtension);
|
|
#define twoToThe(x) (1 << (x))
|
|
|
|
#endif /*__HASH_H */
|