diff options
| author | dweiller <4678790+dweiller@users.noreplay.github.com> | 2023-01-21 02:49:14 +1100 |
|---|---|---|
| committer | dweiller <4678790+dweiller@users.noreplay.github.com> | 2023-02-20 09:09:05 +1100 |
| commit | 19984d8751894608dc3cd2271c8e2e40c476d5df (patch) | |
| tree | 7bf3bba9d26f94c43e15b3baebc507fd8e73e6a9 /lib/std/hash.zig | |
| parent | 476bdc8b0b02cbd09f6a856aa7dc548dea565109 (diff) | |
| download | zig-19984d8751894608dc3cd2271c8e2e40c476d5df.tar.gz zig-19984d8751894608dc3cd2271c8e2e40c476d5df.zip | |
std.hash: add XxHash64 and XxHash32
Diffstat (limited to 'lib/std/hash.zig')
| -rw-r--r-- | lib/std/hash.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/std/hash.zig b/lib/std/hash.zig index 2680a8e263..8e92b4c9de 100644 --- a/lib/std/hash.zig +++ b/lib/std/hash.zig @@ -32,6 +32,10 @@ pub const CityHash64 = cityhash.CityHash64; const wyhash = @import("hash/wyhash.zig"); pub const Wyhash = wyhash.Wyhash; +const xxhash = @import("hash/xxhash.zig"); +pub const XxHash64 = xxhash.XxHash64; +pub const XxHash32 = xxhash.XxHash32; + test "hash" { _ = adler; _ = auto_hash; @@ -40,4 +44,5 @@ test "hash" { _ = murmur; _ = cityhash; _ = wyhash; + _ = xxhash; } |
