| ... | @@ -1179,6 +1179,7 @@ const Poly = struct { | ... | @@ -1179,6 +1179,7 @@ const Poly = struct { |
| 1179 | | 1179 | |
| 1180 | const T = switch (builtin.target.cpu.arch) { | 1180 | const T = switch (builtin.target.cpu.arch) { |
| 1181 | .x86_64, .x86 => u32, // Generates better code on Intel CPUs | 1181 | .x86_64, .x86 => u32, // Generates better code on Intel CPUs |
| | 1182 | .riscv64 => u32, // Work around LLVM miscompiling coefficient extraction with u64 batches https://codeberg.org/ziglang/zig/issues/37128 |
| 1182 | else => u64, // u128 might be faster on some other CPUs. | 1183 | else => u64, // u128 might be faster on some other CPUs. |
| 1183 | }; | 1184 | }; |
| 1184 | | 1185 | |