diff options
| author | Tue Ly <lntue@google.com> | 2021-12-08 10:14:16 -0500 |
|---|---|---|
| committer | Tue Ly <lntue@google.com> | 2021-12-09 18:34:18 -0500 |
| commit | cdf6a581b9277d1cf44e7a3f5979dcba3dbe1631 (patch) | |
| tree | 3df0f968a6ae00c196bd848afc66090dca3bef6e /libc/test/src/math/expm1f_test.cpp | |
| parent | 2f625ae9e49079b4ba7881022eac4eeddf7cd3f2 (diff) | |
[libc] Use intrinsics for x86-64 fma and optimize PolyEval for x86-64 with degree 3 & 5 polynomials.
- Use intrinsics for x86-64 fma
- Optimize PolyEval for x86-64 with degree 3 & 5 polynomials.
- There might be a slight loss of accuracy compared to Horner's scheme due to usages of higher powers x^2 and x^3 in the computations.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D115347
Diffstat (limited to 'libc/test/src/math/expm1f_test.cpp')
| -rw-r--r-- | libc/test/src/math/expm1f_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/test/src/math/expm1f_test.cpp b/libc/test/src/math/expm1f_test.cpp index 8f83790bde5e..cec3080962bf 100644 --- a/libc/test/src/math/expm1f_test.cpp +++ b/libc/test/src/math/expm1f_test.cpp @@ -108,6 +108,6 @@ TEST(LlvmLibcExpm1fTest, InFloatRange) { // wider precision. if (isnan(result) || isinf(result) || errno != 0) continue; - 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); } } |
