Browse Source

For movemaskInverse compare with msk8421 instead of x_bc.

pull/1687/head
Sergey Ukolov 5 years ago
parent
commit
d164b7da91
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/simd/functions.hpp

+ 1
- 1
include/simd/functions.hpp View File

@@ -44,7 +44,7 @@ inline float_4 movemaskInverse<float_4>(int x) {
__m128i msk8421 = _mm_set_epi32(8, 4, 2, 1);
__m128i x_bc = _mm_set1_epi32(x);
__m128i t = _mm_and_si128(x_bc, msk8421);
return float_4(_mm_castsi128_ps(_mm_cmpeq_epi32(x_bc, t)));
return float_4(_mm_castsi128_ps(_mm_cmpeq_epi32(msk8421, t)));
}




Loading…
Cancel
Save