You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
838 B
40 lines
838 B
From 48f15b192920c283285276c01cf71331314d66a2 Mon Sep 17 00:00:00 2001
|
|
From: Nicolas Chauvet <kwizart@gmail.com>
|
|
Date: Sat, 7 Apr 2018 18:00:25 +0200
|
|
Subject: [PATCH 09/11] Avoid x86cpudetection code when not relevant
|
|
|
|
---
|
|
feature/src/common/cpu.c | 10 +++++++++-
|
|
1 file changed, 9 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/feature/src/common/cpu.c b/feature/src/common/cpu.c
|
|
index 4befea2..165488a 100644
|
|
--- a/feature/src/common/cpu.c
|
|
+++ b/feature/src/common/cpu.c
|
|
@@ -16,9 +16,10 @@
|
|
*
|
|
*/
|
|
|
|
-#include "cpudetect.h"
|
|
#include "cpu.h"
|
|
|
|
+#if defined(__i386__) || defined(__x86_64)
|
|
+#include "cpudetect.h"
|
|
|
|
enum vmaf_cpu cpu_autodetect()
|
|
{
|
|
@@ -31,3 +32,10 @@ enum vmaf_cpu cpu_autodetect()
|
|
else
|
|
return VMAF_CPU_NONE;
|
|
}
|
|
+
|
|
+#else
|
|
+enum vmaf_cpu cpu_autodetect()
|
|
+{
|
|
+ return VMAF_CPU_NONE;
|
|
+}
|
|
+#endif
|
|
--
|
|
2.17.1
|
|
|