diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-11-03 14:25:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-03 14:25:30 +0100 |
| commit | 2f003f39b28176f08de51271eb66b5f3a54c7aae (patch) | |
| tree | 8aa5be07f5749b49a2103bda726771473f29bbbd /lib/std/simd.zig | |
| parent | 947b7195bf4628cc4658fec9e2f5b30a1318132b (diff) | |
| parent | 621487d5abcf9006b3e38f96c49a533c1835e7a3 (diff) | |
| download | zig-2f003f39b28176f08de51271eb66b5f3a54c7aae.tar.gz zig-2f003f39b28176f08de51271eb66b5f3a54c7aae.zip | |
Merge pull request #21599 from alexrp/thumb-porting
Diffstat (limited to 'lib/std/simd.zig')
| -rw-r--r-- | lib/std/simd.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/simd.zig b/lib/std/simd.zig index c570c36615..dc2686f460 100644 --- a/lib/std/simd.zig +++ b/lib/std/simd.zig @@ -18,7 +18,7 @@ pub fn suggestVectorLengthForCpu(comptime T: type, comptime cpu: std.Target.Cpu) if (std.Target.x86.featureSetHasAny(cpu.features, .{ .prefer_256_bit, .avx2 }) and !std.Target.x86.featureSetHas(cpu.features, .prefer_128_bit)) break :blk 256; if (std.Target.x86.featureSetHas(cpu.features, .sse)) break :blk 128; if (std.Target.x86.featureSetHasAny(cpu.features, .{ .mmx, .@"3dnow" })) break :blk 64; - } else if (cpu.arch.isArmOrThumb()) { + } else if (cpu.arch.isArm()) { if (std.Target.arm.featureSetHas(cpu.features, .neon)) break :blk 128; } else if (cpu.arch.isAARCH64()) { // SVE allows up to 2048 bits in the specification, as of 2022 the most powerful machine has implemented 512-bit |
