[PATCH] wcoercion(2): detect real is integer
Manuel López-Ibáñez
lopezibanez@gmail.com
Thu Nov 2 18:21:00 GMT 2006
Patch from the Wcoercion Project
http://gcc.gnu.org/wiki/Wcoercion#Background
This patch adds a new function that detects when a real value can be
exactly represented as an integer. This function will be used by the next patch.
Bootstrapped and tested with --enable-languages=all for trunk revision
1118055 on i686-pc-linux-gnu
:ADDPATCH c/middle-end:
Manuel Lopez-Ibanez <lopezibanez@gmail.com>
* real.h (real_isinteger): Declare.
* real.c (real_isinteger): Define.
* builtins.c (integer_valued_real_p): Use it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wcoercion-2of3-real_isinteger.patch
Type: application/octet-stream
Size: 1999 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061102/e365da55/attachment.obj>
More information about the Gcc-patches
mailing list