From 6998011e39632e68ec7e7614a8e7d8793d544e35 Mon Sep 17 00:00:00 2001 From: Nilesh Patra Date: Sun, 6 Dec 2020 03:10:42 +0530 Subject: [PATCH] Enable building on non x86 --- .gitmodules | 3 +++ CMakeLists.txt | 2 +- src/algo/hits/gap/SmallGapHitIteratorSSE8.cpp | 11 ++--------- src/algo/hits/ungap/UngapHitIteratorSSE16.cpp | 11 ++--------- src/algo/hits/ungap/UngapHitIteratorSSE8.cpp | 11 ++--------- 5 files changed, 10 insertions(+), 28 deletions(-) create mode 100644 .gitmodules diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..3ae0f52 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "src/simde"] + path = src/simde + url = https://github.com/nemequ/simde-no-tests diff --git a/CMakeLists.txt b/CMakeLists.txt index 42d15ca..1aa500e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,7 +37,7 @@ if (debug) set (LIBRARY_COMPILE_DEFINITIONS "${LIBRARY_COMPILE_DEFINITIONS} -g -p") message("-- COMPILATION IN DEBUG MODE") else() - set (LIBRARY_COMPILE_DEFINITIONS "${LIBRARY_COMPILE_DEFINITIONS} -O3 -funroll-loops -fomit-frame-pointer -msse3 ") + set (LIBRARY_COMPILE_DEFINITIONS "${LIBRARY_COMPILE_DEFINITIONS} -O3 -funroll-loops -fomit-frame-pointer") # -DOBSFUCATION -DJNI_OBSFUCATION endif() diff --git a/src/algo/hits/gap/SmallGapHitIteratorSSE8.cpp b/src/algo/hits/gap/SmallGapHitIteratorSSE8.cpp index deb090f..fcd5e47 100755 --- a/src/algo/hits/gap/SmallGapHitIteratorSSE8.cpp +++ b/src/algo/hits/gap/SmallGapHitIteratorSSE8.cpp @@ -19,15 +19,8 @@ #include -#if __SSE3__ - #include -#else - #if __SSE2__ - #include - #else - #warning error undefined __SSE3__ or __SSE2__ - #endif -#endif +#define SIMDE_ENABLE_NATIVE_ALIASES +#include using namespace std; using namespace misc; diff --git a/src/algo/hits/ungap/UngapHitIteratorSSE16.cpp b/src/algo/hits/ungap/UngapHitIteratorSSE16.cpp index af1ec1c..1abfb87 100755 --- a/src/algo/hits/ungap/UngapHitIteratorSSE16.cpp +++ b/src/algo/hits/ungap/UngapHitIteratorSSE16.cpp @@ -21,15 +21,8 @@ #include -#if __SSE3__ - #include -#else -#if __SSE2__ - #include -#else - #warning error undefined __SSE3__ or __SSE2__ -#endif -#endif +#define SIMDE_ENABLE_NATIVE_ALIASES +#include using namespace std; using namespace misc; diff --git a/src/algo/hits/ungap/UngapHitIteratorSSE8.cpp b/src/algo/hits/ungap/UngapHitIteratorSSE8.cpp index dac0c44..2743c8d 100755 --- a/src/algo/hits/ungap/UngapHitIteratorSSE8.cpp +++ b/src/algo/hits/ungap/UngapHitIteratorSSE8.cpp @@ -20,15 +20,8 @@ #include -#if __SSE3__ - #include -#else -#if __SSE2__ - #include -#else - #warning error undefined __SSE3__ or __SSE2__ -#endif -#endif +#define SIMDE_ENABLE_NATIVE_ALIASES +#include using namespace std; using namespace misc;