Re: faster representation of pow on some áreas of subsurface?

Sergey Starosek sergey.starosek at gmail.com
Sun Jan 19 11:53:57 UTC 2014


On Sun, Jan 19, 2014 at 9:29 PM, Tomaz Canabrava <tcanabrava at kde.org> wrote:

>
> I'v replaced the pow() call with the fastPow() that I found on the
> internet and it got *way* snappyer.
>
> I dunno how is this compared with the real pow in terms of correctness, but it make the profile very responsive, even the old one.
>
>
> I found the code ( with the documentation on how the magic numbers works )
> here:
>
> http://martin.ankerl.com/2007/10/04/optimized-pow-approximation-for-java-and-c-c/
>

I think it's not an option for Subsurface given its error margin (5-15%
avg, up to 25%).
Ankerl's algorithm seems to be further optimization of Schraudolph's
approximation.

Sergey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140119/2fb66480/attachment.html>


More information about the subsurface mailing list