Home
last modified time | relevance | path

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

123

/external/libcxx/test/support/
Dconstexpr_char_traits.hpp36 …XPR_AFTER_CXX11 int compare(const char_type* __s1, const char_type* __s2, size_t __n);
38 …static _LIBCPP_CONSTEXPR_AFTER_CXX11 const char_type* find(const char_type* __s, size_t __n, const…
39 …PP_CONSTEXPR_AFTER_CXX11 char_type* move(char_type* __s1, const char_type* __s2, size_t __n);
40 …PP_CONSTEXPR_AFTER_CXX11 char_type* copy(char_type* __s1, const char_type* __s2, size_t __n);
41 …static _LIBCPP_CONSTEXPR_AFTER_CXX11 char_type* assign(char_type* __s, size_t __n, char_type…
62 constexpr_char_traits<_CharT>::compare(const char_type* __s1, const char_type* __s2, size_t __n) in compare() argument
64 for (; __n; --__n, ++__s1, ++__s2) in compare()
86 constexpr_char_traits<_CharT>::find(const char_type* __s, size_t __n, const char_type& __a) in find() argument
88 for (; __n; --__n) in find()
99 constexpr_char_traits<_CharT>::move(char_type* __s1, const char_type* __s2, size_t __n) in move() argument
[all …]
/external/libcxx/include/
D__bit_reference162 __find_bool_true(__bit_iterator<_Cp, _IsConst> __first, typename _Cp::size_type __n)
171 __storage_type __dn = _VSTD::min(__clz_f, __n);
176 if (__n == __dn)
177 return __first + __n;
178 __n -= __dn;
182 for (; __n >= __bits_per_word; ++__first.__seg_, __n -= __bits_per_word)
186 if (__n > 0)
188 __storage_type __m = ~__storage_type(0) >> (__bits_per_word - __n);
193 return _It(__first.__seg_, static_cast<unsigned>(__n));
198 __find_bool_false(__bit_iterator<_Cp, _IsConst> __first, typename _Cp::size_type __n)
[all …]
Dvector501 explicit vector(size_type __n);
503 explicit vector(size_type __n, const allocator_type& __a);
505 vector(size_type __n, const_reference __x);
506 vector(size_type __n, const_reference __x, const allocator_type& __a);
597 void assign(size_type __n, const_reference __u);
649 void reserve(size_type __n);
652 _LIBCPP_INLINE_VISIBILITY reference operator[](size_type __n);
653 _LIBCPP_INLINE_VISIBILITY const_reference operator[](size_type __n) const;
654 reference at(size_type __n);
655 const_reference at(size_type __n) const;
[all …]
Ddeque332 _LIBCPP_INLINE_VISIBILITY __deque_iterator& operator+=(difference_type __n)
334 if (__n != 0)
336 __n += __ptr_ - *__m_iter_;
337 if (__n > 0)
339 __m_iter_ += __n / __block_size;
340 __ptr_ = *__m_iter_ + __n % __block_size;
342 else // (__n < 0)
344 difference_type __z = __block_size - 1 - __n;
352 _LIBCPP_INLINE_VISIBILITY __deque_iterator& operator-=(difference_type __n)
354 return *this += -__n;
[all …]
Dstring519 static int compare(const char_type* __s1, const char_type* __s2, size_t __n);
521 static const char_type* find(const char_type* __s, size_t __n, const char_type& __a);
522 static char_type* move(char_type* __s1, const char_type* __s2, size_t __n);
523 static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n);
524 static char_type* assign(char_type* __s, size_t __n, char_type __a);
540 char_traits<_CharT>::compare(const char_type* __s1, const char_type* __s2, size_t __n)
542 for (; __n; --__n, ++__s1, ++__s2)
566 char_traits<_CharT>::find(const char_type* __s, size_t __n, const char_type& __a)
568 for (; __n; --__n)
579 char_traits<_CharT>::move(char_type* __s1, const char_type* __s2, size_t __n)
[all …]
Dunordered_set374 explicit unordered_set(size_type __n, const hasher& __hf = hasher(),
378 unordered_set(size_type __n, const allocator_type& __a)
379 : unordered_set(__n, hasher(), key_equal(), __a) {}
381 unordered_set(size_type __n, const hasher& __hf, const allocator_type& __a)
382 : unordered_set(__n, __hf, key_equal(), __a) {}
384 unordered_set(size_type __n, const hasher& __hf, const key_equal& __eql,
390 size_type __n, const hasher& __hf = hasher(),
394 size_type __n, const hasher& __hf, const key_equal& __eql,
400 size_type __n, const allocator_type& __a)
401 : unordered_set(__first, __last, __n, hasher(), key_equal(), __a) {}
[all …]
Distream221 basic_istream& operator>>(bool& __n);
222 basic_istream& operator>>(short& __n);
223 basic_istream& operator>>(unsigned short& __n);
224 basic_istream& operator>>(int& __n);
225 basic_istream& operator>>(unsigned int& __n);
226 basic_istream& operator>>(long& __n);
227 basic_istream& operator>>(unsigned long& __n);
228 basic_istream& operator>>(long long& __n);
229 basic_istream& operator>>(unsigned long long& __n);
240 basic_istream& get(char_type* __s, streamsize __n);
[all …]
D__debug95 _C_node(void* __c, __c_node* __n)
96 : __c_node(__c, __n) {}
126 _C_node<_Cont>::__addable(const void* __i, ptrdiff_t __n) const
131 return _Cp->__addable(__j, __n);
136 _C_node<_Cont>::__subscriptable(const void* __i, ptrdiff_t __n) const
141 return _Cp->__subscriptable(__j, __n);
178 __c_node* __n = __insert_c(static_cast<void*>(__c));
179 ::new(__n) _C_node<_Cont>(__n->__c_, __n->__next_);
201 bool __addable(const void* __i, ptrdiff_t __n) const;
202 bool __subscriptable(const void* __i, ptrdiff_t __n) const;
Dostream195 basic_ostream& operator<<(bool __n);
196 basic_ostream& operator<<(short __n);
197 basic_ostream& operator<<(unsigned short __n);
198 basic_ostream& operator<<(int __n);
199 basic_ostream& operator<<(unsigned int __n);
200 basic_ostream& operator<<(long __n);
201 basic_ostream& operator<<(unsigned long __n);
202 basic_ostream& operator<<(long long __n);
203 basic_ostream& operator<<(unsigned long long __n);
212 basic_ostream& write(const char_type* __s, streamsize __n);
[all …]
Dstreambuf139 basic_streambuf* pubsetbuf(char_type* __s, streamsize __n);
152 streamsize sgetn(char_type* __s, streamsize __n);
160 streamsize sputn(const char_type* __s, streamsize __n);
172 void gbump(int __n);
179 void pbump(int __n);
187 virtual basic_streambuf* setbuf(char_type* __s, streamsize __n);
196 virtual streamsize xsgetn(char_type* __s, streamsize __n);
204 virtual streamsize xsputn(const char_type* __s, streamsize __n);
244 basic_streambuf<_CharT, _Traits>::pubsetbuf(char_type* __s, streamsize __n)
246 return setbuf(__s, __n);
[all …]
Dunordered_map827 explicit unordered_map(size_type __n, const hasher& __hf = hasher(),
829 unordered_map(size_type __n, const hasher& __hf,
836 size_type __n, const hasher& __hf = hasher(),
840 size_type __n, const hasher& __hf,
853 unordered_map(initializer_list<value_type> __il, size_type __n,
855 unordered_map(initializer_list<value_type> __il, size_type __n,
861 unordered_map(size_type __n, const allocator_type& __a)
862 : unordered_map(__n, hasher(), key_equal(), __a) {}
864 unordered_map(size_type __n, const hasher& __hf, const allocator_type& __a)
865 : unordered_map(__n, __hf, key_equal(), __a) {}
[all …]
Dlist690 __node_pointer __n = __f;
692 __node_alloc_traits::destroy(__na, _VSTD::addressof(__n->__value_));
693 __node_alloc_traits::deallocate(__na, __n, 1);
822 explicit list(size_type __n);
824 explicit list(size_type __n, const allocator_type& __a);
826 list(size_type __n, const value_type& __x);
827 list(size_type __n, const value_type& __x, const allocator_type& __a);
860 void assign(size_type __n, const value_type& __x);
952 iterator insert(const_iterator __p, size_type __n, const value_type& __x);
980 void resize(size_type __n);
[all …]
Dstrstream146 strstreambuf(char* __gnext, streamsize __n, char* __pbeg = 0);
147 strstreambuf(const char* __gnext, streamsize __n);
149 strstreambuf(signed char* __gnext, streamsize __n, signed char* __pbeg = 0);
150 strstreambuf(const signed char* __gnext, streamsize __n);
151 strstreambuf(unsigned char* __gnext, streamsize __n, unsigned char* __pbeg = 0);
152 strstreambuf(const unsigned char* __gnext, streamsize __n);
191 void __init(char* __gnext, streamsize __n, char* __pbeg);
242 istrstream(const char* __s, streamsize __n)
243 : istream(&__sb_), __sb_(__s, __n) {}
245 istrstream(char* __s, streamsize __n)
[all …]
Dvalarray703 __shift_expr(int __n, const _RmExpr& __e)
706 __n_(__n)
744 __cshift_expr(int __n, const _RmExpr& __e)
748 __n %= static_cast<int>(__size_);
749 if (__n >= 0)
751 __m_ = __size_ - __n;
752 __o1_ = __n;
753 __o2_ = __n - __size_;
757 __m_ = -__n;
758 __o1_ = __n + __size_;
[all …]
D__split_buffer95 void reserve(size_type __n);
111 void __construct_at_end(size_type __n);
112 void __construct_at_end(size_type __n, const_reference __x);
186 // Default constructs __n objects starting at __end_
188 // Precondition: __n > 0
189 // Precondition: size() + __n <= capacity()
190 // Postcondition: size() == size() + __n
193 __split_buffer<_Tp, _Allocator>::__construct_at_end(size_type __n)
200 --__n;
201 } while (__n > 0);
[all …]
Diterator454 typename iterator_traits<_InputIter>::difference_type __n, input_iterator_tag)
456 for (; __n > 0; --__n)
463 typename iterator_traits<_BiDirIter>::difference_type __n, bidirectional_iterator_tag)
465 if (__n >= 0)
466 for (; __n > 0; --__n)
469 for (; __n < 0; ++__n)
476 typename iterator_traits<_RandIter>::difference_type __n, random_access_iterator_tag)
478 __i += __n;
484 typename iterator_traits<_InputIter>::difference_type __n)
486 __advance(__i, __n, typename iterator_traits<_InputIter>::iterator_category());
[all …]
Dforward_list555 explicit forward_list(size_type __n);
557 explicit forward_list(size_type __n, const allocator_type& __a);
559 forward_list(size_type __n, const value_type& __v);
560 forward_list(size_type __n, const value_type& __v, const allocator_type& __a);
606 void assign(size_type __n, const value_type& __v);
675 iterator insert_after(const_iterator __p, size_type __n, const value_type& __v);
702 void resize(size_type __n);
703 void resize(size_type __n, const value_type& __v);
768 forward_list<_Tp, _Alloc>::forward_list(size_type __n)
770 if (__n > 0)
[all …]
/external/libcxx/src/
Dstrstream.cpp34 strstreambuf::__init(char* __gnext, streamsize __n, char* __pbeg) in __init() argument
36 if (__n == 0) in __init()
37 __n = static_cast<streamsize>(strlen(__gnext)); in __init()
38 else if (__n < 0) in __init()
39 __n = INT_MAX; in __init()
41 setg(__gnext, __gnext, __gnext + __n); in __init()
45 setp(__pbeg, __pbeg + __n); in __init()
49 strstreambuf::strstreambuf(char* __gnext, streamsize __n, char* __pbeg) in strstreambuf() argument
55 __init(__gnext, __n, __pbeg); in strstreambuf()
58 strstreambuf::strstreambuf(const char* __gnext, streamsize __n) in strstreambuf() argument
[all …]
/external/libcxx/include/experimental/
Dalgorithm64 _Distance __n,
69 for (; __first != __last && __k < __n; ++__first, (void)++__k)
77 return __out + _VSTD::min(__n, __k);
85 _Distance __n,
89 for (__n = _VSTD::min(__n, __unsampled_sz); __n != 0; ++__first) {
92 if (__r < __n) {
94 --__n;
105 _Distance __n, _UniformRandomNumberGenerator &&__g) {
111 _LIBCPP_ASSERT(__n >= 0, "N must be a positive number.");
113 __first, __last, __out, _CommonType(__n),
/external/libcxx/include/ext/
Dhash_set243 explicit hash_set(size_type __n, const hasher& __hf = hasher(),
245 hash_set(size_type __n, const hasher& __hf, const key_equal& __eql,
251 size_type __n, const hasher& __hf = hasher(),
255 size_type __n, const hasher& __hf, const key_equal& __eql,
324 size_type elems_in_bucket(size_type __n) const {return __table_.bucket_size(__n);}
327 void resize(size_type __n) {__table_.rehash(__n);}
331 hash_set<_Value, _Hash, _Pred, _Alloc>::hash_set(size_type __n,
335 __table_.rehash(__n);
339 hash_set<_Value, _Hash, _Pred, _Alloc>::hash_set(size_type __n,
343 __table_.rehash(__n);
[all …]
/external/bison/lib/
Dstring.in.h97 _GL_FUNCDECL_RPL (memchr, void *, (void const *__s, int __c, size_t __n)
100 _GL_CXXALIAS_RPL (memchr, void *, (void const *__s, int __c, size_t __n));
103 _GL_FUNCDECL_SYS (memchr, void *, (void const *__s, int __c, size_t __n)
111 void *, (void const *__s, int __c, size_t __n),
112 void const *, (void const *__s, int __c, size_t __n));
116 _GL_CXXALIASWARN1 (memchr, void *, (void *__s, int __c, size_t __n));
118 (void const *__s, int __c, size_t __n));
171 size_t __n)
176 size_t __n));
272 size_t __n)
[all …]
/external/libcxx/src/support/solaris/
Dxlocale.c27 #define vsnprintf_l(__s, __n, __l, __format, __va) \ argument
28 vsnprintf(__s, __n, __format, __va)
30 int snprintf_l(char *__s, size_t __n, locale_t __l, const char *__format, ...) in snprintf_l() argument
34 int __res = vsnprintf_l(__s, __n , __l, __format, __va); in snprintf_l()
/external/llvm/test/CodeGen/AArch64/
Danalyzecmp.ll25 %__n = phi i64 [ %add3, %if.then ], [ %div, %entry ]
26 %__n.0 = phi i64 [ %add2, %if.then ], [ %rem, %entry ]
27 store i64 %__n, i64* %ptr1
28 store i64 %__n.0, i64* %ptr2
/external/bison/linux-lib/
Dstring.h409 _GL_FUNCDECL_RPL (memchr, void *, (void const *__s, int __c, size_t __n)
412 _GL_CXXALIAS_RPL (memchr, void *, (void const *__s, int __c, size_t __n));
415 _GL_FUNCDECL_SYS (memchr, void *, (void const *__s, int __c, size_t __n)
423 void *, (void const *__s, int __c, size_t __n),
424 void const *, (void const *__s, int __c, size_t __n));
428 _GL_CXXALIASWARN1 (memchr, void *, (void *__s, int __c, size_t __n));
430 (void const *__s, int __c, size_t __n));
483 size_t __n)
488 size_t __n));
584 size_t __n)
[all …]
/external/bison/darwin-lib/
Dstring.h409 _GL_FUNCDECL_RPL (memchr, void *, (void const *__s, int __c, size_t __n)
412 _GL_CXXALIAS_RPL (memchr, void *, (void const *__s, int __c, size_t __n));
415 _GL_FUNCDECL_SYS (memchr, void *, (void const *__s, int __c, size_t __n)
423 void *, (void const *__s, int __c, size_t __n),
424 void const *, (void const *__s, int __c, size_t __n));
428 _GL_CXXALIASWARN1 (memchr, void *, (void *__s, int __c, size_t __n));
430 (void const *__s, int __c, size_t __n));
483 size_t __n)
488 size_t __n));
584 size_t __n)
[all …]

123