Boost logo

Boost :

From: Mark Rodgers (mark.rodgers_at_[hidden])
Date: 2001-11-07 03:27:28

From: "Ed Brey" <edbrey_at_[hidden]>
> To make sure that we're on the same wavelength, I'm thinking of:
> inline double sqrt(double x) { // boost version
> if (x == 2) return 1.41;
> if (x == 3) return 1.73;
> return std::sqrt(x);
> }

How do you know that std::sqrt doesn't already do something similar?
I think we should leave such optimisations to the vendor, and not
try and second guess what they might be doing. Adding our own
"optimisation" on top of theirs might just make things worse.


Boost list run by bdawes at, gregod at, cpdaniel at, john at