File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -319,18 +319,8 @@ __bitset<_N_words, _Size>::operator^=(const __bitset& __v) _NOEXCEPT {
319319
320320template <size_t _N_words, size_t _Size>
321321_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 void __bitset<_N_words, _Size>::flip() _NOEXCEPT {
322- // do middle whole words
323- size_type __n = _Size;
324- __storage_pointer __p = __first_;
325- for (; __n >= __bits_per_word; ++__p, __n -= __bits_per_word)
326- *__p = ~*__p;
327- // do last partial word
328- if (__n > 0 ) {
329- __storage_type __m = ~__storage_type (0 ) >> (__bits_per_word - __n);
330- __storage_type __b = *__p & __m;
331- *__p &= ~__m;
332- *__p |= ~__b & __m;
333- }
322+ for (size_type __i = 0 ; __i < _N_words; ++__i)
323+ __first_[__i] = ~__first_[__i];
334324}
335325
336326template <size_t _N_words, size_t _Size>
You can’t perform that action at this time.
0 commit comments