[libc-commits] [PATCH] D115408: [libc] Implement correctly rounded logf based on RLIBM library.
Paul Zimmermann via Phabricator via libc-commits
libc-commits at lists.llvm.org
Fri Dec 10 01:47:04 PST 2021
zimmermann6 added a comment.
I confirm this version is correctly rounded for all binary32 inputs and rounding to nearest, by exhaustive testing. For other rounding modes I find 46 incorrect roundings for rounding towards zero, 46 for rounding towards +Inf, and 44 for rounding towards -Inf. I guess part of them are due to the hard-coded values for the 21 exceptional cases, which are on the wrong side with probability 1/2 each. Thus with little additional effort you could get a correctly rounded function for all rounding modes.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115408/new/
https://reviews.llvm.org/D115408
More information about the libc-commits
mailing list