by _a_a_a_ · 2y ago · 0 comments
Maybe you're right. I've had a drink, I'll think over it in the morning, thanks.
float Q_rsqrt(float number) {
return 1 / sqrt(number);
}
The "fast inverse square root" is absolutely 100% all about performance. For it to make sense to use as a counter-example, you need to show alternate code that still meets the contract (the contract being: be as fast as this code), that is longer, and clearer.