Logo Search packages:      
Sourcecode: albert version File versions

lookupa.h

/*
------------------------------------------------------------------------------
By Bob Jenkins, September 1996
lookupa.h, a hash function for table lookup, same function as lookup.c.
You may use this code in any way you wish.  It has no warranty.
Source is http://burtleburtle.net/bob/c/lookupa.h
------------------------------------------------------------------------------
*/

#ifndef STANDARD
#include "standard.h"
#endif

#ifndef LOOKUPA
#define LOOKUPA

#define CHECKSTATE 8
#define hashsize(n) ((ub4)1<<(n))
#define hashmask(n) (hashsize(n)-1)

ub4  lookup(/*_ ub1 *k, ub4 length, ub4 level _*/);
void checksum(/*_ ub1 *k, ub4 length, ub4 *state _*/);

#endif /* LOOKUPA */

Generated by  Doxygen 1.6.0   Back to index