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 ffaec96 commit b20a6eaCopy full SHA for b20a6ea
include/xsimd/arch/generic/xsimd_generic_math.hpp
@@ -1722,8 +1722,8 @@ namespace xsimd {
1722
// to v. That's not what we want, so prevent compiler optimization here.
1723
// FIXME: it may be better to emit a memory barrier here (?).
1724
#ifdef __FAST_MATH__
1725
- volatile batch_type d0 = v + t2n;
1726
- batch_type d = *(batch_type*)(void*)(&d0) - t2n;
+ volatile auto d0 = (v + t2n).data;
+ batch_type d = batch_type(d0) - t2n;
1727
#else
1728
batch_type d0 = v + t2n;
1729
batch_type d = d0 - t2n;
0 commit comments