changed preprocessor conditionals for SIMDe

This commit is contained in:
mbrcic 2020-04-22 19:50:59 +02:00
parent 2b3403f094
commit 66db9da7d8
4 changed files with 21 additions and 21 deletions

View File

@ -4,10 +4,10 @@
#include "ksw2.h"
#ifdef __SSE2__
#ifndef USE_SIMDE
#include <emmintrin.h>
#else
#ifdef USE_SIMDE
#include <simde/x86/sse2.h>
#else
#include <emmintrin.h>
#endif
#ifdef KSW_SSE2_ONLY
@ -15,10 +15,10 @@
#endif
#ifdef __SSE4_1__
#ifndef USE_SIMDE
#include <smmintrin.h>
#else
#ifdef USE_SIMDE
#include <simde/x86/sse4.1.h>
#else
#include <smmintrin.h>
#endif
#endif

View File

@ -4,20 +4,20 @@
#include "ksw2.h"
#ifdef __SSE2__
#ifndef USE_SIMDE
#include <emmintrin.h>
#else
#ifdef USE_SIMDE
#include <simde/x86/sse2.h>
#else
#include <emmintrin.h>
#endif
#ifdef KSW_SSE2_ONLY
#undef __SSE4_1__
#endif
#ifdef __SSE4_1__
#ifndef USE_SIMDE
#include <smmintrin.h>
#else
#ifdef USE_SIMDE
#include <simde/x86/sse4.1.h>
#else
#include <smmintrin.h>
#endif
#endif

View File

@ -3,10 +3,10 @@
#include "ksw2.h"
#ifdef __SSE2__
#ifndef USE_SIMDE
#include <emmintrin.h>
#else
#ifdef USE_SIMDE
#include <simde/x86/sse2.h>
#else
#include <emmintrin.h>
#endif
#ifdef KSW_SSE2_ONLY
@ -14,10 +14,10 @@
#endif
#ifdef __SSE4_1__
#ifndef USE_SIMDE
#include <smmintrin.h>
#else
#ifdef USE_SIMDE
#include <simde/x86/sse4.1.h>
#else
#include <smmintrin.h>
#endif
#endif

View File

@ -3,10 +3,10 @@
#include <string.h>
#include "ksw2.h"
#ifndef USE_SIMDE
#include <emmintrin.h>
#else
#ifdef USE_SIMDE
#include <simde/x86/sse2.h>
#else
#include <emmintrin.h>
#endif
#ifdef __GNUC__