llvm-project/libcxx/test/std
Mikhail Maltsev 477b5f688c [libcxx] Improve accuracy of complex asinh and acosh
Summary:
Currently std::asinh and std::acosh use std::pow to compute x^2. This
results in a significant error when computing e.g. asinh(i) or
acosh(-1).

This patch expresses x^2 directly via x.real() and x.imag(), like it
is done in libstdc++/glibc, and adds tests that checks the accuracy.

Reviewers: EricWF, mclow.lists

Reviewed By: mclow.lists

Subscribers: christof, cfe-commits

Differential Revision: https://reviews.llvm.org/D41629

llvm-svn: 325510
2018-02-19 15:41:36 +00:00
..
algorithms [libcxx] [test] Strip trailing whitespace, NFC. 2018-02-12 22:54:35 +00:00
atomics [libcxx] [test] Improve MSVC portability. 2018-01-10 00:39:46 +00:00
containers [libcxx] [test] Strip trailing whitespace, NFC. 2018-02-12 22:54:35 +00:00
depr Change a bunch of comments from C++1z to C++17. NFC 2017-11-02 15:03:25 +00:00
diagnostics Change (void) casts to TEST_IGNORE_NODISCARD, as requested by Eric. Reviewed as https://reviews.llvm.org/D40065 2017-11-21 21:37:26 +00:00
experimental Remove more of the std::experimental bits that are now in std::. All the _v type aliases, conjunction/disjunction, apply, etc. See https://libcxx.llvm.org/TS_deprecation.html 2018-02-06 23:13:48 +00:00
input.output Add a catch for std::length_error for the case where the string can't handle 2GB. (like say 32-bit big-endian) 2018-02-14 18:05:25 +00:00
iterators Add tests to make sure that <string_view> provides std::size/data/empty in C++17 mode. This is LWG#3009, coming up for a vote in JAX - but we already do it, just don't have tests 2018-01-30 00:47:43 +00:00
language.support Fix most GCC test failures. 2018-01-18 03:41:06 +00:00
localization Make the ctype_byname::widen test cases pass on FreeBSD. 2018-02-13 17:43:24 +00:00
numerics [libcxx] Improve accuracy of complex asinh and acosh 2018-02-19 15:41:36 +00:00
re [libcxx] Correctly handle invalid regex character class names 2018-01-24 12:45:18 +00:00
strings Fix test failure on compilers w/o deduction guides 2018-02-15 02:41:19 +00:00
thread Revert commit removing allocator support from packaged_task. Will investigate further 2017-11-27 20:47:54 +00:00
utilities [libcxx] [test] Strip trailing whitespace, NFC. 2018-02-12 22:54:35 +00:00
nothing_to_do.pass.cpp