]> mj.ucw.cz Git - libucw.git/blob - lib/hashfunc.h
If have GET_O and GET_P, we should have PUT_O and PUT_P as well.
[libucw.git] / lib / hashfunc.h
1 /*
2  *      Sherlock Library -- Hash Functions
3  *
4  *      (c) 2002 Martin Mares <mj@ucw.cz>
5  */
6
7 #ifndef _SHERLOCK_HASHFUNC_H
8 #define _SHERLOCK_HASHFUNC_H
9
10 uns hash_string(byte *x);
11 uns hash_string_nocase(byte *x);
12 static inline uns hash_int(uns x) { return 6442450967*x; }
13 uns hash_block(byte *x, uns len);
14
15 #endif