diff --git a/libavcodec/mathops.h b/libavcodec/mathops.h
index 1a05787806b8c5cdc33be5e34e01fe13ca3eca22..1477ba652bf30287b7fdfea3ad0bb0c8d5b1fe16 100644
--- a/libavcodec/mathops.h
+++ b/libavcodec/mathops.h
@@ -24,14 +24,14 @@
 
 #include "libavutil/common.h"
 
-#if   ARCH_X86
-#   include "x86/mathops.h"
-#elif ARCH_ARM
+#if   ARCH_ARM
 #   include "arm/mathops.h"
-#elif ARCH_PPC
-#   include "ppc/mathops.h"
 #elif ARCH_BFIN
 #   include "bfin/mathops.h"
+#elif ARCH_PPC
+#   include "ppc/mathops.h"
+#elif ARCH_X86
+#   include "x86/mathops.h"
 #endif
 
 /* generic implementation */