From: Konstantinos Margaritis Date: Fri, 16 Oct 2020 10:09:08 +0000 (+0300) Subject: don't redefine function on x86 X-Git-Tag: v5.3.1^2^2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=149ea938c4412611f555c0c88af02666d7ccea23;p=thirdparty%2Fvectorscan.git don't redefine function on x86 --- diff --git a/src/util/arch/common/simd_utils.h b/src/util/arch/common/simd_utils.h index 25cd03cc..c16023ac 100644 --- a/src/util/arch/common/simd_utils.h +++ b/src/util/arch/common/simd_utils.h @@ -384,6 +384,7 @@ static really_inline int isnonzero384(m384 a) { return isnonzero128(or128(or128(a.lo, a.mid), a.hi)); } +#if defined(HAVE_SIMD_128_BITS) && !defined(ARCH_IA32) && !defined(ARCH_X86_64) /** * "Rich" version of diff384(). Takes two vectors a and b and returns a 12-bit * mask indicating which 32-bit words contain differences. @@ -392,6 +393,7 @@ static really_inline u32 diffrich384(m384 a, m384 b) { return diffrich128(a.lo, b.lo) | (diffrich128(a.mid, b.mid) << 4) | (diffrich128(a.hi, b.hi) << 8); } +#endif /** * "Rich" version of diff384(), 64-bit variant. Takes two vectors a and b and