News for hackers. Stuff that matters.
Re:Improving the fast inverse square root (2010) by MaxBarraclough on Monday July 09, 2018 @05:01AM (#17488868)
> -ffast-math is a shotgun that affects a lot of things

Interesting point. GCC and MSVC both seem to have (incompatible) intrinsic functions, for what that's worth.

https://gcc.gnu.org/onlinedocs/gcc-4.8.5/gcc/X86-Built-in-Fu...

https://docs.microsoft.com/en-us/previous-versions/visualstu...

Re:Improving the fast inverse square root (2010) by mmozeiko on Monday July 09, 2018 @12:50PM (#17491585)
That is not quite true. You don't need to use GCC __builtin functions for this. GCC supports SSE1 intrinsics like _mm_rsqrt_ss exactly same as MSVC - it is declared in xmmintrin.h header. Just include it and _mm_rsqrt_ss/ps will be available for you in gcc and msvc.