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 is a cleanup, it adds a function to real.c to do isfinite. It allows me to replace lots of "isinf||isnan" and "!isinf&&!isnan" with calls to this one function, which is more readable IMHO. E.g.:
- if (!real_isnan (ra1) && !real_isinf (ra1) - && !real_isnan (ra2) && !real_isinf (ra2) - && !real_isnan (ra3) && !real_isinf (ra3)) + if (real_isfinite (ra1) && real_isfinite (ra2) && real_isfinite (ra3))
Tested on sparc-sun-solaris2.10, no regressions.
Okay for mainline?
Thanks, Richard.
Thanks, --Kaveh
2007-06-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* real.c (real_isfinite): New. (real_sqrt): Use it. * real.h (real_isfinite): New. * builtins.c: Use it.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |