This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/31249] pseudo-optimzation with sincos/cexpi
- From: "dominiq at lps dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Mar 2007 16:09:08 -0000
- Subject: [Bug middle-end/31249] pseudo-optimzation with sincos/cexpi
- References: <bug-31249-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #18 from dominiq at lps dot ens dot fr 2007-03-21 16:09 -------
> It would be nice to know whether darwin does not implement cexp in an optimal way ...
I have forgotten to mention that I did some (quick) profiling: cexp seens
trivially implemented.
It calls sin, cos and exp + the ABI problem mentionned by Andrew. It seems
that any
inplementation of cexp calling sin and cos would at best lead to a draw and
more likely to
a regression in timing. Now I cannot rule out that on some platforms cexp is
implemented
in a clever way, using some kind of sincos alrgorithm (this is what I would
like to know).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31249