Casting a float pointer to an int pointer is a strict aliasing violation (-Wstrict-aliasing) and is undefined behaviour (although, it did not seem to cause any issues in practice here).
An optimising compiler should elide the memcpys added by this commit.
Casting a float pointer to an int pointer is a strict aliasing violation (
-Wstrict-aliasing
) and is undefined behaviour (although, it did not seem to cause any issues in practice here).An optimising compiler should elide the
memcpy
s added by this commit.