summaryrefslogtreecommitdiffstats
path: root/src/common.c
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2015-04-03 01:08:23 +0300
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2015-04-03 01:08:23 +0300
commitc8514d9d9ea119457c910d4e3dec7c3f2bca501e (patch)
tree577cd5640c538bc0332144b27ef984e38c7e6f06 /src/common.c
parent67af57710d1fef400f48313bdff325f56e41778e (diff)
replaced simple_hash with the FNV-1a 32bit algorithm again
Diffstat (limited to 'src/common.c')
-rwxr-xr-xsrc/common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common.c b/src/common.c
index 46cb182e4b..0af88898b2 100755
--- a/src/common.c
+++ b/src/common.c
@@ -30,7 +30,7 @@ uint32_t simple_hash(const char *name)
}
*/
-/*
+
// http://isthe.com/chongo/tech/comp/fnv/#FNV-1a
uint32_t simple_hash(const char *name) {
unsigned char *s = (unsigned char *)name;
@@ -49,8 +49,8 @@ uint32_t simple_hash(const char *name) {
// fprintf(stderr, "HASH: %u = %s\n", hval, name);
return hval;
}
-*/
+/*
// http://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_hashing.aspx
// one at a time hash
uint32_t simple_hash(const char *name) {
@@ -71,6 +71,7 @@ uint32_t simple_hash(const char *name) {
return h;
}
+*/
void strreverse(char* begin, char* end)
{