HASHKIT_FNV1_32(3)
π HASHKIT_FNV1_32 π
okay bestie, welcome to the libmemcached-awesome girlies' corner of the manual, section 3 π this one's all about the hashkit functions and honestly? it's giving "one page, eleven icons, zero notes" π
β¨ NAME β¨
hashkit_fnv1_32 β the libhashkit documentation, fr fr π¦
πΈ SYNOPSIS πΈ
First things first, you gotta pull in the header and link the lib, no cap:
#include <libhashkit-1.0/hashkit.h>
Compile and link with -lhashkit
and here's the whole squad of hash functions, all lined up looking iconic π:
uint32_t hashkit_default(const char *key, size_t key_length)
uint32_t hashkit_fnv1_64(const char *key, size_t key_length)
uint32_t hashkit_fnv1a_64(const char *key, size_t key_length)
uint32_t hashkit_fnv1_32(const char *key, size_t key_length)
uint32_t hashkit_fnv1a_32(const char *key, size_t key_length)
uint32_t hashkit_crc32(const char *key, size_t key_length)
uint32_t hashkit_hsieh(const char *key, size_t key_length)
uint32_t hashkit_murmur(const char *key, size_t key_length)
uint32_t hashkit_murmur3(const char *key, size_t key_length)
uint32_t hashkit_jenkins(const char *key, size_t key_length)
uint32_t hashkit_md5(const char *key, size_t key_length)
π§ DESCRIPTION π§
so what do these do?? literally they take a key and generate hash values from it, using a whole variety of algorithms π you can call them standalone as a little treat, or they'll get used according to whichever algorithm you set with hashkit_set_function() or hashkit_set_distribution_function() β main character energy, they show up either way π
ok important tea tho π« βhashkit_hsieh(),hashkit_murmur()andhashkit_murmur3()are only available if the library is built with the appropriate flag enabled. like, if that flag isn't on, those three are just not invited to the party. periodt.
β RETURN VALUE β
A 32-bit hash value. that's it, that's the whole vibe π₯
π¦ SEE ALSO π¦
go read those next bestie, iykyk π
and that's a wrap!! this page is from libmemcached-awesome, version 1.1, dated Jul 24, 2025 πΈ stay hashing, stay hydrated, mwah π
β¨
π¦ where this page comes from
- fedora 43: libmemcached-awesome-devel 1.1.4-7.fc43 Β· BSD-3-Clause
- fedora 43: libmemcached-awesome-devel 1.1.4-7.fc43 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms