rapidhashNano hash function.
Declared in <folly/external/rapidhash/rapidhash.h>
constexpr
uint64_t
rapidhashNano(
char const* key,
size_t len) noexcept;
Designed for mobile and embedded applications, where keeping a small code size is a top priority. Clang-18+ compiles it to less than 100 instructions without stack usage, both on x86-64 and aarch64. The fastest for sizes up to 48 bytes, but may be considerably slower for larger inputs.
Calls rapidhashNano_with_seed using the provided parameters and the default seed.
A 64-bit hash.
| Name | Description |
|---|---|
| key | Buffer to be hashed. |
| len | Length of key, in bytes. |