cdb_hash.c (211B)
1 /* ISC license. */ 2 3 #include <stdint.h> 4 5 #include "cdb-internal.h" 6 7 uint32_t cdb_hash (char const *buf, uint32_t len) 8 { 9 uint32_t h = CDB_HASHSTART ; 10 while (len--) h = cdb_hashadd(h, *buf++) ; 11 return h ; 12 }
skalibsMirror/fork of https://skarnet.org/software/skalibs/ | |
git clone https://ccx.te2000.cz/git/skalibs | |
Log | Files | Refs | README | LICENSE |