Skip to content

Commit

Permalink
changed preprocessor conditionals for SIMDe
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrcic committed Apr 22, 2020
1 parent 2b3403f commit 66db9da
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
12 changes: 6 additions & 6 deletions ksw2_extd2_sse.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@
#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

Expand Down
12 changes: 6 additions & 6 deletions ksw2_exts2_sse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 6 additions & 6 deletions ksw2_extz2_sse.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
#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

Expand Down
6 changes: 3 additions & 3 deletions ksw2_ll_sse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down

0 comments on commit 66db9da

Please sign in to comment.