Skip to content

Commit 4fcc750

Browse files
committed
x86_64: implement more shuffles
1 parent e5c439a commit 4fcc750

File tree

5 files changed

+598
-54
lines changed

5 files changed

+598
-54
lines changed

lib/std/crypto/blake3.zig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ const CompressGeneric = struct {
200200
}
201201
};
202202

203-
const compress = if (builtin.cpu.arch == .x86_64 and
204-
(builtin.zig_backend != .stage2_x86_64 or std.Target.x86.featureSetHas(builtin.cpu.features, .ssse3)))
203+
const compress = if (builtin.cpu.arch == .x86_64)
205204
CompressVectorized.compress
206205
else
207206
CompressGeneric.compress;

lib/std/crypto/salsa20.zig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,7 @@ fn SalsaNonVecImpl(comptime rounds: comptime_int) type {
302302
};
303303
}
304304

305-
const SalsaImpl = if (builtin.cpu.arch == .x86_64 and
306-
(builtin.zig_backend != .stage2_x86_64 or std.Target.x86.featureSetHas(builtin.cpu.features, .ssse3)))
305+
const SalsaImpl = if (builtin.cpu.arch == .x86_64)
307306
SalsaVecImpl
308307
else
309308
SalsaNonVecImpl;

0 commit comments

Comments
 (0)