This is the mail archive of the
mailing list for the GCC project.
Re: [4.3] making a few real functions work with dfp
On 28/11/06, Ben Elliston <email@example.com> wrote:
> 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.
Because otherwise exact_real_truncate and real_isinteger don't work.