| ... | @@ -78,9 +78,12 @@ fn SipHashStateless(comptime T: type, comptime c_rounds: usize, comptime d_round | ... | @@ -78,9 +78,12 @@ fn SipHashStateless(comptime T: type, comptime c_rounds: usize, comptime d_round |
| 78 | pub fn update(self: *Self, b: []const u8) void { | 78 | pub fn update(self: *Self, b: []const u8) void { |
| 79 | std.debug.assert(b.len % 8 == 0); | 79 | std.debug.assert(b.len % 8 == 0); |
| 80 | | 80 | |
| | 81 | const inl = std.builtin.CallOptions{ .modifier = .always_inline }; |
| | 82 | |
| 81 | var off: usize = 0; | 83 | var off: usize = 0; |
| 82 | while (off < b.len) : (off += 8) { | 84 | while (off < b.len) : (off += 8) { |
| 83 | @call(.{ .modifier = .always_inline }, self.round, .{b[off..][0..8].*}); | 85 | const blob = b[off..][0..8].*; |
| | 86 | @call(inl, round, .{ self, blob }); |
| 84 | } | 87 | } |
| 85 | | 88 | |
| 86 | self.msg_len +%= @truncate(u8, b.len); | 89 | self.msg_len +%= @truncate(u8, b.len); |