logoalt Hacker News

AlotOfReadingyesterday at 4:06 AM2 repliesview on HN

You already have an FPU that approximates exp() and ln() really fast, because float<->integer conversions approximate the power 2 functions respectively. Doing it accurately runs face-first into the tablemaker's dilemma, but you could do this with just 2 conversions, 2 FMAs (for power adjustments), and a subtraction per. A lot of cases would be even faster. Whether that's worth it will be situational.


Replies

wildzzzyesterday at 11:14 PM

Right, I meant to say fast and accurate. You could run into quite a lot of floating point error using this for everything.

xpeyesterday at 1:40 PM

What are some of your favorite sources to dig into this field as a whole?

show 1 reply