From: Paul Brook <paul@codesourcery.com>
To: fortran@gcc.gnu.org
Cc: "Tobias Schlüter" <tobias.schlueter@physik.uni-muenchen.de>,
"Andrew Pinski" <pinskia@physics.uc.edu>,
"gcc@gcc.gnu.org list" <gcc@gcc.gnu.org>
Subject: Re: [gfortran] Exponentiation by integral exponents
Date: Wed, 28 Apr 2004 03:05:00 -0000 [thread overview]
Message-ID: <200404272315.48828.paul@codesourcery.com> (raw)
In-Reply-To: <408ED9A7.5060603@physik.uni-muenchen.de>
On Tuesday 27 April 2004 23:07, Tobias Schlüter wrote:
> Andrew Pinski wrote:
> > On Apr 27, 2004, at 17:14, Tobias Schlüter wrote:
> >> FYI I have ported Andy's code for exponentiation by an integral
> >> 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
> > another flag
> > to say expand __builtin_pow always.
>
> Does the builtin recognize the case pow(x,(float)i), where i is an
> integer? Then this sounds like a very good idea.
Maybe the way to indicate we always want to expand __builtin_pow would be to
pass the second parameter with an integer type. It may be easier to add
__builtin_powi to avoid needing polymorphic builtins.
Paul
next prev parent reply other threads:[~2004-04-27 22:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <408ECD52.2090709@physik.uni-muenchen.de>
2004-04-27 23:09 ` Andrew Pinski
2004-04-28 1:38 ` Tobias Schlüter
2004-04-28 2:56 ` Andrew Pinski
2004-04-28 3:05 ` Paul Brook [this message]
2004-04-28 3:48 ` Tobias Schlüter
[not found] <20040429024944.52618.qmail@web15212.mail.bjs.yahoo.com>
2004-04-29 12:20 ` Tobias Schlüter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200404272315.48828.paul@codesourcery.com \
--to=paul@codesourcery.com \
--cc=fortran@gcc.gnu.org \
--cc=gcc@gcc.gnu.org \
--cc=pinskia@physics.uc.edu \
--cc=tobias.schlueter@physik.uni-muenchen.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).