phash.h 701 B

12345678910111213141516171819
  1. /* Modified for use with yasm by Peter Johnson. */
  2. /*
  3. ------------------------------------------------------------------------------
  4. By Bob Jenkins, September 1996.
  5. lookupa.h, a hash function for table lookup, same function as lookup.c.
  6. Use this code in any way you wish. Public Domain. It has no warranty.
  7. Source is http://burtleburtle.net/bob/c/lookupa.h
  8. ------------------------------------------------------------------------------
  9. */
  10. #ifndef YASM_LIB_DECL
  11. #define YASM_LIB_DECL
  12. #endif
  13. YASM_LIB_DECL
  14. unsigned long phash_lookup(const char *k, size_t length,
  15. unsigned long level);
  16. YASM_LIB_DECL
  17. void phash_checksum(const char *k, size_t length, unsigned long *state);