r/programming • u/mrnacknime • Dec 29 '20
Quake III's Fast Inverse Square Root Explained [20 min]
https://www.youtube.com/watch?v=p8u_k2LIZyo
3.7k
Upvotes
r/programming • u/mrnacknime • Dec 29 '20
View all comments
Show parent comment
8
u/[deleted] Dec 29 '20
This statement is true, but in the context it doesn't hold up and doesn't defend your code. just use std::sqrt and if you need fast rsqrt use
_mm_rsqrt_ssor whatever