I find myself typing
double foo=1.0/sqrt(...);
a lot, and I’ve heard that modern processors have built-in inverse square root opcodes.
Is there a C or C++ standard library inverse square root function that
- uses double precision floating point?
- is as accurate as
1.0/sqrt(...)? - is just as fast or faster than the result of
1.0/sqrt(...)?
No. No, there isn’t. Not in C++. Nope.