summaryrefslogtreecommitdiff
path: root/src/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hash.h')
-rw-r--r--src/hash.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/hash.h b/src/hash.h
deleted file mode 100644
index 0fd689b..0000000
--- a/src/hash.h
+++ /dev/null
@@ -1,11 +0,0 @@
-#include <stdint.h>
-
-static uint32_t hash_name(const char *s) {
- unsigned long hash = 5381;
- int c;
-
- while ((c = *s++))
- hash = ((hash << 5) + hash) + c; /* hash * 33 + c */
-
- return hash;
-}