X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/4769a870917b98723690aa336d12d0656769528b..8328d66ad5de53d630db5b32a155404181733843:/lunaix-os/includes/lib/hash.h diff --git a/lunaix-os/includes/lib/hash.h b/lunaix-os/includes/lib/hash.h index ad5e98b..f98fe28 100644 --- a/lunaix-os/includes/lib/hash.h +++ b/lunaix-os/includes/lib/hash.h @@ -6,7 +6,7 @@ #define HASH_SIZE_BITS 32 uint32_t -strhash_32(unsigned char* str, uint32_t truncate_to); +strhash_32(const char* str, uint32_t truncate_to); /** * @brief Simple generic hash function @@ -18,7 +18,7 @@ strhash_32(unsigned char* str, uint32_t truncate_to); * @return uint32_t */ inline uint32_t -hash_32(uint32_t val, uint32_t truncate_to) +hash_32(const uint32_t val, uint32_t truncate_to) { return (val * 0x61C88647u) >> (HASH_SIZE_BITS - truncate_to); }