--- libaitcrc/inc/aitcrc.h 2012/07/04 14:53:43 1.5 +++ libaitcrc/inc/aitcrc.h 2012/08/29 09:00:44 1.6 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcrc.h,v 1.5 2012/07/04 14:53:43 misho Exp $ +* $Id: aitcrc.h,v 1.6 2012/08/29 09:00:44 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -171,6 +171,15 @@ inline unsigned int hash_bernstein(const char *csStr, * return: Hash value */ inline unsigned int hash_jenkins(const char *csStr, int nStrLen); +/* + * hash_jenkins32() - Fast Jenkins hash function + * + * @buf = Input buffer + * @len = Length of buffer + * @prevhash = Previous hash, if participate in continuing hash + * return: Hash value + */ +unsigned int hash_jenkins32(const unsigned int *buf, int len, unsigned int prevhash); /* * hash_reddragon() - Compute index hash by Red Dragon *