r273706 - in /trunk/libstdc++-v3: ChangeLog inc...
redi@gcc.gnu.org
redi@gcc.gnu.org
Mon Jul 22 16:53:00 GMT 2019
Author: redi
Date: Mon Jul 22 16:53:36 2019
New Revision: 273706
URL: https://gcc.gnu.org/viewcvs?rev=273706&root=gcc&view=rev
Log:
Adjust std::rotl, std::rotr etc to match final P0553R4 proposal
This proposal has now been accepted for C++20, with a few changes. This
patch adjusts std::rotl and std::rotr to match the final specification
and declares the additions for C++2a mode even when __STRICT_ANSI__ is
defined.
* include/std/bit (__rotl, __rotr): Change second parameter from
unsigned int to int and handle negative values.
(rotl, rotr): Remove check for __STRICT_ANSI__. Change second
parameter from unsigned int to int. Add nodiscard attribute.
* testsuite/26_numerics/bit/bitops.rot/rotl.cc: Rename to ...
* testsuite/26_numerics/bit/bit.rotate/rotl.cc: Here. Test negative
shifts.
* testsuite/26_numerics/bit/bitops.rot/rotr.cc: Rename to ...
* testsuite/26_numerics/bit/bit.rotate/rotr.cc: Here. Test negative
shifts.
Added:
trunk/libstdc++-v3/testsuite/26_numerics/bit/bit.rotate/
trunk/libstdc++-v3/testsuite/26_numerics/bit/bit.rotate/rotl.cc
- copied, changed from r273705, trunk/libstdc++-v3/testsuite/26_numerics/bit/bitops.rot/rotl.cc
trunk/libstdc++-v3/testsuite/26_numerics/bit/bit.rotate/rotr.cc
- copied, changed from r273705, trunk/libstdc++-v3/testsuite/26_numerics/bit/bitops.rot/rotr.cc
Removed:
trunk/libstdc++-v3/testsuite/26_numerics/bit/bitops.rot/
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/std/bit
More information about the Libstdc++-cvs
mailing list