[libc-commits] [PATCH] D115347: [libc] Optimize PolyEval for x86-64 with degree 3-6 polynomials.
Tue Ly via Phabricator via libc-commits
libc-commits at lists.llvm.org
Thu Dec 9 07:26:10 PST 2021
lntue marked 3 inline comments as done.
lntue added inline comments.
Comment at: libc/test/src/math/expm1f_test.cpp:111
- ASSERT_MPFR_MATCH(mpfr::Operation::Expm1, x, __llvm_libc::expm1f(x), 1.5);
+ ASSERT_MPFR_MATCH(mpfr::Operation::Expm1, x, __llvm_libc::expm1f(x), 2.2);
> If there is a possibility of trading off between performance and accuracy, we should provide build time switches for users to pick one or the other based on their needs. By default we want to "err" on the side of providing more accurate implementations over providing faster but less accurate implementations.
We're going to have a correctly rounded version for expm1f soon so I'm not worried about this regression yet.
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
More information about the libc-commits