--- libelwix/src/hash.c 2013/01/17 10:05:35 1.1 +++ libelwix/src/hash.c 2014/01/29 14:11:45 1.2.28.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: hash.c,v 1.1 2013/01/17 10:05:35 misho Exp $ +* $Id: hash.c,v 1.2.28.1 2014/01/29 14:11:45 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 +Copyright 2004 - 2014 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -54,7 +54,7 @@ SUCH DAMAGE. * @nVer = Version of algorythm; 0 - original, 1 - AITNET variant * return: Hash value */ -inline u_int +u_int hash_varchar(const char *csStr, int nStrLen, int nVer) { register u_int n, hash = 0; @@ -85,7 +85,7 @@ hash_varchar(const char *csStr, int nStrLen, int nVer) * @nVer = Version of algorythm; 0 - Bernstein, 1 - DJBX33A variant * return: Hash value */ -inline u_int +u_int hash_bernstein(const char *csStr, int nStrLen, int nVer) { register u_int hash = INIT_BERNSTEIN; @@ -110,7 +110,7 @@ hash_bernstein(const char *csStr, int nStrLen, int nVe * @nVer = Version of algorythm; 0 - FNV-1, 1 - FNV-1a (best avalanche) * return: Hash value */ -inline u_int +u_int hash_fnv1(const char *csStr, int nStrLen, int nVer) { register u_int hash = INIT_FNV1; @@ -137,7 +137,7 @@ hash_fnv1(const char *csStr, int nStrLen, int nVer) * @nStrLen = Length of data buffer * return: Hash value */ -inline u_int +u_int hash_jenkins(const char *csStr, int nStrLen) { register u_int hash = 0; @@ -164,7 +164,7 @@ hash_jenkins(const char *csStr, int nStrLen) * @nStrLen = Length of data buffer * return: Hash value */ -inline u_int +u_int hash_reddragon(const char *csStr, int nStrLen) { register u_int g, hash;