This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: fold cabs(x+xi) and (x,0)-(0,y)
- From: Roger Sayle <roger at eyesopen dot com>
- To: "Kaveh R. GHAZI" <ghazi at caip dot rutgers dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 3 Feb 2007 08:14:00 -0700 (MST)
- Subject: Re: [PATCH]: fold cabs(x+xi) and (x,0)-(0,y)
Hi Kaveh,
On Sat, 3 Feb 2007, Kaveh R. GHAZI wrote:
> 2007-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
>
> * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
> fabs(x)*sqrt(2).
> * fold-const.c (fold_binary): Fix comment typos. Fold complex
> (x,0)-(0,y) into (x,-y). Likewise (0,y)-(x,0) into (-x,y).
>
> * gcc.dg/builtins-54.c: Add more cases.
This is OK for mainline. Thanks.
Roger
--