mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 14:20:33 -04:00
Changes: http://www.vapoursynth.com/2018/07/r44-speeding-up-slightly/ Changes: https://github.com/vapoursynth/vapoursynth/blob/R44/ChangeLog
33 lines
878 B
Text
33 lines
878 B
Text
--- src/core/cpufeatures.c.orig 2018-07-13 15:12:57 UTC
|
|
+++ src/core/cpufeatures.c
|
|
@@ -69,7 +69,7 @@ void getCPUFeatures(CPUFeatures *cpuFeatures) {
|
|
}
|
|
}
|
|
}
|
|
-#elif defined(VS_TARGET_OS_LINUX)
|
|
+#elif defined(VS_TARGET_OS_LINUX) && defined(__linux__)
|
|
#include <sys/auxv.h>
|
|
|
|
void getCPUFeatures(CPUFeatures *cpuFeatures) {
|
|
@@ -98,5 +98,9 @@ void getCPUFeatures(CPUFeatures *cpuFeatures) {
|
|
#endif
|
|
}
|
|
#else
|
|
-#warning "Do not know how to get CPU features."
|
|
+void getCPUFeatures(CPUFeatures *cpuFeatures) {
|
|
+ memset(cpuFeatures, 0, sizeof(CPUFeatures));
|
|
+
|
|
+ cpuFeatures->can_run_vs = 1;
|
|
+}
|
|
#endif
|
|
--- src/core/cpufeatures.h.orig 2018-07-13 15:12:57 UTC
|
|
+++ src/core/cpufeatures.h
|
|
@@ -59,8 +59,6 @@ typedef struct CPUFeatures {
|
|
char efp_double;
|
|
char dfp;
|
|
char vsx;
|
|
-#else
|
|
-#warning "No VS_TARGET_CPU_* defined/handled!"
|
|
#endif
|
|
} CPUFeatures;
|
|
|