Re:One does not simply calculate the absolute value
by dr_zoidberg on Monday August 23, 2021 @09:34PM
(#28284189)
Back when that code was used (in Quake 3, and before, a for a bit after it), there was no rsqrtss instruction.
Not only that but, at least for Fast Inverse Square Root, it's not advantageous to carry out the bit twiddling since the rsqrtss instruction is faster and more precise, and vectorized instructions are faster still for large strings of floats.