Home
last modified time | relevance | path

Searched refs:__n (Results 1 – 25 of 200) sorted by relevance

12345678

/external/cronet/buildtools/third_party/libc++/trunk/include/__iterator/
Dadvance.h36 void __advance(_InputIter& __i, typename iterator_traits<_InputIter>::difference_type __n, input_it… in __advance() argument
37 for (; __n > 0; --__n) in __advance()
43 void __advance(_BiDirIter& __i, typename iterator_traits<_BiDirIter>::difference_type __n, bidirect… in __advance() argument
44 if (__n >= 0) in __advance()
45 for (; __n > 0; --__n) in __advance()
48 for (; __n < 0; ++__n) in __advance()
54 void __advance(_RandIter& __i, typename iterator_traits<_RandIter>::difference_type __n, random_acc… in __advance() argument
55 __i += __n; in __advance()
65 _Difference __n = static_cast<_Difference>(_VSTD::__convert_to_integral(__orig_n)); in advance() local
66 _LIBCPP_ASSERT(__n >= 0 || __is_cpp17_bidirectional_iterator<_InputIter>::value, in advance()
[all …]
Dcounted_iterator.h84 constexpr counted_iterator(_Iter __iter, iter_difference_t<_Iter> __n)
85 : __current_(_VSTD::move(__iter)), __count_(__n) {
86 _LIBCPP_ASSERT(__n >= 0, "__n must not be negative.");
183 constexpr counted_iterator operator+(iter_difference_t<_Iter> __n) const
186 return counted_iterator(__current_ + __n, __count_ - __n);
191 iter_difference_t<_Iter> __n, const counted_iterator& __x)
194 return __x + __n;
198 constexpr counted_iterator& operator+=(iter_difference_t<_Iter> __n)
201 _LIBCPP_ASSERT(__n <= __count_, "Cannot advance iterator past end.");
202 __current_ += __n;
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/include/__string/
Dchar_traits.h96 int compare(const char_type* __s1, const char_type* __s2, size_t __n) { in compare()
97 for (; __n; --__n, ++__s1, ++__s2) in compare()
114 const char_type* find(const char_type* __s, size_t __n, const char_type& __a) { in find()
115 for (; __n; --__n) in find()
124 char_type* move(char_type* __s1, const char_type* __s2, size_t __n) { in move()
125 if (__n == 0) return __s1; in move()
129 for (; __n; --__n, ++__s1, ++__s2) in move()
134 __s1 += __n; in move()
135 __s2 += __n; in move()
136 for (; __n; --__n) in move()
[all …]
/external/libcxx/include/
D__string92 int compare(const char_type* __s1, const char_type* __s2, size_t __n);
96 const char_type* find(const char_type* __s, size_t __n, const char_type& __a);
97 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n);
99 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n);
101 static char_type* assign(char_type* __s, size_t __n, char_type __a);
117 char_traits<_CharT>::compare(const char_type* __s1, const char_type* __s2, size_t __n)
119 for (; __n; --__n, ++__s1, ++__s2)
143 char_traits<_CharT>::find(const char_type* __s, size_t __n, const char_type& __a)
145 for (; __n; --__n)
156 char_traits<_CharT>::move(char_type* __s1, const char_type* __s2, size_t __n)
[all …]
D__bit_reference158 __find_bool_true(__bit_iterator<_Cp, _IsConst> __first, typename _Cp::size_type __n)
167 __storage_type __dn = _VSTD::min(__clz_f, __n);
172 if (__n == __dn)
173 return __first + __n;
174 __n -= __dn;
178 for (; __n >= __bits_per_word; ++__first.__seg_, __n -= __bits_per_word)
182 if (__n > 0)
184 __storage_type __m = ~__storage_type(0) >> (__bits_per_word - __n);
189 return _It(__first.__seg_, static_cast<unsigned>(__n));
194 __find_bool_false(__bit_iterator<_Cp, _IsConst> __first, typename _Cp::size_type __n)
[all …]
Dvector514 explicit vector(size_type __n);
516 explicit vector(size_type __n, const allocator_type& __a);
518 vector(size_type __n, const value_type& __x);
519 vector(size_type __n, const value_type& __x, const allocator_type& __a);
612 void assign(size_type __n, const_reference __u);
665 void reserve(size_type __n);
668 _LIBCPP_INLINE_VISIBILITY reference operator[](size_type __n);
669 _LIBCPP_INLINE_VISIBILITY const_reference operator[](size_type __n) const;
670 reference at(size_type __n);
671 const_reference at(size_type __n) const;
[all …]
Ddeque357 _LIBCPP_INLINE_VISIBILITY __deque_iterator& operator+=(difference_type __n)
359 if (__n != 0)
361 __n += __ptr_ - *__m_iter_;
362 if (__n > 0)
364 __m_iter_ += __n / __block_size;
365 __ptr_ = *__m_iter_ + __n % __block_size;
367 else // (__n < 0)
369 difference_type __z = __block_size - 1 - __n;
377 _LIBCPP_INLINE_VISIBILITY __deque_iterator& operator-=(difference_type __n)
379 return *this += -__n;
[all …]
/external/libcxx/test/support/
Dconstexpr_char_traits.hpp37 …CONSTEXPR_CXX14 int compare(const char_type* __s1, const char_type* __s2, size_t __n);
39 …static TEST_CONSTEXPR_CXX14 const char_type* find(const char_type* __s, size_t __n, const char_typ…
40 …tic TEST_CONSTEXPR_CXX14 char_type* move(char_type* __s1, const char_type* __s2, size_t __n);
41 …tic TEST_CONSTEXPR_CXX14 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n);
42 static TEST_CONSTEXPR_CXX14 char_type* assign(char_type* __s, size_t __n, char_type __a);
63 constexpr_char_traits<_CharT>::compare(const char_type* __s1, const char_type* __s2, size_t __n) in compare() argument
65 for (; __n; --__n, ++__s1, ++__s2) in compare()
87 constexpr_char_traits<_CharT>::find(const char_type* __s, size_t __n, const char_type& __a) in find() argument
89 for (; __n; --__n) in find()
100 constexpr_char_traits<_CharT>::move(char_type* __s1, const char_type* __s2, size_t __n) in move() argument
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/include/__random/
Dseed_seq.h95 const size_t __n = static_cast<size_t>(__last - __first); in generate() local
97 const size_t __t = (__n >= 623) ? 11 in generate()
98 : (__n >= 68) ? 7 in generate()
99 : (__n >= 39) ? 5 in generate()
100 : (__n >= 7) ? 3 in generate()
101 : (__n - 1) / 2; in generate()
102 const size_t __p = (__n - __t) / 2; in generate()
104 const size_t __m = _VSTD::max(__s + 1, __n); in generate()
108 ^ __first[__n - 1]); in generate()
117 size_t __k1modn = __n - 1; // (__k - 1) % __n in generate()
[all …]
Dpiecewise_constant_distribution.h272 size_t __n = __b_.size() - 1; in param_type() local
273 result_type __d = (__xmax - __xmin) / __n; in param_type()
274 __densities_.reserve(__n); in param_type()
275 for (size_t __i = 0; __i < __n; ++__i) in param_type()
280 __b_[__n] = __xmax; in param_type()
308 size_t __n = __x.__p_.__b_.size();
309 __os << __n;
310 for (size_t __i = 0; __i < __n; ++__i)
312 __n = __x.__p_.__densities_.size();
313 __os << __sp << __n;
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/include/__format/
Dbuffer.h65 … __flush_([](_CharT* __p, size_t __n, void* __o) { static_cast<_Tp*>(__o)->__flush(__p, __n); }), in __output_buffer()
102 size_t __n = __str.size(); in __copy() local
104 __flush_on_overflow(__n); in __copy()
105 if (__n <= __capacity_) { in __copy()
106 _VSTD::copy_n(__str.data(), __n, _VSTD::addressof(__ptr_[__size_])); in __copy()
107 __size_ += __n; in __copy()
116 size_t __chunk = _VSTD::min(__n, __capacity_); in __copy()
120 __n -= __chunk; in __copy()
122 } while (__n); in __copy()
132 size_t __n = static_cast<size_t>(__last - __first); in __transform() local
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/include/
D__bit_reference186 __find_bool_true(__bit_iterator<_Cp, _IsConst> __first, typename _Cp::size_type __n)
195 __storage_type __dn = _VSTD::min(__clz_f, __n);
200 if (__n == __dn)
201 return __first + __n;
202 __n -= __dn;
206 for (; __n >= __bits_per_word; ++__first.__seg_, __n -= __bits_per_word)
210 if (__n > 0)
212 __storage_type __m = ~__storage_type(0) >> (__bits_per_word - __n);
217 return _It(__first.__seg_, static_cast<unsigned>(__n));
222 __find_bool_false(__bit_iterator<_Cp, _IsConst> __first, typename _Cp::size_type __n)
[all …]
Dvector393 _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI explicit vector(size_type __n);
395 …_LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI explicit vector(size_type __n, const allocator…
397 … _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI vector(size_type __n, const value_type& __x);
401 vector(size_type __n, const value_type& __x, const allocator_type& __a)
405 if (__n > 0)
407 __vallocate(__n);
408 __construct_at_end(__n, __x);
503 …_LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI void assign(size_type __n, const_reference __u…
556 _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI void reserve(size_type __n);
559 …_LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI reference operator[](size_type __n) _NOE…
[all …]
/external/musl/arch/x86_64/bits/
Dio.h37 static __inline void outsb(unsigned short __port, const void *__buf, unsigned long __n) in outsb() argument
40 : "+S" (__buf), "+c" (__n) in outsb()
44 static __inline void outsw(unsigned short __port, const void *__buf, unsigned long __n) in outsw() argument
47 : "+S" (__buf), "+c" (__n) in outsw()
51 static __inline void outsl(unsigned short __port, const void *__buf, unsigned long __n) in outsl() argument
54 : "+S" (__buf), "+c"(__n) in outsl()
58 static __inline void insb(unsigned short __port, void *__buf, unsigned long __n) in insb() argument
61 : "+D" (__buf), "+c" (__n) in insb()
65 static __inline void insw(unsigned short __port, void *__buf, unsigned long __n) in insw() argument
68 : "+D" (__buf), "+c" (__n) in insw()
[all …]
/external/musl/arch/i386/bits/
Dio.h37 static __inline void outsb(unsigned short __port, const void *__buf, unsigned long __n) in outsb() argument
40 : "+S" (__buf), "+c" (__n) in outsb()
44 static __inline void outsw(unsigned short __port, const void *__buf, unsigned long __n) in outsw() argument
47 : "+S" (__buf), "+c" (__n) in outsw()
51 static __inline void outsl(unsigned short __port, const void *__buf, unsigned long __n) in outsl() argument
54 : "+S" (__buf), "+c"(__n) in outsl()
58 static __inline void insb(unsigned short __port, void *__buf, unsigned long __n) in insb() argument
61 : "+D" (__buf), "+c" (__n) in insb()
65 static __inline void insw(unsigned short __port, void *__buf, unsigned long __n) in insw() argument
68 : "+D" (__buf), "+c" (__n) in insw()
[all …]
/external/musl/arch/x32/bits/
Dio.h37 static __inline void outsb(unsigned short __port, const void *__buf, unsigned long __n) in outsb() argument
40 : "+S" (__buf), "+c" (__n) in outsb()
44 static __inline void outsw(unsigned short __port, const void *__buf, unsigned long __n) in outsw() argument
47 : "+S" (__buf), "+c" (__n) in outsw()
51 static __inline void outsl(unsigned short __port, const void *__buf, unsigned long __n) in outsl() argument
54 : "+S" (__buf), "+c"(__n) in outsl()
58 static __inline void insb(unsigned short __port, void *__buf, unsigned long __n) in insb() argument
61 : "+D" (__buf), "+c" (__n) in insb()
65 static __inline void insw(unsigned short __port, void *__buf, unsigned long __n) in insw() argument
68 : "+D" (__buf), "+c" (__n) in insw()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/include/__memory/
Dallocator.h109 _Tp* allocate(size_t __n) {
110 if (__n > allocator_traits<allocator>::max_size(*this))
113 return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp)));
115 … return static_cast<_Tp*>(_VSTD::__libcpp_allocate(__n * sizeof(_Tp), _LIBCPP_ALIGNOF(_Tp)));
121 allocation_result<_Tp*> allocate_at_least(size_t __n) {
122 return {allocate(__n), __n};
127 void deallocate(_Tp* __p, size_t __n) _NOEXCEPT {
131 _VSTD::__libcpp_deallocate((void*)__p, __n * sizeof(_Tp), _LIBCPP_ALIGNOF(_Tp));
157 _Tp* allocate(size_t __n, const void*) {
158 return allocate(__n);
[all …]
Dallocate_at_least.h32 …result<typename allocator_traits<_Alloc>::pointer> allocate_at_least(_Alloc& __alloc, size_t __n) { in allocate_at_least() argument
33 if constexpr (requires { __alloc.allocate_at_least(__n); }) { in allocate_at_least()
34 return __alloc.allocate_at_least(__n); in allocate_at_least()
36 return {__alloc.allocate(__n), __n}; in allocate_at_least()
42 auto __allocate_at_least(_Alloc& __alloc, size_t __n) { in __allocate_at_least() argument
43 return std::allocate_at_least(__alloc, __n); in __allocate_at_least()
54 …sult<typename allocator_traits<_Alloc>::pointer> __allocate_at_least(_Alloc& __alloc, size_t __n) {
55 return {__alloc.allocate(__n), __n};
Dtemporary_buffer.h28 get_temporary_buffer(ptrdiff_t __n) _NOEXCEPT in get_temporary_buffer() argument
34 if (__n > __m) in get_temporary_buffer()
35 __n = __m; in get_temporary_buffer()
36 while (__n > 0) in get_temporary_buffer()
44 __n * sizeof(_Tp), __al, nothrow)); in get_temporary_buffer()
47 __n * sizeof(_Tp), nothrow)); in get_temporary_buffer()
57 __r.first = static_cast<_Tp*>(::operator new(__n * sizeof(_Tp), nothrow)); in get_temporary_buffer()
62 __r.second = __n; in get_temporary_buffer()
65 __n /= 2; in get_temporary_buffer()
/external/liburing/src/arch/aarch64/
Dsyscall.h21 #define __do_syscall0(__n) ({ \ argument
22 register long x8 __asm__("x8") = __n; \
28 #define __do_syscall1(__n, __a) ({ \ argument
29 register long x8 __asm__("x8") = __n; \
35 #define __do_syscall2(__n, __a, __b) ({ \ argument
36 register long x8 __asm__("x8") = __n; \
43 #define __do_syscall3(__n, __a, __b, __c) ({ \ argument
44 register long x8 __asm__("x8") = __n; \
52 #define __do_syscall4(__n, __a, __b, __c, __d) ({ \ argument
53 register long x8 __asm__("x8") = __n; \
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/include/__algorithm/
Dsample.h37 _Distance __n, in __sample() argument
42 for (; __first != __last && __k < __n; ++__first, (void) ++__k) in __sample()
50 return __output_iter + _VSTD::min(__n, __k); in __sample()
59 _Distance __n, in __sample() argument
63 for (__n = _VSTD::min(__n, __unsampled_sz); __n != 0; ++__first) { in __sample()
65 if (__r < __n) { in __sample()
67 --__n; in __sample()
79 _Distance __n, _UniformRandomNumberGenerator& __g) { in __sample() argument
80 _LIBCPP_ASSERT(__n >= 0, "N must be a positive number."); in __sample()
87 std::move(__first), std::move(__last), std::move(__output_iter), _CommonType(__n), in __sample()
[all …]
Dshift_right.h31 typename iterator_traits<_ForwardIterator>::difference_type __n) in shift_right() argument
33 if (__n == 0) { in shift_right()
38 decltype(__n) __d = __last - __first; in shift_right()
39 if (__n >= __d) { in shift_right()
42 _ForwardIterator __m = __first + (__d - __n); in shift_right()
46 for (; __n > 0; --__n) { in shift_right()
55 for (; __n > 0; --__n) { in shift_right()
/external/cronet/buildtools/third_party/libc++/trunk/src/
Dstrstream.cpp39 strstreambuf::__init(char* __gnext, streamsize __n, char* __pbeg) in __init() argument
41 if (__n == 0) in __init()
42 __n = static_cast<streamsize>(strlen(__gnext)); in __init()
43 else if (__n < 0) in __init()
44 __n = INT_MAX; in __init()
46 setg(__gnext, __gnext, __gnext + __n); in __init()
50 setp(__pbeg, __pbeg + __n); in __init()
54 strstreambuf::strstreambuf(char* __gnext, streamsize __n, char* __pbeg) in strstreambuf() argument
60 __init(__gnext, __n, __pbeg); in strstreambuf()
63 strstreambuf::strstreambuf(const char* __gnext, streamsize __n) in strstreambuf() argument
[all …]
/external/libcxx/src/
Dstrstream.cpp37 strstreambuf::__init(char* __gnext, streamsize __n, char* __pbeg) in __init() argument
39 if (__n == 0) in __init()
40 __n = static_cast<streamsize>(strlen(__gnext)); in __init()
41 else if (__n < 0) in __init()
42 __n = INT_MAX; in __init()
44 setg(__gnext, __gnext, __gnext + __n); in __init()
48 setp(__pbeg, __pbeg + __n); in __init()
52 strstreambuf::strstreambuf(char* __gnext, streamsize __n, char* __pbeg) in strstreambuf() argument
58 __init(__gnext, __n, __pbeg); in strstreambuf()
61 strstreambuf::strstreambuf(const char* __gnext, streamsize __n) in strstreambuf() argument
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/include/__ranges/
Diota_view.h80 requires(_Iter __i, const _Iter __j, const _IotaDiffT<_Iter> __n) { in requires() argument
81 { __i += __n } -> same_as<_Iter&>; in requires()
82 { __i -= __n } -> same_as<_Iter&>; in requires()
83 _Iter(__j + __n); in requires()
84 _Iter(__n + __j); in requires()
85 _Iter(__j - __n); in requires()
155 constexpr __iterator& operator+=(difference_type __n)
159 if (__n >= difference_type(0)) {
160 __value_ += static_cast<_Start>(__n);
162 __value_ -= static_cast<_Start>(-__n);
[all …]

12345678