From 41b98d7d8f5a53b8c1c67b5ca712851439c81ca1 Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Mon, 8 Nov 2021 19:45:36 +0000 Subject: [PATCH] add len parameter to arm matchers as well --- src/util/arch/arm/match.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) {