We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c16912 commit 5df31f3Copy full SHA for 5df31f3
lib/std/simd.zig
@@ -43,6 +43,8 @@ pub fn suggestVectorSizeForCpu(comptime T: type, comptime cpu: std.Target.Cpu) ?
43
// for multiple processing, but I don't know what's optimal here, if using
44
// the 2048 bits or using just 64 per vector or something in between
45
if (std.Target.sparc.featureSetHasAny(cpu.features, .{ .vis, .vis2, .vis3 })) break :blk 64;
46
+ } else if (cpu.arch.isWasm()) {
47
+ if (std.Target.wasm.featureSetHas(cpu.features, .simd128)) break :blk 128;
48
}
49
return null;
50
};
0 commit comments