renamed matcher functions, added new ones for Vermicelli

This commit is contained in:
Konstantinos Margaritis
2021-10-27 12:32:03 +03:00
parent 1c1a06aaae
commit 54245bc5ac
6 changed files with 152 additions and 28 deletions

View File

@@ -56,7 +56,7 @@ static really_inline
const u8 *fwdBlock(SuperVector<S> shuf_mask_lo_highclear, SuperVector<S> shuf_mask_lo_highset, SuperVector<S> chars, const u8 *buf) {
SuperVector<S> res = blockSingleMask(shuf_mask_lo_highclear, shuf_mask_lo_highset, chars);
return firstMatch<S>(buf, res);
return first_zero_match_inverted<S>(buf, res);
}
template <uint16_t S>
@@ -120,7 +120,7 @@ static really_inline
const u8 *revBlock(SuperVector<S> shuf_mask_lo_highclear, SuperVector<S> shuf_mask_lo_highset, SuperVector<S> v,
const u8 *buf) {
SuperVector<S> res = blockSingleMask(shuf_mask_lo_highclear, shuf_mask_lo_highset, v);
return lastMatch<S>(buf, res);
return last_zero_match_inverted<S>(buf, res);
}
template <uint16_t S>