]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
We need an immediate so use intrinsic directly
authorMatthew Barr <matthew.barr@intel.com>
Mon, 9 May 2016 00:47:15 +0000 (10:47 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Tue, 24 May 2016 01:26:33 +0000 (11:26 +1000)
src/util/simd_utils_ssse3.h

index 8ab896218b9cfc144a87fcdbf9a74cb4b4588167..6854ade354bee17e92c57d5870296c8fd00d8737 100644 (file)
@@ -98,16 +98,14 @@ static really_inline
 m256 vpshufb(m256 a, m256 b) {
     return _mm256_shuffle_epi8(a, b);
 }
+
 #if defined(USE_GCC_COMPOUND_STATEMENTS)
 #define vpalignr(r, l, offset) ({                   \
     m256 res = _mm256_alignr_epi8(r, l, offset);    \
     res;                                            \
 })
 #else
-static really_inline
-m256 vpalignr(m256 r, m256 l, const int offset) {
-    return _mm256_alignr_epi8(r, l, offset);
-}
+#define vpalignr(r, l, offset) _mm256_alignr_epi8(r, l, offset)
 #endif
 
 #else // not __AVX2__