diff options
author | Tom Rondeau <tom@trondeau.com> | 2014-06-27 09:10:01 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2014-06-27 09:10:01 -0400 |
commit | f985fbaedcc116fb83224c1d962e309bf28f0af3 (patch) | |
tree | 228aafcaf0f1ba25797d1323e97c6c0dddd5d81e /volk/lib | |
parent | df8695346d527692fc5c55ceaed299f3974fd84c (diff) | |
parent | df8bd0bc31693a04b0096743d451c0c36cc7b297 (diff) |
Merge branch 'maint'
Diffstat (limited to 'volk/lib')
-rw-r--r-- | volk/lib/CMakeLists.txt | 16 |
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, |