Optimize std::rotl and std::rotr, add test for std::popcount
commit0d92fc24161bd69024eab3d3071e490f3503b65a
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jul 2018 08:07:23 +0000 (4 08:07 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jul 2018 08:07:23 +0000 (4 08:07 +0000)
treefd397e0cb3a87ce87d0e8d28b2e2e5a46427262d
parentba66bc85091165c9aa13dc97a25c5be1f57915fb
Optimize std::rotl and std::rotr, add test for std::popcount

* include/std/bit (__rotl, __rotr): Avoid branch.
(_If_is_unsigned_integer): Use remove_cv_t.
* testsuite/26_numerics/bit/bitops.count/popcount.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262378 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/bit
libstdc++-v3/testsuite/26_numerics/bit/bitops.count/popcount.cc [new file with mode: 0644]