summaryrefslogtreecommitdiff
path: root/volk/lib
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2014-06-27 09:10:01 -0400
committerTom Rondeau <tom@trondeau.com>2014-06-27 09:10:01 -0400
commitf985fbaedcc116fb83224c1d962e309bf28f0af3 (patch)
tree228aafcaf0f1ba25797d1323e97c6c0dddd5d81e /volk/lib
parentdf8695346d527692fc5c55ceaed299f3974fd84c (diff)
parentdf8bd0bc31693a04b0096743d451c0c36cc7b297 (diff)
Merge branch 'maint'
Diffstat (limited to 'volk/lib')
-rw-r--r--volk/lib/CMakeLists.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/volk/lib/CMakeLists.txt b/volk/lib/CMakeLists.txt
index d2e4e62212..e25c5c65c7 100644
--- a/volk/lib/CMakeLists.txt
+++ b/volk/lib/CMakeLists.txt
@@ -205,6 +205,22 @@ if(${HAVE_AVX_CVTPI32_PS})
add_definitions(-DHAVE_AVX_CVTPI32_PS)
endif()
+########################################################################
+# if the CPU is not x86, eliminate all Intel SIMD
+########################################################################
+
+if(NOT CPU_IS_x86)
+ OVERRULE_ARCH(3dnow "Architecture is not x86 or x86_64")
+ OVERRULE_ARCH(mmx "Architecture is not x86 or x86_64")
+ OVERRULE_ARCH(sse "Architecture is not x86 or x86_64")
+ OVERRULE_ARCH(sse2 "Architecture is not x86 or x86_64")
+ OVERRULE_ARCH(sse3 "Architecture is not x86 or x86_64")
+ OVERRULE_ARCH(ssse3 "Architecture is not x86 or x86_64")
+ OVERRULE_ARCH(sse4_a "Architecture is not x86 or x86_64")
+ OVERRULE_ARCH(sse4_1 "Architecture is not x86 or x86_64")
+ OVERRULE_ARCH(sse4_2 "Architecture is not x86 or x86_64")
+ OVERRULE_ARCH(avx "Architecture is not x86 or x86_64")
+endif(NOT CPU_IS_x86)
########################################################################
# implement overruling in the ORC case,