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

Reply via email to