authorgravatar for jpk68@tutanota.comjpk68 <jpk68@tutanota.com> 2026-06-20 14:56:13-04:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-04 16:11:48+02:00
log2d100ec764cdf3a99f02c6273bd6aab2ca78f2f8
treef959b5ed594a2d6f9d59b5b63b606c5d029caeac
parent97ced1272df0236a01a72deaaf55e895f2bf62b0

std.hash: fix inconsistent spacing


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 {
16pub const CityHash32 = struct {16pub const CityHash32 = struct {
17 const Self = @This();17 const Self = @This();
1818
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;
2222
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;
762762
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;