| ... | @@ -135,7 +135,7 @@ pub const Murmur2_64 = struct { | ... | @@ -135,7 +135,7 @@ pub const Murmur2_64 = struct { |
| 135 | return @call(.{ .modifier = .always_inline }, Self.hashUint32WithSeed, .{ v, default_seed }); | 135 | return @call(.{ .modifier = .always_inline }, Self.hashUint32WithSeed, .{ v, default_seed }); |
| 136 | } | 136 | } |
| 137 | | 137 | |
| 138 | pub fn hashUint32WithSeed(v: u32, seed: u32) u64 { | 138 | pub fn hashUint32WithSeed(v: u32, seed: u64) u64 { |
| 139 | const m: u64 = 0xc6a4a7935bd1e995; | 139 | const m: u64 = 0xc6a4a7935bd1e995; |
| 140 | const len: u64 = 4; | 140 | const len: u64 = 4; |
| 141 | var h1: u64 = seed ^ (len *% m); | 141 | var h1: u64 = seed ^ (len *% m); |
| ... | @@ -152,7 +152,7 @@ pub const Murmur2_64 = struct { | ... | @@ -152,7 +152,7 @@ pub const Murmur2_64 = struct { |
| 152 | return @call(.{ .modifier = .always_inline }, Self.hashUint64WithSeed, .{ v, default_seed }); | 152 | return @call(.{ .modifier = .always_inline }, Self.hashUint64WithSeed, .{ v, default_seed }); |
| 153 | } | 153 | } |
| 154 | | 154 | |
| 155 | pub fn hashUint64WithSeed(v: u64, seed: u32) u64 { | 155 | pub fn hashUint64WithSeed(v: u64, seed: u64) u64 { |
| 156 | const m: u64 = 0xc6a4a7935bd1e995; | 156 | const m: u64 = 0xc6a4a7935bd1e995; |
| 157 | const len: u64 = 8; | 157 | const len: u64 = 8; |
| 158 | var h1: u64 = seed ^ (len *% m); | 158 | var h1: u64 = seed ^ (len *% m); |