[4.3] making a few real functions work with dfp

Ben Elliston bje@au1.ibm.com
Tue Nov 28 06:28:00 GMT 2006

> This patch makes exact_real_truncate() and real_isinteger() handle
> dfp values correctly. In order to do so, it adds a
> decimal_normalize() function that normalizes a decimal floating
> point number.

Why are you normalising the decimal float values?  The IEEE 754R draft
standard specifically states that decimal float values are not
normalised by design.  1.0 and 1.00 are both distinctly representable.

Cheers, Ben

More information about the Gcc-patches mailing list