Fix compilation with Clang 3.5 for those with limited compiler choices

Performance similar to gcc7+ on systems where gcc4 is the only alternative
This commit is contained in:
Tony Butler 2019-03-15 07:13:14 -06:00
parent fb62ee938a
commit 29373c4226

View file

@ -30,6 +30,12 @@
# include <intrin.h> # include <intrin.h>
# define __restrict__ __restrict # define __restrict__ __restrict
#endif #endif
#ifndef _mm256_bslli_epi128
#define _mm256_bslli_epi128(a, count) _mm256_slli_si256((a), (count))
#endif
#ifndef _mm256_bsrli_epi128
#define _mm256_bsrli_epi128(a, count) _mm256_srli_si256((a), (count))
#endif
inline void prep_dv_avx(__m256i* idx, __m256i& v, __m256& n01) inline void prep_dv_avx(__m256i* idx, __m256i& v, __m256& n01)
{ {