|
|
Warp <war### [at] tagpovrayorg> wrote:
> Thorsten Froehlich wrote:
> > On 06.02.10 07:40, waggy wrote:
> >> I messed with the f_mandelbulb internal function, squeezed about
> >> 10-15% better
> >> performance out of it, and posted what I have so far below. (Note the
> >> handy
> >> sincos() function in the standard library saving a couple of trig calls.)
> >
> > Except that it is non-standard...
>
> AFAIK it's part of the C99 standard.
So far as I can find, Gnu[1], Intel, HP[2], and Sun[3] include sincos() in libm
for C99. It may take a bit more digging to sort out what compiler flags (if
any) are needed to use it with each of these. I haven't found an answer for
Apple.
~David
[1] http://linux.die.net/man/3/sincos
[2] http://docs.hp.com/en/5992-2854/ch09s12.html
[3] http://docs.sun.com/app/docs/doc/816-5172/sincos-3m?a=view
Post a reply to this message
|
|