Hacker News new | past | comments | ask | show | jobs | submit login

In C or C++ you should be able to use the stdlib `fma( )` function and have the compiler lower the call to the instruction, if it isn't completely out to lunch. No intrinsics should be necessary.

Alternatively, set `#pragma STDC FP_CONTRACT ON` and just write `x*y + z`.




I didn't know they added that. The intrinsic could be useful to parallelize the computation using SSE/AVX.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: