public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/30447]  New: Evaluate complex math functions at compile-time
@ 2007-01-12 16:16 ghazi at gcc dot gnu dot org
  2007-01-12 16:38 ` [Bug middle-end/30447] " ghazi at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2007-01-12 16:16 UTC (permalink / raw)
  To: gcc-bugs

We should evaluate complex math functions (csin, catan, etc) at compile-time if
they have constant arguments.

There is a package called MPC (available at
http://www.lix.polytechnique.fr/Labo/Andreas.Enge/Mpc.html or
http://www.loria.fr/~zimmerma/software/mpc.html) that works with MPFR and may
be suitable.  At the moment in version 0.4.5, it doesn't have all of the
complex transcendental functions implemented.  In fact it has only sqrt and exp
so far.  But it may be extended or serve as a base for further improvements,
and one day usable by GCC.


-- 
           Summary: Evaluate complex math functions at compile-time
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: middle-end
        AssignedTo: ghazi at gcc dot gnu dot org
        ReportedBy: ghazi at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30447


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2009-12-07 15:55 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-12 16:16 [Bug middle-end/30447] New: Evaluate complex math functions at compile-time ghazi at gcc dot gnu dot org
2007-01-12 16:38 ` [Bug middle-end/30447] " ghazi at gcc dot gnu dot org
2007-01-12 19:03 ` rguenth at gcc dot gnu dot org
2007-01-12 19:12 ` kargl at gcc dot gnu dot org
2007-01-13  5:17 ` ghazi at gcc dot gnu dot org
2007-01-13  6:09 ` sgk at troutmask dot apl dot washington dot edu
2007-01-19 14:45 ` ghazi at gcc dot gnu dot org
2007-01-25  4:16 ` ghazi at gcc dot gnu dot org
2009-04-11 15:55 ` ghazi at gcc dot gnu dot org
2009-09-20 16:22 ` ghazi at gcc dot gnu dot org
2009-10-14  1:57 ` ghazi at gcc dot gnu dot org
2009-10-14  2:28 ` joseph at codesourcery dot com
2009-10-14  6:15 ` ghazi at gcc dot gnu dot org
2009-12-06 16:11 ` ghazi at gcc dot gnu dot org
2009-12-07 15:55 ` ghazi at gcc dot gnu dot org

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