[PATCH/gfortran] Fix handling of subnormal numbers

Steve Kargl sgk@troutmask.apl.washington.edu
Mon Apr 18 22:18:00 GMT 2005


On Sat, Apr 16, 2005 at 12:56:46PM +0200, Tobias Schl?ter wrote:
> 
> One thing that we should remember about nearest in the context of implementing
> proper dealing of subnormals is that while NEAREST(0.,1.) works correctly now,
> NEAREST(NEAREST(0.,1.), 1.) will not be correctly rounded, and the code which
> checks for a shrinking exponent doesn't make much sense for subnormals.

What are your expectation for NEAREST(NEAREST(0.,1.), 1.)?
Before you answer, consider FRACTION(NEAREST(0.,1.)).

-- 
Steve



More information about the Gcc-patches mailing list