This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sincos as a macro


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]