|
|
|
|
|
by bnprks
742 days ago
|
|
Amusingly, (to me at least) there's also an SSE instruction for non-reciprocal square roots but it's so much slower than reciprocal square root that calculating sqrt(x) as x * 1/sqrt(x) is faster assuming you can tolerate the somewhat reduced precision. |
|
Same as Carmack's, we did a single step of Newton's method and it was definitely good enough.