mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
hashset.hpp
This commit is contained in:
parent
acdb8746b8
commit
baaa84bbd2
1 changed files with 2 additions and 7 deletions
|
|
@ -29,14 +29,9 @@
|
|||
static
|
||||
inline
|
||||
uint64_t
|
||||
vt_hash_const_string(const char *key_)
|
||||
vt_hash_uint64(const uint64_t hash_)
|
||||
{
|
||||
uint64_t hash = 0xcbf29ce484222325ull;
|
||||
|
||||
while(*key_)
|
||||
hash = (((const unsigned char)*key_++ ^ hash) * 0x100000001b3ull);
|
||||
|
||||
return hash;
|
||||
return hash_;
|
||||
}
|
||||
|
||||
static
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue