mpir/yasm/libyasm/phash.h
wbhart c0e157e3b2 Roughly speaking mpir should now build on an AMD64. At the present moment the config.guess doesn't distinguish a Core 2 from an AMD64 and so the same code is probably built on both.
One must build yasm (included in the yasm directory) before building GMP, if building on an x86_64 machine.

Note: make test and make tune do not currently build.
2008-05-26 22:11:40 +00:00

16 lines
687 B
C

/* Modified for use with yasm by Peter Johnson.
* $Id: phash.h 1825 2007-04-22 03:32:46Z peter $
*/
/*
------------------------------------------------------------------------------
By Bob Jenkins, September 1996.
lookupa.h, a hash function for table lookup, same function as lookup.c.
Use this code in any way you wish. Public Domain. It has no warranty.
Source is http://burtleburtle.net/bob/c/lookupa.h
------------------------------------------------------------------------------
*/
unsigned long phash_lookup(const char *k, size_t length,
unsigned long level);
void phash_checksum(const char *k, size_t length, unsigned long *state);