| author | |
| committer | |
| log | 69129c2e932bd51dff02578e67ea79799380a3cc |
| tree | 210dc16290012d0aafddcc246562c3ecfa95d6f8 |
| parent | 9684c99dd37ff987114824b2af17b6160b908b79 |
2 files changed, 3 insertions(+), 1 deletions(-)
CMakeLists.txt+2| ... | @@ -523,6 +523,8 @@ set(ZIG_STD_FILES | ... | @@ -523,6 +523,8 @@ set(ZIG_STD_FILES |
| 523 | "hash/crc.zig" | 523 | "hash/crc.zig" |
| 524 | "hash/fnv.zig" | 524 | "hash/fnv.zig" |
| 525 | "hash/siphash.zig" | 525 | "hash/siphash.zig" |
| 526 | "hash/murmur.zig" | ||
| 527 | "hash/cityhash.zig" | ||
| 526 | "hash_map.zig" | 528 | "hash_map.zig" |
| 527 | "heap.zig" | 529 | "heap.zig" |
| 528 | "heap/logging_allocator.zig" | 530 | "heap/logging_allocator.zig" |
std/hash/cityhash.zig+1-1| ... | @@ -217,7 +217,7 @@ pub const CityHash64 = struct { | ... | @@ -217,7 +217,7 @@ pub const CityHash64 = struct { |
| 217 | const len: u64 = @truncate(u64, str.len); | 217 | const len: u64 = @truncate(u64, str.len); |
| 218 | if (len >= 8) { | 218 | if (len >= 8) { |
| 219 | const mul: u64 = k2 +% len *% 2; | 219 | const mul: u64 = k2 +% len *% 2; |
| 220 | const a: u64 = fetch64(str.ptr) + k2; | 220 | const a: u64 = fetch64(str.ptr) +% k2; |
| 221 | const b: u64 = fetch64(str.ptr + str.len - 8); | 221 | const b: u64 = fetch64(str.ptr + str.len - 8); |
| 222 | const c: u64 = rotr64(b, 37) *% mul +% a; | 222 | const c: u64 = rotr64(b, 37) *% mul +% a; |
| 223 | const d: u64 = (rotr64(a, 25) +% b) *% mul; | 223 | const d: u64 = (rotr64(a, 25) +% b) *% mul; |