hashtable

hash table macros for creating hash table functions, it supports any type key, value, hash
git clone https://noulin.net/git/hashtable.git
Log | Files | Refs | LICENSE

commit 2557f913adbcbaa2759c0f578116795043904dfa
parent 47453e95da039afb276e06787c6a72dc590cc2ea
Author: Remy Noulin <loader2x@gmail.com>
Date:   Fri,  1 Jun 2018 13:35:50 +0200

add ilog2Hashtable prototype in C file to avoid warning

hashtable.c | 2 ++
package.yml | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)

Diffstat:
Mhashtable.c | 2++
Mpackage.yml | 2+-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/hashtable.c b/hashtable.c @@ -1,6 +1,8 @@ #include "libsheepyObject.h" +u32 ilog2Hashtable(u32 value); + u32 ilog2Hashtable(u32 value) { //u32 n = (__builtin_clz(value) ^ 31) + 1; if (!value) return 4; diff --git a/package.yml b/package.yml @@ -1,6 +1,6 @@ --- name: hashtable - version: 0.0.11 + version: 0.0.12 description: "hash table macros for creating hash table functions, it supports any type key, value, hash" bin: ./hashtable.c # with gcc 6.3 (skylake cpu, debian stretch), the performance with O1 is better than with O3