std.simd: Fix suggestVectorSizeForCpu

This commit is contained in:
ominitay 2022-03-31 19:13:27 +01:00 committed by Veikka Tuominen
parent cdcb34cdf4
commit f654e16d06

View File

@ -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;
},
}
}