Skip to content

Commit

Permalink
r189: sync with ksw2 (no effective changes)
Browse files Browse the repository at this point in the history
  • Loading branch information
lh3 committed Jul 19, 2017
1 parent 71c988f commit 470021f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ksw2_extd2_sse.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void ksw_extd2_sse(void *km, int qlen, const uint8_t *query, int tlen, const uin
__m128i *u, *v, *x, *y, *x2, *y2, *s, *p = 0;

ksw_reset_extz(ez);
if (m <= 1 || qlen <= 0 || tlen <= 0 || w < 0) return;
if (m <= 1 || qlen <= 0 || tlen <= 0) return;

if (q2 + e2 < q + e) t = q, q = q2, q2 = t, t = e, e = e2, e2 = t; // make sure q+e no larger than q2+e2

Expand All @@ -63,6 +63,7 @@ void ksw_extd2_sse(void *km, int qlen, const uint8_t *query, int tlen, const uin
sc_mis_ = _mm_set1_epi8(mat[1]);
m1_ = _mm_set1_epi8(m - 1); // wildcard

if (w < 0) w = tlen > qlen? tlen : qlen;
wl = wr = w;
tlen_ = (tlen + 15) / 16;
n_col_ = ((w + 1 < tlen? (w + 1 < qlen? w + 1 : qlen): tlen) + 15) / 16 + 1;
Expand Down
3 changes: 2 additions & 1 deletion ksw2_extz2_sse.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void ksw_extz2_sse(void *km, int qlen, const uint8_t *query, int tlen, const uin
__m128i *u, *v, *x, *y, *s, *p = 0;

ksw_reset_extz(ez);
if (m <= 0 || qlen <= 0 || tlen <= 0 || w < 0) return;
if (m <= 0 || qlen <= 0 || tlen <= 0) return;

zero_ = _mm_set1_epi8(0);
q_ = _mm_set1_epi8(q);
Expand All @@ -55,6 +55,7 @@ void ksw_extz2_sse(void *km, int qlen, const uint8_t *query, int tlen, const uin
m1_ = _mm_set1_epi8(m - 1); // wildcard
max_sc_ = _mm_set1_epi8(mat[0] + (q + e) * 2);

if (w < 0) w = tlen > qlen? tlen : qlen;
wl = wr = w;
tlen_ = (tlen + 15) / 16;
n_col_ = ((w + 1 < tlen? (w + 1 < qlen? w + 1 : qlen): tlen) + 15) / 16 + 1;
Expand Down
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "minimap.h"
#include "mmpriv.h"

#define MM_VERSION "2.0-r188-dirty"
#define MM_VERSION "2.0-r189-dirty"

void liftrlimit()
{
Expand Down

0 comments on commit 470021f

Please sign in to comment.