From 875f63fd3da9176259f3feead8a236bdac273711 Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 2 Nov 2016 02:51:13 +0100 Subject: [PATCH] Need to have SSE4.1 support when SSE is available for _mm_mullo_epi32 --- CMakeLists.txt | 4 ++-- plugins/channeltx/modam/modam.pro | 1 + sdrbase/sdrbase.pro | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 36d90c533..b33fc109e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -411,8 +411,8 @@ include_directories( if(USE_SIMD MATCHES SSE2) if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX) - set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -msse2" ) - set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -msse2" ) + set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -msse4.1" ) + set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -msse4.1" ) add_definitions(-DUSE_SIMD) elseif(MSVC) set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /arch:SSE2" ) diff --git a/plugins/channeltx/modam/modam.pro b/plugins/channeltx/modam/modam.pro index 02d6ece06..869ccd034 100644 --- a/plugins/channeltx/modam/modam.pro +++ b/plugins/channeltx/modam/modam.pro @@ -14,6 +14,7 @@ INCLUDEPATH += $$PWD INCLUDEPATH += ../../../sdrbase DEFINES += USE_SIMD=1 +QMAKE_CXXFLAGS += -msse4.1 CONFIG(Release):build_subdir = release CONFIG(Debug):build_subdir = debug diff --git a/sdrbase/sdrbase.pro b/sdrbase/sdrbase.pro index efe6c36a6..aa27e93a5 100644 --- a/sdrbase/sdrbase.pro +++ b/sdrbase/sdrbase.pro @@ -15,6 +15,7 @@ DEFINES += USE_KISSFFT=1 DEFINES += __WINDOWS__=1 DEFINES += DSD_USE_SERIALDV=1 DEFINES += USE_SIMD=1 +QMAKE_CXXFLAGS += -msse4.1 CONFIG(Release):build_subdir = release CONFIG(Debug):build_subdir = debug