https://github.com/jcash/compiletimehashes
Some constexpr hash functions that lets you do your hashes at compile time
https://github.com/jcash/compiletimehashes
Last synced: about 1 year ago
JSON representation
Some constexpr hash functions that lets you do your hashes at compile time
- Host: GitHub
- URL: https://github.com/jcash/compiletimehashes
- Owner: JCash
- License: mit
- Created: 2016-09-24T07:43:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-24T07:51:20.000Z (over 9 years ago)
- Last Synced: 2025-01-24T12:45:33.120Z (over 1 year ago)
- Language: C++
- Size: 206 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
hashes
======
A set of common hash functions implemented using C++11 constexpr and user string literals (optional)
How to use
==========
For the barebone usage, just drop the include/MurmurHash3c.h into your project.
It contains the
constexpr uint64_t MurmurHash3c_64(const ConstStringMM3& cs, uint64_t seed = 0);
inline void MurmurHash3c_x64_128( const char* key, int len, const uint32_t seed, void* out );
which both make use of the class
class ConstStringMM3;
For the extended use, there is a high(er) level api in "hash.h".
Performance
===========
When tested in the SMHasher framework it was approximately 30%-50% slower.
(Tested on a 64 bit Macbook Pro @ 2.26 Ghz dual core with 2GB ram)
License
=======
The project has a MIT license (MurmurHash3 is public domain)
Links
=====
https://code.google.com/p/smhasher/wiki/MurmurHash