This adds a condition that was missed in b1ee2af8432e2720009df92f4ee49d98b05dc2ce, fixing compilation on toolchains that don't support SVE.
Unified · Split
| @@ -165,7 +165,7 @@ int main(int argc, char **argv) · 164 unmodified lines | |||
| 165 | print_cpu_flags(cpu_flags_raw, "raw"); | 165 | print_cpu_flags(cpu_flags_raw, "raw"); |
| 166 | print_cpu_flags(cpu_flags_eff, "effective"); | 166 | print_cpu_flags(cpu_flags_eff, "effective"); |
| 167 | printf("threads = %s (cpu_count = %d)\n", threads, cpu_count); | 167 | printf("threads = %s (cpu_count = %d)\n", threads, cpu_count); |
| 168 | #if ARCH_AARCH64 | 168 | #if ARCH_AARCH64 && HAVE_SVE |
| 169 | if (cpu_flags_raw & AV_CPU_FLAG_SVE) | 169 | if (cpu_flags_raw & AV_CPU_FLAG_SVE) |
| 170 | printf("sve_vector_length = %d\n", 8 * ff_aarch64_sve_length()); | 170 | printf("sve_vector_length = %d\n", 8 * ff_aarch64_sve_length()); |
| 171 | #endif | 171 | #endif |