--- a/src/cpu_features.c 2026-04-25 12:12:01.711859890 +0000 +++ b/src/cpu_features.c 2026-04-25 12:11:02.446325252 +0000 @@ -26,7 +26,7 @@ int cpu_supports_avx512f () { return 0; } int cpu_supports_avx512vl () { return 0; } -#else +#elif defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_X64) static inline void cpuid (u32 leaf, u32 subleaf, u32 *eax, u32 *ebx, u32 *ecx, u32 *edx) { __cpuid_count (leaf, subleaf, *eax, *ebx, *ecx, *edx); @@ -140,6 +140,17 @@ return (ebx & (1u << 31)) != 0; } + +#else + +// Fallback for other architectures (PowerPC, MIPS, etc.) +int cpu_supports_sse2 () { return 0; } +int cpu_supports_ssse3 () { return 0; } +int cpu_supports_xop () { return 0; } +int cpu_supports_avx2 () { return 0; } +int cpu_supports_avx512f () { return 0; } +int cpu_supports_avx512vl () { return 0; } + #endif int cpu_chipset_test ()