stasis-aries-wal/lladd/hash.h

12 lines
400 B
C
Raw Normal View History

#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 */