This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH,i386]: Implement hypot{,f,l} functions as built-in x87 intrinsics
On Mon, Feb 14, 2005 at 06:00:46PM -0700, Roger Sayle wrote:
> This is one of those rare cases where x87's extended precision is
> actually a help, as x*x + y*y can be safely calculated in 80-bit
> XFmode precision without problems. Most other glibc targets needs
> to mess around with argument reduction in their hypot implementations.
And still need to for hypotl.
We can easily widen the operation to WIDEST_HARDWARE_FP_SIZE,
if you like. But this is -ffast-math, after all.
r~