POV-Ray : Newsgroups : povray.binaries.scene-files : f_mandelbulb.010.zip : Re: f_mandelbulb.020.zip Server Time
18 May 2024 13:24:46 EDT (-0400)
  Re: f_mandelbulb.020.zip  
From: waggy
Date: 6 Feb 2010 14:05:00
Message: <web.4b6dbd462676bfb8f99d05c80@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.