mirror of
https://github.com/ziglang/zig.git
synced 2026-01-05 21:13:24 +00:00
std.simd: Fix suggestVectorSizeForCpu
This commit is contained in:
parent
cdcb34cdf4
commit
f654e16d06
@ -23,7 +23,9 @@ pub fn suggestVectorSizeForCpu(comptime T: type, cpu: std.Target.Cpu) ?usize {
|
||||
const element_bit_size = std.math.max(8, std.math.ceilPowerOfTwo(T, @bitSizeOf(T)));
|
||||
return @divExact(vector_bit_size, element_bit_size);
|
||||
},
|
||||
else => @compileError("No vector sizes for this CPU architecture have yet been recommended"),
|
||||
else => {
|
||||
return null;
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user