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]

[PATCH] wcoercion(2): detect real is integer


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.

Attachment: wcoercion-2of3-real_isinteger.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]