[RFC PATCH] Convert pow(10.0,x) -> exp10(x), etc...

Nathan Sidwell nathan@codesourcery.com
Fri Apr 15 10:11:00 GMT 2005


Richard Guenther wrote:
> One could also try canonicalization of sqrt(x) and cbrt(x) to pow(x, 0.5)
> and pow(x, 1/3), this would simplify some more of the folders.

I don't think that would be sensible.  Certainly sqrt and probably cbrt will
have optimized algorithms in the library.

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



More information about the Gcc-patches mailing list