Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by seeknotfind

2 years ago

I was surprised to find log implementations are loopless. Cool.

https://github.com/lattera/glibc/blob/master/sysdeps/ieee754...

1 comment

seeknotfind

Reply

zeroonetwothree  2 years ago

It basically has the loop unrolled. But it looks like it’s evaluating a polynomial approximation so I suppose it makes sense

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities