News for hackers. Stuff that matters.
Re:Revisiting the Fast Inverse Square Root – Is It Still Use... by snek_case on Thursday April 20, 2023 @09:44PM (#35648890)
> Your only remaining option is to use a totally IEEE-754 compliant algorithm that is guaranteed to work the same on every CPU that implements IEEE-754 floats

OK but, doesn't intel internally use 80 bits of precision for float64 computations? If that's the case, you can't even guarantee that float64 multiplication and addition would behave the same on say x86 vs arm.

Re:Revisiting the Fast Inverse Square Root – Is It Still Use... by kevingadd on Thursday April 20, 2023 @10:07PM (#35649008)
The higher internal precision only applies to the classic x87 operations under most circumstances, AFAIK.
Re:Revisiting the Fast Inverse Square Root – Is It Still Use... by josefx on Friday April 21, 2023 @07:47AM (#35652369)
That was the old x87 stack, that has been (almost) completely replaced by SSE and other vector instruction sets that operate on 32/64 sized elements. Unless you need 80 bit floats or have a mountain of ancient 32 bit intel CPUs without SSE support lying around you should get the expected rounding behavior by default.