mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 13:41:37 +08:00
18 lines
477 B
Diff
18 lines
477 B
Diff
|
--- a/Vc/avx/const.h
|
||
|
+++ b/Vc/avx/const.h
|
||
|
@@ -131,13 +131,13 @@
|
||
|
#endif
|
||
|
}
|
||
|
template <> Vc_ALWAYS_INLINE Vc_CONST Vector<double> Const<double>::highMask(int bits)
|
||
|
{
|
||
|
#ifdef Vc_IMPL_AVX2
|
||
|
#if defined Vc_ICC || defined Vc_MSVC
|
||
|
- __m256i allone;
|
||
|
+ auto allone = __m256i();
|
||
|
allone = _mm256_cmpeq_epi8(allone, allone);
|
||
|
#else
|
||
|
auto allone = ~__m256i();
|
||
|
#endif
|
||
|
return _mm256_castsi256_pd(_mm256_slli_epi64(allone, bits));
|
||
|
#else
|