mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-05 16:07:42 +00:00
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:
parent
fb62ee938a
commit
29373c4226
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue