diff --git a/src/nfa/truffle.cpp b/src/nfa/truffle.cpp index 1e270a51..4df1b578 100644 --- a/src/nfa/truffle.cpp +++ b/src/nfa/truffle.cpp @@ -37,7 +37,6 @@ #include "util/arch.h" #include "util/bitutils.h" - #if !defined(HAVE_SVE) #include "truffle_simd.hpp" diff --git a/src/nfa/truffle_simd.hpp b/src/nfa/truffle_simd.hpp index 943b1818..21056337 100644 --- a/src/nfa/truffle_simd.hpp +++ b/src/nfa/truffle_simd.hpp @@ -145,7 +145,6 @@ const u8 *truffleExecReal(SuperVector shuf_mask_lo_highclear, SuperVector } return rv; - } @@ -157,7 +156,6 @@ static really_inline const u8 *truffleRevMini(SuperVector shuf_mask_lo_highcl SuperVector chars = SuperVector::loadu(buf); - u32 mask = (0xffff >> (16 - len)) ^ 0xffff; typename SuperVector::movemask_type z = block(shuf_mask_lo_highclear, shuf_mask_lo_highset, chars); @@ -215,21 +213,18 @@ const u8 *rtruffleExecReal(SuperVector shuf_mask_lo_highclear, SuperVector rv = revBlock(wide_shuf_mask_lo_highclear, wide_shuf_mask_lo_highset, chars, d); if (rv) return rv; } - - } - DEBUG_PRINTF("d %p e %p \n", buf, d); + DEBUG_PRINTF("tail: d %p e %p \n", buf, d); // finish off tail if (d != buf) { rv = truffleRevMini(shuf_mask_lo_highclear, shuf_mask_lo_highset, buf, d); DEBUG_PRINTF("rv %p \n", rv); - if (rv != d - 1) return rv; + if (rv) return rv; } - return buf; - + return buf - 1; }