diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-22 23:26:07 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-23 04:20:55 +0100 |
commit | b67f541f130cd4c55da0b74af5fcbb4daeca1937 (patch) | |
tree | 352c8765fbe42b43e575f938230974005537870c /src/shared/MurmurHash3.h | |
parent | 57d0e6b2731ab695d14b7cf496832ba416cc43d3 (diff) |
bus: switch kdbus bloom filter over to SipHash (from MurmurHash3)
Let's try to standardize on a single non-cryptographic hash algorithm,
and for that SipHash appears to be the best answer.
With this change there are two other hash functions left in systemd: an
older version of MurmurHash embedded into libudev for the bloom filters
in udev messages (which is hard to update, given that the we probably
should stay compatible with older versions of the library). And lookup3
in the journal files (which we could replace for new files, but which is
probably not worth the work).
Diffstat (limited to 'src/shared/MurmurHash3.h')
-rw-r--r-- | src/shared/MurmurHash3.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/shared/MurmurHash3.h b/src/shared/MurmurHash3.h deleted file mode 100644 index 07c474eba4..0000000000 --- a/src/shared/MurmurHash3.h +++ /dev/null @@ -1,38 +0,0 @@ -//----------------------------------------------------------------------------- -// MurmurHash3 was written by Austin Appleby, and is placed in the public -// domain. The author hereby disclaims copyright to this source code. - -#ifndef _MURMURHASH3_H_ -#define _MURMURHASH3_H_ - -//----------------------------------------------------------------------------- -// Platform-specific functions and macros - -// Microsoft Visual Studio - -#if defined(_MSC_VER) - -typedef unsigned char uint8_t; -typedef unsigned long uint32_t; -typedef unsigned __int64 uint64_t; - -// Other compilers - -#else // defined(_MSC_VER) - -#include <stdint.h> -#include <sys/types.h> - -#endif // !defined(_MSC_VER) - -//----------------------------------------------------------------------------- - -void MurmurHash3_x86_32 ( const void * key, size_t len, uint32_t seed, void * out ); - -void MurmurHash3_x86_128 ( const void * key, size_t len, uint32_t seed, void * out ); - -void MurmurHash3_x64_128 ( const void * key, size_t len, uint32_t seed, void * out ); - -//----------------------------------------------------------------------------- - -#endif // _MURMURHASH3_H_ |