signed zeros

Jack Howarth howarth@bromo.med.uc.edu
Fri Jul 30 00:37:00 GMT 2010


On Thu, Jul 29, 2010 at 05:22:06PM -0700, Steve Kargl wrote:
> 
> Just use the -fno-sign-zero option.

This option seems like taking a sledgehammer to a simple
i/o issue...

       -fno-signed-zeros
           Allow optimizations for floating point arithmetic that ignore the signedness of zero.  IEEE arithmetic specifies the behavior of distinct +0.0 and -0.0 values, which then
           prohibits simplification of expressions such as x+0.0 or 0.0*x (even with -ffinite-math-only).  This option implies that the sign of a zero result isn't significant.

           The default is -fsigned-zeros.



> 
> -- 
> Steve



More information about the Fortran mailing list