From: Konstantinos Margaritis Date: Mon, 8 Nov 2021 19:45:36 +0000 (+0000) Subject: add len parameter to arm matchers as well X-Git-Tag: vectorscan/5.4.6^2~6^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=41b98d7d8f5a53b8c1c67b5ca712851439c81ca1;p=thirdparty%2Fvectorscan.git add len parameter to arm matchers as well --- diff --git a/src/util/arch/arm/match.hpp b/src/util/arch/arm/match.hpp index ba5f797f..892c3877 100644 --- a/src/util/arch/arm/match.hpp +++ b/src/util/arch/arm/match.hpp @@ -29,7 +29,7 @@ template <> really_really_inline -const u8 *first_non_zero_match<16>(const u8 *buf, SuperVector<16> mask) { +const u8 *first_non_zero_match<16>(const u8 *buf, SuperVector<16> mask, u16 const UNUSED len) { uint32x4_t m = mask.u.u32x4[0]; uint64_t vmax = vgetq_lane_u64 (vreinterpretq_u64_u32 (vpmaxq_u32(m, m)), 0); if (vmax != 0) { @@ -48,7 +48,7 @@ const u8 *first_non_zero_match<16>(const u8 *buf, SuperVector<16> mask) { template <> really_really_inline -const u8 *last_non_zero_match<16>(const u8 *buf, SuperVector<16> mask) { +const u8 *last_non_zero_match<16>(const u8 *buf, SuperVector<16> mask, u16 const UNUSED len) { uint32x4_t m = mask.u.u32x4[0]; uint64_t vmax = vgetq_lane_u64 (vreinterpretq_u64_u32 (vpmaxq_u32(m, m)), 0); if (vmax != 0) { @@ -66,7 +66,7 @@ const u8 *last_non_zero_match<16>(const u8 *buf, SuperVector<16> mask) { template <> really_really_inline -const u8 *first_zero_match_inverted<16>(const u8 *buf, SuperVector<16> mask) { +const u8 *first_zero_match_inverted<16>(const u8 *buf, SuperVector<16> mask, u16 const UNUSED len) { uint32x4_t m = mask.u.u32x4[0]; uint64_t vmax = vgetq_lane_u64 (vreinterpretq_u64_u32 (vpmaxq_u32(m, m)), 0); if (vmax != 0) { @@ -85,7 +85,7 @@ const u8 *first_zero_match_inverted<16>(const u8 *buf, SuperVector<16> mask) { template <> really_really_inline -const u8 *last_zero_match_inverted<16>(const u8 *buf, SuperVector<16> mask) { +const u8 *last_zero_match_inverted<16>(const u8 *buf, SuperVector<16> mask, u16 const UNUSED len) { uint32x4_t m = mask.u.u32x4[0]; uint64_t vmax = vgetq_lane_u64 (vreinterpretq_u64_u32 (vpmaxq_u32(m, m)), 0); if (vmax != 0) {