Commit 16fa255f48
Changed files (2)
std
std/hash/siphash.zig
@@ -152,8 +152,8 @@ fn SipHash(comptime T: type, comptime c_rounds: usize, comptime d_rounds: usize)
pub fn hash(key: []const u8, input: []const u8) T {
var c = Self.init(key);
- c.update(input);
- return c.final();
+ @inlineCall(c.update, input);
+ return @inlineCall(c.final);
}
};
}
std/hash/wyhash.zig
@@ -116,8 +116,8 @@ pub const Wyhash = struct {
pub fn hash(seed: u64, input: []const u8) u64 {
var c = Wyhash.init(seed);
- c.update(input);
- return c.final();
+ @inlineCall(c.update, input);
+ return @inlineCall(c.final);
}
};