mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Update hash & crypto benchmarks run comment (#9790)
* sync function arguments name with other same functions
This commit is contained in:
parent
cfd5b81850
commit
db181b173f
3 changed files with 6 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
// zig run benchmark.zig --release-fast --zig-lib-dir ..
|
// zig run -O ReleaseFast --zig-lib-dir ../.. benchmark.zig
|
||||||
|
|
||||||
const std = @import("../std.zig");
|
const std = @import("../std.zig");
|
||||||
const builtin = std.builtin;
|
const builtin = std.builtin;
|
||||||
|
|
|
||||||
|
|
@ -398,10 +398,10 @@ pub const Blake3 = struct {
|
||||||
return Blake3.init_internal(context_key_words, DERIVE_KEY_MATERIAL);
|
return Blake3.init_internal(context_key_words, DERIVE_KEY_MATERIAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn hash(in: []const u8, out: []u8, options: Options) void {
|
pub fn hash(b: []const u8, out: []u8, options: Options) void {
|
||||||
var hasher = Blake3.init(options);
|
var d = Blake3.init(options);
|
||||||
hasher.update(in);
|
d.update(b);
|
||||||
hasher.final(out);
|
d.final(out);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn pushCv(self: *Blake3, cv: [8]u32) void {
|
fn pushCv(self: *Blake3, cv: [8]u32) void {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
// zig run benchmark.zig --release-fast --zig-lib-dir ..
|
// zig run -O ReleaseFast --zig-lib-dir ../.. benchmark.zig
|
||||||
|
|
||||||
const builtin = std.builtin;
|
const builtin = std.builtin;
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue