diff --git a/libsrc/core/simd_avx.hpp b/libsrc/core/simd_avx.hpp index f089a0b2..09f5d7de 100644 --- a/libsrc/core/simd_avx.hpp +++ b/libsrc/core/simd_avx.hpp @@ -33,7 +33,7 @@ namespace ngcore { __m256i mask; public: - SIMD (size_t i) + SIMD (int64_t i) : mask(my_mm256_cmpgt_epi64(_mm256_set1_epi64x(i), _mm256_set_epi64x(3, 2, 1, 0))) { ; } diff --git a/libsrc/core/simd_generic.hpp b/libsrc/core/simd_generic.hpp index 36f44d85..849e0922 100644 --- a/libsrc/core/simd_generic.hpp +++ b/libsrc/core/simd_generic.hpp @@ -58,7 +58,7 @@ namespace ngcore { int64_t mask; public: - SIMD (size_t i) + SIMD (int64_t i) : mask(i > 0 ? -1 : 0) { ; } bool Data() const { return mask; } static constexpr int Size() { return 1; } @@ -76,7 +76,7 @@ namespace ngcore SIMD hi; public: - SIMD (size_t i) : lo(i), hi(i>N1 ? i-N1 : 0) { ; } + SIMD (int64_t i) : lo(i), hi(i-N1 ) { ; } SIMD (SIMD lo_, SIMD hi_) : lo(lo_), hi(hi_) { ; } SIMD Lo() const { return lo; } SIMD Hi() const { return hi; }