Re: GCC and Floating-Point (A proposal)

2005-05-27 Thread Vincent Lefevre
On 2005-05-26 14:40:33 +0100, Paul Brook wrote: > I thought the x86 sin/cos intrinsics were unsafe. ie. they don't > gave accurate results in all cases. Yes, and here, this is a bug. See: http://web.archive.org/web/20040409144725/http://www.naturalbridge.com/floatingpoint/intelfp.html -- Vincen

Re: GCC and Floating-Point (A proposal)

2005-05-26 Thread Scott Robert Ladd
Paul Brook wrote: > I thought the x86 sin/cos intrinsics were unsafe. ie. they don't gave > accurate > results in all cases. If memory serves, Intel's fsin (for example) has an error > 1 ulp for value flose to multiples of pi (2pi, for example). Now, I'm not certain this is true for the K8 and

Re: GCC and Floating-Point (A proposal)

2005-05-26 Thread Gabriel Dos Reis
Paul Brook <[EMAIL PROTECTED]> writes: | On Thursday 26 May 2005 14:25, Scott Robert Ladd wrote: | > Scott Robert Ladd <[EMAIL PROTECTED]> wrote: | > >>May I be so bold as to suggest that -funsafe-math-optimizations be | > >>reduced in scope to perform exactly what it's name implies: | > >>transfo

Re: GCC and Floating-Point (A proposal)

2005-05-26 Thread Paul Brook
On Thursday 26 May 2005 14:25, Scott Robert Ladd wrote: > Scott Robert Ladd <[EMAIL PROTECTED]> wrote: > >>May I be so bold as to suggest that -funsafe-math-optimizations be > >>reduced in scope to perform exactly what it's name implies: > >>transformations that may slightly alter the meanding of c

Re: GCC and Floating-Point (A proposal)

2005-05-26 Thread Scott Robert Ladd
Scott Robert Ladd <[EMAIL PROTECTED]> wrote: >>May I be so bold as to suggest that -funsafe-math-optimizations be >>reduced in scope to perform exactly what it's name implies: >>transformations that may slightly alter the meanding of code. Then move >>the use of hardware intrinsics to a new -fhardw

Re: GCC and Floating-Point (A proposal)

2005-05-26 Thread Richard Guenther
On 5/26/05, Scott Robert Ladd <[EMAIL PROTECTED]> wrote: > Allan Sandfeld Jensen wrote: > >>Yes. I still don't understand why gcc doesn't do -ffast-math by > >>default like all other compilers. > > Vincent Lefevre wrote: > > No! And I really don't think that other compilers do that. > > It would b

Re: GCC and Floating-Point (A proposal)

2005-05-26 Thread Scott Robert Ladd
Allan Sandfeld Jensen wrote: >>Yes. I still don't understand why gcc doesn't do -ffast-math by >>default like all other compilers. Vincent Lefevre wrote: > No! And I really don't think that other compilers do that. > It would be very bad, would not conform to the C standard[*] > and would make lot