This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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.
Attachment:
wcoercion-6-decimal-float-part1.patch
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |