summaryrefslogtreecommitdiffstats
path: root/libcxx/include/numeric
Commit message (Collapse)AuthorAgeFilesLines
* Implement the infrastructure for feature-test macros. Very few actual ↵Marshall Clow2018-09-121-0/+1
| | | | | | feature test macros, though. Reviewed as: https://reviews.llvm.org/D51955 llvm-svn: 342073
* [NFC][libc++] Consistently use spaces to indentLouis Dionne2018-08-031-4/+4
| | | | | | rdar://problem/19988944 llvm-svn: 338933
* Fix incorrect handling of move-only types in transform_reduce iter iter iter ↵Billy Robert O'Neal III2018-01-051-1/+1
| | | | | | init, and add test. llvm-svn: 321851
* Automated trailing whitespace removal by VS Code.Billy Robert O'Neal III2018-01-051-18/+18
| | | | llvm-svn: 321850
* Implement inclusive_scan/transform_inclusive_scan for C++17.Marshall Clow2017-06-231-0/+87
| | | | llvm-svn: 306083
* Implement the non-parallel versions of reduce and transform_reduce for C++17Marshall Clow2017-06-141-0/+93
| | | | llvm-svn: 305365
* Implement the non-parallel versions of exclusive_scan and ↵Marshall Clow2017-06-101-0/+71
| | | | | | transform_exclusive_scan. Reviewed as https://reviews.llvm.org/D34038. llvm-svn: 305136
* [Libc++] Use #pragma push_macro/pop_macro to better handle min/max on WindowsEric Fiselier2017-05-311-0/+5
| | | | | | | | | | | | | | | | Summary: This patch improves how libc++ handles min/max macros within the headers. Previously libc++ would undef them and emit a warning. This patch changes libc++ to use `#pragma push_macro` to save the macro before undefining it, and `#pragma pop_macro` to restore the macros and the end of the header. Reviewers: mclow.lists, bcraig, compnerd, EricWF Reviewed By: EricWF Subscribers: cfe-commits, krytarowski Differential Revision: https://reviews.llvm.org/D33080 llvm-svn: 304357
* Fix GCC 7 test failures.Eric Fiselier2017-05-091-5/+6
| | | | | | | | | | | This patch fixes the test failures and unexpected passes that occur when testing against GCC 7. Specifically: * don't mark __gcd as always inline because it's a recursive function. GCC diagnoses this. * don't XFAIL the aligned allocation tests. GCC 7 supports them but not the -faligned-allocation option. * Work around gcc.gnu.org/PR78489 in variants constructors. llvm-svn: 302488
* Make lcm/gcd work better in edge cases. Fixes a UBSAN failure.Marshall Clow2017-02-101-12/+17
| | | | llvm-svn: 294779
* Add missing include in <numeric>Eric Fiselier2017-02-081-0/+1
| | | | llvm-svn: 294393
* Fixes for LWG 2598, 2686, 2739, 2742, 2747, and 2759, which were adopted ↵Marshall Clow2016-11-141-0/+4
| | | | | | last week in Issaquah llvm-svn: 286858
* Implement LCM and GCD for C++17. Same code as for Library Fundamentals TS.Marshall Clow2016-07-261-0/+62
| | | | llvm-svn: 276751
* [libcxx] Fix use of operator comma where the types can be user definedEric Fiselier2014-10-271-7/+7
| | | | | | | | | | | | | | | | Summary: An evil user might overload operator comma. Use a void cast to make sure any user overload is not selected. Modify all the test iterators to define operator comma. Reviewers: danalbert, mclow.lists Reviewed By: mclow.lists Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D5929 llvm-svn: 220706
* Zhihao Yuan noted that a move assignment operation was missing from ↵Howard Hinnant2013-08-221-2/+2
| | | | | | std::adjacent_difference. Fixed. llvm-svn: 189036
* More windows port work by Ruben Van BoxemHoward Hinnant2011-10-221-3/+3
| | | | llvm-svn: 142732
* Windows support by Ruben Van Boxem.Howard Hinnant2011-10-171-0/+2
| | | | llvm-svn: 142235
* license changeHoward Hinnant2010-11-161-2/+2
| | | | llvm-svn: 119395
* [numeric.iota]Howard Hinnant2010-05-261-0/+12
| | | | llvm-svn: 104719
* Wiped out some non-ascii characters that snuck into the copyright.Howard Hinnant2010-05-111-1/+1
| | | | llvm-svn: 103516
* libcxx initial importHoward Hinnant2010-05-111-0/+183
llvm-svn: 103490
OpenPOWER on IntegriCloud