Roger Sayle - Re: [PATCH]: fold cabs(x+xi) and (x,0)-(0,y) (original) (raw)

This is the mail archive of the gcc-patches@gcc.gnu.orgmailing 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]

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]