"Fossies" - the Fresh Open Source Software Archive

Member "memcached-1.6.15/hash.h" (21 Feb 2022, 255 Bytes) of package /linux/www/memcached-1.6.15.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "hash.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef HASH_H
    2 #define    HASH_H
    3 
    4 typedef uint32_t (*hash_func)(const void *key, size_t length);
    5 extern hash_func hash;
    6 
    7 enum hashfunc_type {
    8     JENKINS_HASH=0, MURMUR3_HASH, XXH3_HASH
    9 };
   10 
   11 int hash_init(enum hashfunc_type type);
   12 
   13 #endif    /* HASH_H */
   14