Esc

Meow_Portable

moduleextensionexperimentalSource
  • macOS: Everything works on macOS
  • Linux: Everything works on Linux
  • Windows: Everything works on Windows
  • Wasm: Everything works on Wasm
·since 0.36.1

#import "Extensions/Meow_Portable";

Portable byte-oriented Meow hash for targets without AES-NI.

Procedures#

hash_bytesexperimentalsince 0.36.1Source
(bytes: [] u8, seed: [128] u8 = Meow.MeowDefaultSeed) -> [2] u64

Hashes bytes with Meow 0.5, returning the low and high little-endian 64-bit lanes. This scalar implementation works without AES-NI; it is slower than MeowHash.

digest := hash_bytes(cast([] u8) "abc");
assert(digest[0] == 0x19f773ec430acc3b);
assert(digest[1] == 0x5f6d236b424c9ab4);
↗