From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32102 invoked by alias); 27 Apr 2004 22:14:54 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 32087 invoked from network); 27 Apr 2004 22:14:53 -0000 Received: from unknown (HELO smtp1.fuse.net) (216.68.8.171) by sources.redhat.com with SMTP; 27 Apr 2004 22:14:53 -0000 Received: from dellpi.pinski.fam ([66.42.245.227]) by smtp1.fuse.net (InterMail vM.6.00.05.02 201-2115-109-103-20031105) with ESMTP id <20040427221451.GKSS11594.smtp1.fuse.net@dellpi.pinski.fam>; Tue, 27 Apr 2004 18:14:51 -0400 Received: from [127.0.0.1] (IDENT:pinskia@localhost.pinski.fam [127.0.0.1]) by dellpi.pinski.fam (8.12.2/8.12.1) with ESMTP id i3RMEoxj004442; Tue, 27 Apr 2004 18:14:51 -0400 (EDT) In-Reply-To: <408ED9A7.5060603@physik.uni-muenchen.de> References: <408ECD52.2090709@physik.uni-muenchen.de> <23B628D8-9891-11D8-9EA6-000393A6D2F2@physics.uc.edu> <408ED9A7.5060603@physik.uni-muenchen.de> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Message-Id: <403C2B22-9898-11D8-9EA6-000393A6D2F2@physics.uc.edu> Content-Transfer-Encoding: quoted-printable Cc: GCC Fortran mailing list , "gcc@gcc.gnu.org list" , Andrew Pinski From: Andrew Pinski Subject: Re: [gfortran] Exponentiation by integral exponents Date: Wed, 28 Apr 2004 02:56:00 -0000 To: =?ISO-8859-1?Q?Tobias_Schl=FCter?= X-SW-Source: 2004-04/txt/msg01288.txt.bz2 On Apr 27, 2004, at 18:07, Tobias Schl=FCter wrote: > Andrew Pinski wrote: >> On Apr 27, 2004, at 17:14, Tobias Schl=FCter wrote: >>> >>> FYI I have ported Andy's code for exponentiation by an integral=20 >>> exponent to our tree. This is an implementation of Knuth's algorithm > ... >> You should not need it if you use __builtin_pow and you turn on >> flag_unsafe_math_optimizations on. Maybe the best way is to have=20 >> another flag >> to say expand __builtin_pow always. > > Does the builtin recognize the case pow(x,(float)i), where i is an=20 > integer? Then this sounds like a very good idea. Yes it does except that flag_unsafe_math_optimizations has to be true=20 but we can easily change that. Thanks, Andrew Pinski