Skip to content

A constexpr and consteval implementation of Google's cityhash.

License

Notifications You must be signed in to change notification settings

fschoenberger/constexprhash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

constexprhash

Header-only constexpr and consteval implementations of common non-cryptographic hash functions.

Google's cityhash

Right now, this library only includes Google's Cityhash. If you study the code, you can quickly see that it is virtually the same compared to Google's.

The code is written for C++23 because it uses std::byteswap.

This is first and foremost a personal library, and some stuff in there is really quick-and-dirty.

Future Work

  • Convert to module instead of header
  • Add consteval overloads
  • Clean up visibility and make only the right functions visible to outside callers
  • Clean up tests

About

A constexpr and consteval implementation of Google's cityhash.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published