| author | |
| committer | |
| log | 2d100ec764cdf3a99f02c6273bd6aab2ca78f2f8 |
| tree | f959b5ed594a2d6f9d59b5b63b606c5d029caeac |
| parent | 97ced1272df0236a01a72deaaf55e895f2bf62b0 |
2 files changed, 2 insertions(+), 2 deletions(-)
lib/std/hash/cityhash.zig+1-1| ... | @@ -16,7 +16,7 @@ fn fetch64(ptr: [*]const u8, offset: usize) u64 { | ... | @@ -16,7 +16,7 @@ fn fetch64(ptr: [*]const u8, offset: usize) u64 { |
| 16 | pub const CityHash32 = struct { | 16 | pub const CityHash32 = struct { |
| 17 | const Self = @This(); | 17 | const Self = @This(); |
| 18 | 18 | ||
| 19 | // Magic numbers for 32-bit hashing. Copied from Murmur3. | 19 | // Magic numbers for 32-bit hashing. Copied from Murmur3. |
| 20 | const c1: u32 = 0xcc9e2d51; | 20 | const c1: u32 = 0xcc9e2d51; |
| 21 | const c2: u32 = 0x1b873593; | 21 | const c2: u32 = 0x1b873593; |
| 22 | 22 |
lib/std/hash/xxhash.zig+1-1| ... | @@ -760,7 +760,7 @@ pub const XxHash3 = struct { | ... | @@ -760,7 +760,7 @@ pub const XxHash3 = struct { |
| 760 | var accumulator_copy = self.accumulator; | 760 | var accumulator_copy = self.accumulator; |
| 761 | var last_block_copy: [block_bytes]u8 = undefined; | 761 | var last_block_copy: [block_bytes]u8 = undefined; |
| 762 | 762 | ||
| 763 | // Digest the last block onthe Accumulator copy. | 763 | // Digest the last block on the Accumulator copy. |
| 764 | return accumulator_copy.digest(self.total_len, last_block: { | 764 | return accumulator_copy.digest(self.total_len, last_block: { |
| 765 | if (self.buffered >= block_bytes) { | 765 | if (self.buffered >= block_bytes) { |
| 766 | const block_count = ((self.buffered - 1) / block_bytes) * block_bytes; | 766 | const block_count = ((self.buffered - 1) / block_bytes) * block_bytes; |