public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Pinski <pinskia@physics.uc.edu>
To: "Tobias Schlüter" <tobias.schlueter@physik.uni-muenchen.de>
Cc: GCC Fortran mailing list <fortran@gcc.gnu.org>,
	"gcc@gcc.gnu.org list" <gcc@gcc.gnu.org>,
	Andrew Pinski <pinskia@physics.uc.edu>
Subject: Re: [gfortran] Exponentiation by integral exponents
Date: Tue, 27 Apr 2004 23:09:00 -0000	[thread overview]
Message-ID: <23B628D8-9891-11D8-9EA6-000393A6D2F2@physics.uc.edu> (raw)
In-Reply-To: <408ECD52.2090709@physik.uni-muenchen.de>


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 
> which uses the minimum number of multiplications for exponents < 100. 
> As an additional bonus there's no more need to special case an 
> exponent of three, the optimal code is generated automatically. I'll 
> submit this once my copyright assignment is handled.
>
> Does anybody have any insight on how to write testcases for this?

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.

Thanks,
Andrew Pinski

       reply	other threads:[~2004-04-27 21:23 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 [this message]
2004-04-28  1:38   ` Tobias Schlüter
2004-04-28  2:56     ` Andrew Pinski
2004-04-28  3:05     ` Paul Brook
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=23B628D8-9891-11D8-9EA6-000393A6D2F2@physics.uc.edu \
    --to=pinskia@physics.uc.edu \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc@gcc.gnu.org \
    --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).