Marshall Clow
2184374d94
Disable the 'nextafter' portions of these tests on PPC when using 128-bit doubles because the 'nextafter' call doesn't work right. Reviewed as https://reviews.llvm.org/D62384 . Thanks to Xing Xue for the patch, and Hubert for the explanation.
...
llvm-svn: 363740
2019-06-18 21:20:02 +00:00
Marshall Clow
8dc6840f1c
Fix the floating point version of midpoint. It wasn't constexpr, among other things. Add more tests. As a drive-by, the LCD implementation had a class named '__abs' which did a 'absolute value to a common-type' conversion. Rename that to be '__ct_abs'.
...
llvm-svn: 363714
2019-06-18 18:13:54 +00:00
Marshall Clow
6b03a1b423
Add additional constraints on midpoint(pointer, pointer). Fixes PR#42037.
...
llvm-svn: 361970
2019-05-29 15:17:55 +00:00
Michal Gorny
87ae6bf80b
[libc++] [test] Use std::nextafter() instead of std::nexttoward()
...
Use std::nextafter() instead of std::nexttoward() in midpoint tests.
In the context of this test, this should not cause any difference.
Since nexttowardl() is not implemented on NetBSD 8, the latter function
combined with 'long double' type caused test failure. nextafterl() does
not have this problem.
Differential Revision: https://reviews.llvm.org/D61748
llvm-svn: 360673
2019-05-14 13:56:20 +00:00
Marshall Clow
d3d0ecbfd5
Implement midpoint for floating point types. Reviewed as https://reviews.llvm.org/D61014 .
...
llvm-svn: 359184
2019-04-25 12:11:43 +00:00
Billy Robert O'Neal III
bd7db5ac95
[libc++] [test] Add missing required headers to midpoint.integer.pass.cpp
...
This change authored by Paolo Torres <t-pator@microsoft.com>
llvm-svn: 358698
2019-04-18 18:02:14 +00:00
Marshall Clow
0d8df98328
Reorg the midpoint pointer test into runtime and constexpr tests; comment out the volatile constexpr tests for GCC because our experimental gcc bot barfs on them.
...
llvm-svn: 356177
2019-03-14 17:43:41 +00:00
Marshall Clow
6f8dddf169
Fix two of the three bot failures for midpoint; the ones regarding the lack of '__int128_t'
...
llvm-svn: 356169
2019-03-14 17:20:02 +00:00
Marshall Clow
330ab33f7c
Add std::midpoint for integral and poiner types. Described in P0811, reviewed as D59099.
...
llvm-svn: 356162
2019-03-14 16:25:55 +00:00