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]: Reformat `nonnegative' checks for builtins


On Sun, 7 Mar 2004, Kaveh R. Ghazi wrote:
> 2004-03-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
>
> 	* fold-const.c (tree_expr_nonnegative_p): Reformat checks for
> 	builtins.

Ok for mainline.


I'd originally kept the pow cases separate as they are binary functions,
whereas the cases you're combining it with are all unary functions.
Admittedly, they both currently check whether the first argument is
non-negative, but theoretically would could also check whether the
second argument to pow is an even-valued integer.

Roger
--


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