I have a huge respect for Fabrice Bellard for creating his own optimized version:
https://en.wikipedia.org/wiki/Bellard's_formula