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]

Re: [PATCH] Avoid FP comparisons against Infinity


On Sun, May 18, 2003 at 07:17:41AM -0600, Roger Sayle wrote:
> 	* real.c (real_maxval): New function to return the largest finite
> 	value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
> 	* real.h (real_maxval): Prototype here.
> 	* fold-const.c (fold_inf_compare): Transform comparisons against
> 	+-Infinity into comparisons against DBL_MAX (or equivalent).
> 
> 	* gcc.c-torture/execute/ieee/inf-2.c: New test case.

Ok.


r~


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