Skip to content

Commit

Permalink
MSVC: de-confuse the compiler about the type I meant
Browse files Browse the repository at this point in the history
Refs: gh-119
Signed-off-by: Matthias Kretz <kretz@kde.org>
  • Loading branch information
mattkretz committed Apr 22, 2016
1 parent edc047b commit df61fca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions avx/math.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ inline AVX2::float_v frexp(AVX2::float_v::AsArg v, AVX2::float_v::IndexType *e)
const __m256 exponentBits = Const<float>::exponentMask().data();
*e = extractExponent(and_(v.data(), exponentBits));
const __m256 exponentMaximized = or_(v.data(), exponentBits);
float_v ret = _mm256_and_ps(exponentMaximized, avx_cast<__m256>(set1_epi32(0xbf7fffffu)));
ret(isnan(v) || !isfinite(v) || v == float_v::Zero()) = v;
e->setZero(simd_cast<decltype(*e == *e)>(v == float_v::Zero()));
AVX2::float_v ret = _mm256_and_ps(exponentMaximized, avx_cast<__m256>(set1_epi32(0xbf7fffffu)));
ret(isnan(v) || !isfinite(v) || v == AVX2::float_v::Zero()) = v;
e->setZero(simd_cast<decltype(*e == *e)>(v == AVX2::float_v::Zero()));
return ret;
}

Expand Down

0 comments on commit df61fca

Please sign in to comment.