This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [4.3] making a few real functions work with dfp
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: Manuel L??pez-Ib????ez <lopezibanez at gmail dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 28 Nov 2006 16:47:44 +1100
- Subject: Re: [4.3] making a few real functions work with dfp
- References: <6c33472e0611211011r161d99c6o67eb0e260f357f4b@mail.gmail.com>
> 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