X-Git-Url: http://git.ieval.ro/?p=linux-seccomp.git;a=blobdiff_plain;f=libseccomp%2Fsrc%2Fhash.h;fp=libseccomp%2Fsrc%2Fhash.h;h=efd252f2bdc516de1883e303bc9c4bfa6557b10e;hp=0000000000000000000000000000000000000000;hb=8befd5cc4d2b478c697d81a5ac191083c203d081;hpb=bcf524c10c0ad85fcef711acffc3251bb8472352 diff --git a/libseccomp/src/hash.h b/libseccomp/src/hash.h new file mode 100644 index 0000000..efd252f --- /dev/null +++ b/libseccomp/src/hash.h @@ -0,0 +1,26 @@ +/** + * The "lookup3.c" Hash Implementation from Bob Jenkins + * + * Original Author: Bob Jenkins + * Source: http://burtleburtle.net/bob/c/lookup3.c + */ + +/* + * Original License: + * + * These are functions for producing 32-bit hashes for hash table lookup. + * hashword(), hashlittle(), hashlittle2(), hashbig(), mix(), and final() + * are externally useful functions. Routines to test the hash are included + * if SELF_TEST is defined. You can use this free for any purpose. It's in + * the public domain. It has no warranty. + */ + +#ifndef _HASH_H +#define _HASH_H + +#include + +uint32_t jhash(const void *key, size_t length, uint32_t initval); + +#endif +