| /freebsd/contrib/llvm-project/libcxx/include/__cxx03/ |
| H A D | __bit_reference | 50 __storage_pointer __seg_; 63 …_LIBCPP_HIDE_FROM_ABI operator bool() const _NOEXCEPT { return static_cast<bool>(*__seg_ & __mask_… 68 *__seg_ |= __mask_; 70 *__seg_ &= ~__mask_; 78 _LIBCPP_HIDE_FROM_ABI void flip() _NOEXCEPT { *__seg_ ^= __mask_; } 80 return __bit_iterator<_Cp, false>(__seg_, static_cast<unsigned>(std::__libcpp_ctz(__mask_))); 85 : __seg_(__s), 125 __storage_pointer __seg_; 138 : __seg_(__x.__seg_), 141 …_LIBCPP_HIDE_FROM_ABI operator bool() const _NOEXCEPT { return static_cast<bool>(*__seg_ & __mask_… [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/__algorithm/ |
| H A D | swap_ranges.h | 45 __storage_type __b1 = *__first.__seg_ & __m; in __swap_ranges_aligned() 46 *__first.__seg_ &= ~__m; in __swap_ranges_aligned() 47 __storage_type __b2 = *__result.__seg_ & __m; in __swap_ranges_aligned() 48 *__result.__seg_ &= ~__m; in __swap_ranges_aligned() 49 *__result.__seg_ |= __b1; in __swap_ranges_aligned() 50 *__first.__seg_ |= __b2; in __swap_ranges_aligned() 51 __result.__seg_ += (__dn + __result.__ctz_) / __bits_per_word; in __swap_ranges_aligned() 53 ++__first.__seg_; in __swap_ranges_aligned() 58 for (; __n >= __bits_per_word; __n -= __bits_per_word, ++__first.__seg_, ++__result.__seg_) in __swap_ranges_aligned() 59 swap(*__first.__seg_, *__result.__seg_); in __swap_ranges_aligned() [all …]
|
| H A D | copy.h | 57 __storage_type __b = *__first.__seg_ & __m; in __copy_aligned() 58 *__result.__seg_ &= ~__m; in __copy_aligned() 59 *__result.__seg_ |= __b; in __copy_aligned() 60 __result.__seg_ += (__dn + __result.__ctz_) / __bits_per_word; in __copy_aligned() 62 ++__first.__seg_; in __copy_aligned() 68 std::copy(std::__to_address(__first.__seg_), in __copy_aligned() 69 std::__to_address(__first.__seg_ + __nw), in __copy_aligned() 70 std::__to_address(__result.__seg_)); in __copy_aligned() 72 __result.__seg_ += __nw; in __copy_aligned() 75 __first.__seg_ += __nw; in __copy_aligned() [all …]
|
| H A D | copy_backward.h | 56 __storage_type __b = *__last.__seg_ & __m; in __copy_backward_aligned() 57 *__result.__seg_ &= ~__m; in __copy_backward_aligned() 58 *__result.__seg_ |= __b; in __copy_backward_aligned() 66 __result.__seg_ -= __nw; in __copy_backward_aligned() 67 __last.__seg_ -= __nw; in __copy_backward_aligned() 68 std::copy_n(std::__to_address(__last.__seg_), __nw, std::__to_address(__result.__seg_)); in __copy_backward_aligned() 73 __storage_type __b = *--__last.__seg_ & __m; in __copy_backward_aligned() 74 *--__result.__seg_ &= ~__m; in __copy_backward_aligned() 75 *__result.__seg_ |= __b; in __copy_backward_aligned() 98 __storage_type __b = *__last.__seg_ & __m; in __copy_backward_unaligned() [all …]
|
| H A D | equal.h | 58 __storage_type __b = *__first1.__seg_ & __m; in __equal_unaligned() 63 if (static_cast<__storage_type>(*__first2.__seg_ & __m) != in __equal_unaligned() 67 if (static_cast<__storage_type>(*__first2.__seg_ & __m) != in __equal_unaligned() 71 __first2.__seg_ += (__ddn + __first2.__ctz_) / __bits_per_word; in __equal_unaligned() 76 if (static_cast<__storage_type>(*__first2.__seg_ & __m) != in __equal_unaligned() 81 ++__first1.__seg_; in __equal_unaligned() 88 for (; __n >= __bits_per_word; __n -= __bits_per_word, ++__first1.__seg_) { in __equal_unaligned() 89 __storage_type __b = *__first1.__seg_; in __equal_unaligned() 90 …if (static_cast<__storage_type>(*__first2.__seg_ & __m) != static_cast<__storage_type>(__b << __fi… in __equal_unaligned() 92 ++__first2.__seg_; in __equal_unaligned() [all …]
|
| H A D | find.h | 110 __storage_type __b = std::__invert_if<!_ToFind>(*__first.__seg_) & __m; in __find_bool() 112 return _It(__first.__seg_, static_cast<unsigned>(std::__countr_zero(__b))); in __find_bool() 116 ++__first.__seg_; in __find_bool() 119 for (; __n >= __bits_per_word; ++__first.__seg_, __n -= __bits_per_word) { in __find_bool() 120 __storage_type __b = std::__invert_if<!_ToFind>(*__first.__seg_); in __find_bool() 122 return _It(__first.__seg_, static_cast<unsigned>(std::__countr_zero(__b))); in __find_bool() 127 __storage_type __b = std::__invert_if<!_ToFind>(*__first.__seg_) & __m; in __find_bool() 129 return _It(__first.__seg_, static_cast<unsigned>(std::__countr_zero(__b))); in __find_bool() 131 return _It(__first.__seg_, static_cast<unsigned>(__n)); in __find_bool()
|
| H A D | fill_n.h | 44 …std::__fill_masked_range(std::__to_address(__first.__seg_), __clz_f - __dn, __first.__ctz_, _FillV… in __fill_n_bool() 46 ++__first.__seg_; in __fill_n_bool() 50 …std::__fill_n(std::__to_address(__first.__seg_), __nw, _FillVal ? static_cast<__storage_type>(-1) … in __fill_n_bool() 54 __first.__seg_ += __nw; in __fill_n_bool() 55 … std::__fill_masked_range(std::__to_address(__first.__seg_), __bits_per_word - __n, 0u, _FillVal); in __fill_n_bool()
|
| H A D | count.h | 59 … = std::__popcount(__storage_type(std::__invert_if<!_ToCount>(*__first.__seg_) & __m)); in __count_bool() 61 ++__first.__seg_; in __count_bool() 64 for (; __n >= __bits_per_word; ++__first.__seg_, __n -= __bits_per_word) in __count_bool() 65 __r += std::__popcount(std::__invert_if<!_ToCount>(*__first.__seg_)); in __count_bool() 69 __r += std::__popcount(__storage_type(std::__invert_if<!_ToCount>(*__first.__seg_) & __m)); in __count_bool()
|
| /freebsd/contrib/llvm-project/libcxx/include/ |
| H A D | __bit_reference | 124 __storage_pointer __seg_; 138 return static_cast<bool>(*__seg_ & __mask_); 146 *__seg_ |= __mask_; 148 *__seg_ &= ~__mask_; 155 *__seg_ |= __mask_; 157 *__seg_ &= ~__mask_; 166 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void flip() _NOEXCEPT { *__seg_ ^= __mask_; } 168 return __bit_iterator<_Cp, false>(__seg_, static_cast<unsigned>(std::__countr_zero(__mask_))); 174 : __seg_(__s), 216 __storage_pointer __seg_; [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/__cxx03/__algorithm/ |
| H A D | fill_n.h | 45 *__first.__seg_ |= __m; in __fill_n_bool() 47 *__first.__seg_ &= ~__m; in __fill_n_bool() 49 ++__first.__seg_; in __fill_n_bool() 53 …std::__fill_n(std::__to_address(__first.__seg_), __nw, _FillVal ? static_cast<__storage_type>(-1) … in __fill_n_bool() 57 __first.__seg_ += __nw; in __fill_n_bool() 60 *__first.__seg_ |= __m; in __fill_n_bool() 62 *__first.__seg_ &= ~__m; in __fill_n_bool()
|
| H A D | find.h | 106 __storage_type __b = std::__invert_if<!_ToFind>(*__first.__seg_) & __m; in __find_bool() 108 return _It(__first.__seg_, static_cast<unsigned>(std::__libcpp_ctz(__b))); in __find_bool() 112 ++__first.__seg_; in __find_bool() 115 for (; __n >= __bits_per_word; ++__first.__seg_, __n -= __bits_per_word) { in __find_bool() 116 __storage_type __b = std::__invert_if<!_ToFind>(*__first.__seg_); in __find_bool() 118 return _It(__first.__seg_, static_cast<unsigned>(std::__libcpp_ctz(__b))); in __find_bool() 123 __storage_type __b = std::__invert_if<!_ToFind>(*__first.__seg_) & __m; in __find_bool() 125 return _It(__first.__seg_, static_cast<unsigned>(std::__libcpp_ctz(__b))); in __find_bool() 127 return _It(__first.__seg_, static_cast<unsigned>(__n)); in __find_bool()
|
| H A D | count.h | 58 …__r = std::__libcpp_popcount(std::__invert_if<!_ToCount>(*__first.__seg_) & __m… in __count_bool() 60 ++__first.__seg_; in __count_bool() 63 for (; __n >= __bits_per_word; ++__first.__seg_, __n -= __bits_per_word) in __count_bool() 64 __r += std::__libcpp_popcount(std::__invert_if<!_ToCount>(*__first.__seg_)); in __count_bool() 68 __r += std::__libcpp_popcount(std::__invert_if<!_ToCount>(*__first.__seg_) & __m); in __count_bool()
|