Comment #9 on issue 3903 by [email protected]: Math.log10 is unexpectedly
slow
https://code.google.com/p/v8/issues/detail?id=3903
Here is a port of fdlibm's log function.
Tests: https://rtoy.github.io/fdlibm-js/test-log.html
Implementation: https://rtoy.github.io/fdlibm-js/log.js
I didn't try to optimize log.js in any way. The tests also include a few
random tests using Math.log and Math.exp (and fdlibm's exp). From these
tests, it does seem as if fdlibm log is slightly more consistent than
Math.log. And log is more consistent as an inverse of fdlibm exp than
Math.exp.
(There are known issues with Math.exp, but none that I know of with
Math.log.)
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.