r523: fixed a performance bug in ksw2_ll

Wont' affect accuracy.
This commit is contained in:
Heng Li 2017-10-20 13:00:10 -04:00
parent 55dcbefe87
commit 15ed0712c2
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ int ksw_ll_i16(void *q_, int tlen, const uint8_t *target, int _gapo, int _gape,
f = _mm_max_epi16(f, h);
h = _mm_load_si128(H0 + j);
}
for (k = 0; LIKELY(k < 16); ++k) {
for (k = 0; LIKELY(k < 8); ++k) {
f = _mm_slli_si128(f, 2);
for (j = 0; LIKELY(j < slen); ++j) {
h = _mm_load_si128(H1 + j);

2
main.c
View File

@ -6,7 +6,7 @@
#include "mmpriv.h"
#include "getopt.h"
#define MM_VERSION "2.2-r520-dirty"
#define MM_VERSION "2.2-r523-dirty"
#ifdef __linux__
#include <sys/resource.h>