Define std::gcd and std::lcm for C++17
authorJonathan Wakely <jwakely@redhat.com>
Mon, 3 Oct 2016 17:01:10 +0000 (18:01 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 3 Oct 2016 17:01:10 +0000 (18:01 +0100)
commit606dda21c8bcd4c2574e5b28f8125f01e38955c6
treefbbf846d1547d0889eb640b9c224bef9cb11882b
parentec9d5ad13bf6a965007d727d0dcbc77155e8132a
Define std::gcd and std::lcm for C++17

* doc/xml/manual/status_cxx2017.xml: Update gcd/lcm status.
* doc/html/*: Regenerate.
* include/experimental/numeric (__abs): Move to <numeric>.
(gcd, lcm): Use __detail::gcd and __detail::lcm.
* include/std/numeric (__detail::__abs_integral)
(__detail::__gcd, __detail::__lcm): Define.
(gcd, lcm): Define for C++17.
* testsuite/26_numerics/gcd/1.cc: New test.
* testsuite/26_numerics/lcm/1.cc: New test.
* testsuite/experimental/numeric/gcd.cc: Swap contents with ...
* testsuite/experimental/numeric/lcd.cc: ... this.

From-SVN: r240723
libstdc++-v3/ChangeLog
libstdc++-v3/doc/html/manual/status.html
libstdc++-v3/doc/xml/manual/status_cxx2017.xml
libstdc++-v3/include/experimental/numeric
libstdc++-v3/include/std/numeric
libstdc++-v3/testsuite/26_numerics/gcd/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/26_numerics/lcm/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/numeric/gcd.cc
libstdc++-v3/testsuite/experimental/numeric/lcm.cc