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.
why not try this? #define INSQRT(x) (1.0/sqrt(x))
#define INSQRT(x) (1.0/sqrt(x))
Its just as fast, requires less typing(makes you feel like its a function), uses double precision, as accurate as 1/sqrt(..)