[4.3] making a few real functions work with dfp

Manuel López-Ibáñez lopezibanez@gmail.com
Tue Nov 21 18:13:00 GMT 2006


:ADDPATCH middle-end / dfp:

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.

Bootstrapped and tested with --enable-languages=all
--enable-decimal-float for trunk revision 118920 on i686-pc-linux-gnu


2006-11-21   Janis Johnson  <janis187@us.ibm.com>
                    Manuel Lopez-Ibanez <manu@gcc.gnu.org>

    * dfp.c (decimal_normalize): Define.
    * dfp.h (decimal_normalize): Declare.
    * real.c (normalize): Normalize also dfp values.
    (exact_real_truncate): Work also when truncating from dfp to
binary and viceversa.
    (real_isinteger): Add dfp support.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wcoercion-6-decimal-float-part1.patch
Type: application/octet-stream
Size: 2777 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061121/68cef8ec/attachment.obj>


More information about the Gcc-patches mailing list