diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-09-26 01:54:45 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-26 01:54:45 -0400 |
| commit | 68bb3945708c43109c48bda3664176307d45b62c (patch) | |
| tree | afb9731e10cef9d192560b52cd9ae2cf179775c4 /lib/std/hash.zig | |
| parent | 6128bc728d1e1024a178c16c2149f5b1a167a013 (diff) | |
| parent | 4637e8f9699af9c3c6cf4df50ef5bb67c7a318a4 (diff) | |
| download | zig-68bb3945708c43109c48bda3664176307d45b62c.tar.gz zig-68bb3945708c43109c48bda3664176307d45b62c.zip | |
Merge pull request #3315 from ziglang/mv-std-lib
Move std/ to lib/std/
Diffstat (limited to 'lib/std/hash.zig')
| -rw-r--r-- | lib/std/hash.zig | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/std/hash.zig b/lib/std/hash.zig new file mode 100644 index 0000000000..ab3a0ea8f3 --- /dev/null +++ b/lib/std/hash.zig @@ -0,0 +1,42 @@ +const adler = @import("hash/adler.zig"); +pub const Adler32 = adler.Adler32; + +const auto_hash = @import("hash/auto_hash.zig"); +pub const autoHash = auto_hash.autoHash; + +// pub for polynomials + generic crc32 construction +pub const crc = @import("hash/crc.zig"); +pub const Crc32 = crc.Crc32; + +const fnv = @import("hash/fnv.zig"); +pub const Fnv1a_32 = fnv.Fnv1a_32; +pub const Fnv1a_64 = fnv.Fnv1a_64; +pub const Fnv1a_128 = fnv.Fnv1a_128; + +const siphash = @import("hash/siphash.zig"); +pub const SipHash64 = siphash.SipHash64; +pub const SipHash128 = siphash.SipHash128; + +pub const murmur = @import("hash/murmur.zig"); +pub const Murmur2_32 = murmur.Murmur2_32; + +pub const Murmur2_64 = murmur.Murmur2_64; +pub const Murmur3_32 = murmur.Murmur3_32; + +pub const cityhash = @import("hash/cityhash.zig"); +pub const CityHash32 = cityhash.CityHash32; +pub const CityHash64 = cityhash.CityHash64; + +const wyhash = @import("hash/wyhash.zig"); +pub const Wyhash = wyhash.Wyhash; + +test "hash" { + _ = @import("hash/adler.zig"); + _ = @import("hash/auto_hash.zig"); + _ = @import("hash/crc.zig"); + _ = @import("hash/fnv.zig"); + _ = @import("hash/siphash.zig"); + _ = @import("hash/murmur.zig"); + _ = @import("hash/cityhash.zig"); + _ = @import("hash/wyhash.zig"); +} |
