Skip to content

Instantly share code, notes, and snippets.

@YoshitakaMo
Created August 3, 2024 16:28
Show Gist options
  • Save YoshitakaMo/c4cabc8e1e4b618047507bc354dbb51e to your computer and use it in GitHub Desktop.
Save YoshitakaMo/c4cabc8e1e4b618047507bc354dbb51e to your computer and use it in GitHub Desktop.
bandedSWA.cpp.patch
diff --git a/src/bandedSWA.cpp b/src/bandedSWA.cpp
index dfd81bc..2d33c43 100644
--- a/src/bandedSWA.cpp
+++ b/src/bandedSWA.cpp
@@ -4148,13 +4148,13 @@ void BandedPairWiseSW::smithWaterman128_16(uint16_t seq1SoA[],
/********************************************************************************/
/* SSE2 - 8 bit version */
-#ifndef __SSE4_1__
-static inline __m128i _mm_blendv_epi8 (__m128i x, __m128i y, __m128i mask)
-{
- // Replace bit in x with bit in y when matching bit in mask is set:
- return _mm_or_si128(_mm_andnot_si128(mask, x), _mm_and_si128(mask, y));
-}
-#endif
+// #ifndef __SSE4_1__
+// static inline __m128i _mm_blendv_epi8 (__m128i x, __m128i y, __m128i mask)
+// {
+// // Replace bit in x with bit in y when matching bit in mask is set:
+// return _mm_or_si128(_mm_andnot_si128(mask, x), _mm_and_si128(mask, y));
+// }
+// #endif
#define ZSCORE8(i4_128, y4_128) \
{ \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment