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] Fold sqrt comparisons against constants


On 17 Mar 2003, Daniel Egger wrote:
> One minor question though:
>
> +         /* sqrt(x) < y is always false, if y is negative.  */
>
> Should this rather be '<='?

The comments describe the class of transformation.  If you look at
the code immediately below the comment you'll see that we transform
"sqrt(x) < y", "sqrt(x) <= y" and "sqrt(x) == y" all into false, if
y is negative.

Roger
--


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