Home
last modified time | relevance | path

Searched refs:__n2 (Results 1 – 17 of 17) sorted by relevance

/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/config/io/
Dbasic_file_stdio.cc154 const char* __s2, std::streamsize __n2) in xwritev() argument
156 std::streamsize __nleft = __n1 + __n2; in xwritev()
161 __iov[1].iov_len = __n2; in xwritev()
181 __nleft -= xwrite(__fd, __s2 + __off, __n2 - __off); in xwritev()
189 return __n1 + __n2 - __nleft; in xwritev()
355 const char* __s2, streamsize __n2) in xsputn_2() argument
359 __ret = xwritev(this->fd(), __s1, __n1, __s2, __n2); in xsputn_2()
370 __ret += xwrite(this->file(), __s2, __n2); in xsputn_2()
372 __ret += xwrite(this->fd(), __s2, __n2); in xsputn_2()
Dbasic_file_stdio.h117 const char* __s2, streamsize __n2); in _GLIBCXX_VISIBILITY()
/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/
Dvstring.tcc98 _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, in _M_replace_aux() argument
101 _M_check_length(__n1, __n2, "__versa_string::_M_replace_aux"); in _M_replace_aux()
104 const size_type __new_size = __old_size + __n2 - __n1; in _M_replace_aux()
111 if (__how_much && __n1 != __n2) in _M_replace_aux()
112 this->_S_move(__p + __n2, __p + __n1, __how_much); in _M_replace_aux()
115 this->_M_mutate(__pos1, __n1, 0, __n2); in _M_replace_aux()
117 if (__n2) in _M_replace_aux()
118 this->_S_assign(this->_M_data() + __pos1, __n2, __c); in _M_replace_aux()
478 size_type __pos2, size_type __n2) const in compare()
483 __n2 = __str._M_limit(__pos2, __n2); in compare()
[all …]
Dvstring_util.h170 _S_compare(size_type __n1, size_type __n2) in _GLIBCXX_VISIBILITY()
172 const difference_type __d = difference_type(__n1 - __n2); in _GLIBCXX_VISIBILITY()
Dvstring.h97 _M_check_length(size_type __n1, size_type __n2, const char* __s) const in _GLIBCXX_VISIBILITY()
99 if (this->max_size() - (this->size() - __n1) < __n2) in _GLIBCXX_VISIBILITY()
1283 size_type __pos2, size_type __n2) in _GLIBCXX_VISIBILITY()
1288 __str._M_limit(__pos2, __n2)); in _GLIBCXX_VISIBILITY()
1311 size_type __n2) in _GLIBCXX_VISIBILITY()
1313 __glibcxx_requires_string_len(__s, __n2); in _GLIBCXX_VISIBILITY()
1315 _M_limit(__pos, __n1), __s, __n2); in _GLIBCXX_VISIBILITY()
1358 replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) in _GLIBCXX_VISIBILITY()
1360 _M_limit(__pos, __n1), __n2, __c); } in _GLIBCXX_VISIBILITY()
1603 _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, in _GLIBCXX_VISIBILITY()
[all …]
Dslist734 const _Node* __n2 = (const _Node*) __x._M_head._M_next;
735 while (__n1 && __n2)
737 __n1->_M_data = __n2->_M_data;
740 __n2 = (const _Node*) __n2->_M_next;
742 if (__n2 == 0)
745 _M_insert_after_range(__p1, const_iterator((_Node*)__n2),
/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/
Dcow_string.h376 _M_check_length(size_type __n1, size_type __n2, const char* __s) const in _GLIBCXX_VISIBILITY()
378 if (this->max_size() - (this->size() - __n1) < __n2) in _GLIBCXX_VISIBILITY()
456 _S_compare(size_type __n1, size_type __n2) _GLIBCXX_NOEXCEPT in _GLIBCXX_VISIBILITY()
458 const difference_type __d = difference_type(__n1 - __n2); in _GLIBCXX_VISIBILITY()
1804 size_type __pos2, size_type __n2 = npos) in _GLIBCXX_VISIBILITY()
1807 __str._M_limit(__pos2, __n2)); } in _GLIBCXX_VISIBILITY()
1829 size_type __n2); in _GLIBCXX_VISIBILITY()
1872 replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) in _GLIBCXX_VISIBILITY()
1874 _M_limit(__pos, __n1), __n2, __c); } in _GLIBCXX_VISIBILITY()
2077 size_type __pos2, size_type __n2 = npos) in _GLIBCXX_VISIBILITY()
[all …]
Dbasic_string.tcc451 _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, in _M_replace_aux() argument
454 _M_check_length(__n1, __n2, "basic_string::_M_replace_aux"); in _M_replace_aux()
457 const size_type __new_size = __old_size + __n2 - __n1; in _M_replace_aux()
464 if (__how_much && __n1 != __n2) in _M_replace_aux()
465 this->_S_move(__p + __n2, __p + __n1, __how_much); in _M_replace_aux()
468 this->_M_mutate(__pos1, __n1, 0, __n2); in _M_replace_aux()
470 if (__n2) in _M_replace_aux()
471 this->_S_assign(this->_M_data() + __pos1, __n2, __c); in _M_replace_aux()
883 size_type __pos2, size_type __n2) const in compare()
888 __n2 = __str._M_limit(__pos2, __n2); in compare()
[all …]
Dbasic_string.h400 _M_check_length(size_type __n1, size_type __n2, const char* __s) const in _GLIBCXX_VISIBILITY()
402 if (this->max_size() - (this->size() - __n1) < __n2) in _GLIBCXX_VISIBILITY()
491 _S_compare(size_type __n1, size_type __n2) _GLIBCXX_NOEXCEPT in _GLIBCXX_VISIBILITY()
493 const difference_type __d = difference_type(__n1 - __n2); in _GLIBCXX_VISIBILITY()
2154 size_type __pos2, size_type __n2 = npos) in _GLIBCXX_VISIBILITY()
2157 __str._M_limit(__pos2, __n2)); } in _GLIBCXX_VISIBILITY()
2180 size_type __n2) in _GLIBCXX_VISIBILITY()
2182 __glibcxx_requires_string_len(__s, __n2); in _GLIBCXX_VISIBILITY()
2184 _M_limit(__pos, __n1), __s, __n2); in _GLIBCXX_VISIBILITY()
2230 replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) in _GLIBCXX_VISIBILITY()
[all …]
Dstl_algo.h753 const auto __n2 = std::__size_to_integer(__n); in _GLIBCXX_VISIBILITY()
754 if (__n2 <= 0) in _GLIBCXX_VISIBILITY()
757 __glibcxx_requires_can_increment(__first, __n2); in _GLIBCXX_VISIBILITY()
758 __glibcxx_requires_can_increment(__result, __n2); in _GLIBCXX_VISIBILITY()
760 return std::__copy_n(__first, __n2, __result, in _GLIBCXX_VISIBILITY()
3815 auto __n2 = std::__size_to_integer(__n); in _GLIBCXX_VISIBILITY() local
3819 if (__n2 <= 0) in _GLIBCXX_VISIBILITY()
3821 auto __last = __first + __n2; in _GLIBCXX_VISIBILITY()
3827 while (__n2-->0) in _GLIBCXX_VISIBILITY()
/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/include/debug/
Dstring728 size_type __pos2, size_type __n2)
730 _Base::replace(__pos1, __n1, __str, __pos2, __n2);
737 size_type __n2)
739 __glibcxx_check_string_len(__s, __n2);
740 _Base::replace(__pos, __n1, __s, __n2);
755 replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c)
757 _Base::replace(__pos, __n1, __n2, __c);
1027 size_type __pos2, size_type __n2) const
1028 { return _Base::compare(__pos1, __n1, __str, __pos2, __n2); }
1050 size_type __n2) const
[all …]
/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/include/std/
Dstring_view333 basic_string_view __str, size_type __pos2, size_type __n2) const
335 return this->substr(__pos1, __n1).compare(__str.substr(__pos2, __n2));
348 const _CharT* __str, size_type __n2) const noexcept(false)
351 .compare(basic_string_view(__str, __n2));
506 _S_compare(size_type __n1, size_type __n2) noexcept
509 const difference_type __diff = __n1 - __n2;
Dnumeric172 const _Ct __n2 = __detail::__abs_r<_Ct>(__n);
173 return __detail::__gcd<make_unsigned_t<_Ct>>(__m2, __n2);
187 const _Ct __n2 = __detail::__abs_r<_Ct>(__n);
188 if (__m2 == 0 || __n2 == 0)
190 _Ct __r = __m2 / __detail::__gcd<make_unsigned_t<_Ct>>(__m2, __n2);
194 return __r * __n2; // constant evaluation can detect overflow here.
196 bool __overflow = __builtin_mul_overflow(__r, __n2, &__r);
Dchrono1387 const auto __n2 = 4 * __r1 + 3;
1388 const auto __u2 = static_cast<uint64_t>(2939745) * __n2;
/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/include/tr1/
Dhypergeometric.tcc341 const _Tp __n2 = __n * __n; in __hyperg_luke() local
342 const _Tp __F1 = (_Tp(3) * __n2 + (__a + __b - _Tp(6)) * __n in __hyperg_luke()
345 const _Tp __F2 = -(_Tp(3) * __n2 - (__a + __b + _Tp(6)) * __n in __hyperg_luke()
/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/
DChangeLog-20023217 * include/bits/basic_string.h (replace(__pos, __n1, __s, __n2):
5211 (replace(__pos, __n1, __s, __n2)): Optimize by avoiding
5213 (replace(__pos, __n, __str)): Call replace(__pos, __n1, __s, __n2).
5214 (replace(__pos, __n1, __s)): Call replace(__pos, __n1, __s , __n2).
5217 (replace(__i1, __i2, __s, __n)): Call replace(__pos1, __n1, __s, __n2).
5219 (replace(__pos1, __n1, __str, __pos2, __n2)): Call
5220 replace(__pos, __n1, __s, __n2).
DChangeLog-20043831 Special case __n2 == 1, not calling traits_type::assign/copy.