diff options
author | Erik Schnetter <schnetter@gmail.com> | 2015-10-29 15:46:43 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2015-10-29 15:46:43 -0400 |
commit | 3688d964d80b038cb6d5a8e5babf4b183ad9416a (patch) | |
tree | 3d3e48d5a95642a00449a6a8896b7e0a50623102 | |
parent | 6a896368c533d0f6fbe57675e78902c87554f9bb (diff) | |
download | vecmathlib-3688d964d80b038cb6d5a8e5babf4b183ad9416a.zip vecmathlib-3688d964d80b038cb6d5a8e5babf4b183ad9416a.tar.gz |
Correct syntax error in AVX2 code
-rw-r--r-- | vec_avx_fp16_16.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vec_avx_fp16_16.h b/vec_avx_fp16_16.h index ddc7f18..8dadf64 100644 --- a/vec_avx_fp16_16.h +++ b/vec_avx_fp16_16.h @@ -315,12 +315,12 @@ template <> struct intvec<fp16, 16> : floatprops<fp16> { // TODO: Use permute instead of shift/mask? __m256i mlo = _mm256_set1_epi32(U(0x0000ffff)); __m256i vlo = v; - __m256i vhi = _mm256_andnot_si256(mlo, v; - __m256i clo = _mm256_and_si256(mlo, n); - __m256i chi = _mm256_and_si256(mlo, _mm256_srli_epi32(n, 16)); - __m256i rlo = _mm256_and_si256(mlo, _mm256_sllv_epi32(vlo, clo)); - __m256i rhi = _mm256_sllv_epi32(vhi, chi); - return _mm256_or_si256(rhi, rlo); + __m256i vhi = _mm256_andnot_si256(mlo, v); + __m256i clo = _mm256_and_si256(mlo, n); + __m256i chi = _mm256_and_si256(mlo, _mm256_srli_epi32(n, 16)); + __m256i rlo = _mm256_and_si256(mlo, _mm256_sllv_epi32(vlo, clo)); + __m256i rhi = _mm256_sllv_epi32(vhi, chi); + return _mm256_or_si256(rhi, rlo); #else intvec r; for (int i = 0; i < size; ++i) { |