| ... | @@ -23,7 +23,9 @@ pub fn suggestVectorSizeForCpu(comptime T: type, cpu: std.Target.Cpu) ?usize { | ... | @@ -23,7 +23,9 @@ pub fn suggestVectorSizeForCpu(comptime T: type, cpu: std.Target.Cpu) ?usize { |
| 23 | const element_bit_size = std.math.max(8, std.math.ceilPowerOfTwo(T, @bitSizeOf(T))); | 23 | const element_bit_size = std.math.max(8, std.math.ceilPowerOfTwo(T, @bitSizeOf(T))); |
| 24 | return @divExact(vector_bit_size, element_bit_size); | 24 | return @divExact(vector_bit_size, element_bit_size); |
| 25 | }, | 25 | }, |
| 26 | else => @compileError("No vector sizes for this CPU architecture have yet been recommended"), | 26 | else => { |
| | 27 | return null; |
| | 28 | }, |
| 27 | } | 29 | } |
| 28 | } | 30 | } |
| 29 | | 31 | |