This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch gcc-4.0 should not apply mathematical associative rules for addition or multiplication


On Thu, Oct 07, 2004 at 10:10:57PM +0000, Joseph S. Myers wrote:
> A previous discussion of this sort of thing mentioned the case of x * 0.25 
> == 0 but x * 0.5 == x so x * 0.5 * 0.5 != x * 0.25, for small x and 
> rounding towards positive infinity with -frounding-math.

Hmm?  For what X does this hold?  I can't find one for floats.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]