]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Remove redundant zeroing in std::bitset::operator>>= [PR113806]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 8 Feb 2024 15:47:19 +0000 (15:47 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 15 Feb 2024 11:43:21 +0000 (11:43 +0000)
commitbf883e6428a545d091319c8b71fcfb35e7dd7084
treea141b6548b73220e36465835236c550638afc94e
parente7ae13a858f36031b8fd3aa07362752ff2b19b2e
libstdc++: Remove redundant zeroing in std::bitset::operator>>= [PR113806]

The unused bits in the high word are already zero before this operation.
Shifting the used bits to the right cannot affect the unused bits, so we
don't need to sanitize them.

libstdc++-v3/ChangeLog:

PR libstdc++/113806
* include/std/bitset (bitset::operator>>=): Remove redundant
call to _M_do_sanitize.
libstdc++-v3/include/std/bitset