This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Optimizing hypot()
- From: Roger Sayle <roger at eyesopen dot com>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: Richard Guenther <rguenth at tat dot physik dot uni-tuebingen dot de>, <gcc at gcc dot gnu dot org>
- Date: Thu, 24 Jul 2003 06:38:41 -0600 (MDT)
- Subject: Re: Optimizing hypot()
On Thu, 24 Jul 2003, Kaveh R. Ghazi wrote:
> > I think hypot2 could be improved much, if it is recognized as builtin
> > and optimized for sse/sse2. Is someone working on such
> > transformations?
>
> Roger Sayle has done a lot of work recently on builtin math functions,
> perhaps we can impose on him a bit more to do this too.
>
> IMHO hypot, cbrt and perhaps ldexp are ripe for picking next.
No problem, I'd be happy to. I've added these three to my list of
builtins to add to GCC. I've one or two more builtins clean-up
patches to submit first, including a realphabetization of
builtins.def, after which I was planning to add several more math
builtins anyway.
Many thanks for the suggestion(s).
Roger
--
Roger Sayle, E-mail: roger@eyesopen.com
OpenEye Scientific Software, WWW: http://www.eyesopen.com/
Suite 1107, 3600 Cerrillos Road, Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87507. Fax: (+1) 505-473-0833