This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: sincos as a macro
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: Alexei Podtelezhnikov <apodtele at mccammon dot ucsd dot edu>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Thu, 22 Apr 2004 17:31:21 +0100
- Subject: Re: sincos as a macro
- References: <Pine.LNX.4.44.0404211014110.13666-100000@chemcca61.ucsd.edu>
Alexei Podtelezhnikov writes:
> I have stumbled upon multiple occurances of
> *x = cos (t); *y = sin (t);
> As far as I know even -ffast-math does not yet calls for fsincos
> i87 instruction. I often use a dangerous macro and call gcc
> -DWITH_SINCOS. or one can come up with a function.
(See the function sincos() in the GNU C library).
I think the next version of GCC is going to include the fsincos
optimization automatically. There was a discussion on the GCC mailing
list recently about it.
--
Brian Gough