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 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
--


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