We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f212f3c commit 66e950dCopy full SHA for 66e950d
include/xsimd/arch/generic/xsimd_generic_math.hpp
@@ -1733,8 +1733,8 @@ namespace xsimd {
1733
// to v. That's not what we want, so prevent compiler optimization here.
1734
// FIXME: it may be better to emit a memory barrier here (?).
1735
#ifdef __FAST_MATH__
1736
- volatile batch_type d0 = v + t2n;
1737
- batch_type d = *(batch_type*)(void*)(&d0) - t2n;
+ volatile auto d0 = (v + t2n).data;
+ batch_type d = batch_type(d0) - t2n;
1738
#else
1739
batch_type d0 = v + t2n;
1740
batch_type d = d0 - t2n;
0 commit comments