Home
last modified time | relevance | path

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

1234

/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 …]
Distream234 basic_istream& operator>>(bool& __n);
235 basic_istream& operator>>(short& __n);
236 basic_istream& operator>>(unsigned short& __n);
237 basic_istream& operator>>(int& __n);
238 basic_istream& operator>>(unsigned int& __n);
239 basic_istream& operator>>(long& __n);
240 basic_istream& operator>>(unsigned long& __n);
241 basic_istream& operator>>(long long& __n);
242 basic_istream& operator>>(unsigned long long& __n);
262 basic_istream& get(char_type* __s, streamsize __n)
[all …]
Dunordered_set430 explicit unordered_set(size_type __n, const hasher& __hf = hasher(),
434 unordered_set(size_type __n, const allocator_type& __a)
435 : unordered_set(__n, hasher(), key_equal(), __a) {}
437 unordered_set(size_type __n, const hasher& __hf, const allocator_type& __a)
438 : unordered_set(__n, __hf, key_equal(), __a) {}
440 unordered_set(size_type __n, const hasher& __hf, const key_equal& __eql,
446 size_type __n, const hasher& __hf = hasher(),
450 size_type __n, const hasher& __hf, const key_equal& __eql,
456 size_type __n, const allocator_type& __a)
457 : unordered_set(__first, __last, __n, hasher(), key_equal(), __a) {}
[all …]
Dostream207 basic_ostream& operator<<(bool __n);
208 basic_ostream& operator<<(short __n);
209 basic_ostream& operator<<(unsigned short __n);
210 basic_ostream& operator<<(int __n);
211 basic_ostream& operator<<(unsigned int __n);
212 basic_ostream& operator<<(long __n);
213 basic_ostream& operator<<(unsigned long __n);
214 basic_ostream& operator<<(long long __n);
215 basic_ostream& operator<<(unsigned long long __n);
224 basic_ostream& write(const char_type* __s, streamsize __n);
[all …]
Dstreambuf154 basic_streambuf* pubsetbuf(char_type* __s, streamsize __n)
155 { return setbuf(__s, __n); }
201 streamsize sgetn(char_type* __s, streamsize __n)
202 { return xsgetn(__s, __n); }
229 streamsize sputn(const char_type* __s, streamsize __n)
230 { return xsputn(__s, __n); }
244 void gbump(int __n) { __ninp_ += __n; }
259 void pbump(int __n) { __nout_ += __n; }
262 void __pbump(streamsize __n) { __nout_ += __n; }
275 virtual basic_streambuf* setbuf(char_type* __s, streamsize __n);
[all …]
Dstring.h95 void* __libcpp_memchr(const void* __s, int __c, size_t __n) {return (void*)memchr(__s, __c, __n);} in __libcpp_memchr() argument
97 const void* memchr(const void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);} in memchr() argument
99 void* memchr( void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);} in memchr() argument
Dstring835 basic_string(const _CharT* __s, size_type __n);
837 basic_string(const _CharT* __s, size_type __n, const _Allocator& __a);
839 basic_string(size_type __n, _CharT __c);
845 basic_string(size_type __n, _CharT __c, const _Allocator& __a);
847 basic_string(const basic_string& __str, size_type __pos, size_type __n,
855 basic_string(const _Tp& __t, size_type __pos, size_type __n,
961 void resize(size_type __n, value_type __c);
962 _LIBCPP_INLINE_VISIBILITY void resize(size_type __n) {resize(__n, value_type());}
965 _LIBCPP_INLINE_VISIBILITY void __resize_default_init(size_type __n);
979 const_reference at(size_type __n) const;
[all …]
Dunordered_map911 explicit unordered_map(size_type __n, const hasher& __hf = hasher(),
913 unordered_map(size_type __n, const hasher& __hf,
920 size_type __n, const hasher& __hf = hasher(),
924 size_type __n, const hasher& __hf,
937 unordered_map(initializer_list<value_type> __il, size_type __n,
939 unordered_map(initializer_list<value_type> __il, size_type __n,
945 unordered_map(size_type __n, const allocator_type& __a)
946 : unordered_map(__n, hasher(), key_equal(), __a) {}
948 unordered_map(size_type __n, const hasher& __hf, const allocator_type& __a)
949 : unordered_map(__n, __hf, key_equal(), __a) {}
[all …]
Dvalarray704 __shift_expr(int __n, const _RmExpr& __e)
707 __n_(__n)
745 __cshift_expr(int __n, const _RmExpr& __e)
749 __n %= static_cast<int>(__size_);
750 if (__n >= 0)
752 __m_ = __size_ - __n;
753 __o1_ = __n;
754 __o2_ = __n - __size_;
758 __m_ = -__n;
759 __o1_ = __n + __size_;
[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 …]
Dwchar.h165 …ibcpp_wmemchr(const wchar_t* __s, wchar_t __c, size_t __n) {return (wchar_t*)wmemchr(__s, __c, __n in __libcpp_wmemchr() argument
167 …har_t* wmemchr(const wchar_t* __s, wchar_t __c, size_t __n) {return __libcpp_wmemchr(__s, __c, __n in wmemchr() argument
169 …har_t* wmemchr( wchar_t* __s, wchar_t __c, size_t __n) {return __libcpp_wmemchr(__s, __c, __n in wmemchr() argument
D__bsd_locale_fallbacks.h72 size_t __libcpp_mbrtowc_l(wchar_t *__pwc, const char *__s, size_t __n, in __libcpp_mbrtowc_l() argument
76 return mbrtowc(__pwc, __s, __n, __ps); in __libcpp_mbrtowc_l()
87 size_t __libcpp_mbrlen_l(const char *__s, size_t __n, mbstate_t *__ps, locale_t __l) in __libcpp_mbrlen_l() argument
90 return mbrlen(__s, __n, __ps); in __libcpp_mbrlen_l()
109 int __libcpp_snprintf_l(char *__s, size_t __n, locale_t __l, const char *__format, ...) { in __libcpp_snprintf_l() argument
113 int __res = vsnprintf(__s, __n, __format, __va); in __libcpp_snprintf_l()
D__debug175 _C_node(void* __c, __c_node* __n)
176 : __c_node(__c, __n) {}
206 _C_node<_Cont>::__addable(const void* __i, ptrdiff_t __n) const
211 return _Cp->__addable(__j, __n);
216 _C_node<_Cont>::__subscriptable(const void* __i, ptrdiff_t __n) const
221 return _Cp->__subscriptable(__j, __n);
258 __c_node* __n = __insert_c(static_cast<void*>(__c));
259 ::new(__n) _C_node<_Cont>(__n->__c_, __n->__next_);
281 bool __addable(const void* __i, ptrdiff_t __n) const;
282 bool __subscriptable(const void* __i, ptrdiff_t __n) const;
D__split_buffer100 void reserve(size_type __n);
114 void __construct_at_end(size_type __n);
115 void __construct_at_end(size_type __n, const_reference __x);
191 // Default constructs __n objects starting at __end_
193 // Precondition: __n > 0
194 // Precondition: size() + __n <= capacity()
195 // Postcondition: size() == size() + __n
198 __split_buffer<_Tp, _Allocator>::__construct_at_end(size_type __n)
205 --__n;
206 } while (__n > 0);
[all …]
Dlist877 explicit list(size_type __n);
879 explicit list(size_type __n, const allocator_type& __a);
881 list(size_type __n, const value_type& __x);
882 list(size_type __n, const value_type& __x, const allocator_type& __a);
921 void assign(size_type __n, const value_type& __x);
1034 iterator insert(const_iterator __p, size_type __n, const value_type& __x);
1057 void resize(size_type __n);
1058 void resize(size_type __n, const value_type& __x);
1117 bool __addable(const const_iterator* __i, ptrdiff_t __n) const;
1118 bool __subscriptable(const const_iterator* __i, ptrdiff_t __n) const;
[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/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/u-boot/arch/sh/include/asm/
Dstring.h33 static inline char *strncpy(char *__dest, const char *__src, size_t __n) in strncpy() argument
38 if (__n == 0) in strncpy()
52 : "0" (__dest), "1" (__src), "r" (__src+__n) in strncpy()
85 extern int strncmp(const char *__cs, const char *__ct, size_t __n);
91 extern void *memcpy(void *__to, __const__ void *__from, size_t __n);
94 extern void *memmove(void *__dest, __const__ void *__src, size_t __n);
97 extern void *memchr(const void *__s, int __c, size_t __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,
325 size_type elems_in_bucket(size_type __n) const {return __table_.bucket_size(__n);}
328 void resize(size_type __n) {__table_.rehash(__n);}
332 hash_set<_Value, _Hash, _Pred, _Alloc>::hash_set(size_type __n,
336 __table_.rehash(__n);
340 hash_set<_Value, _Hash, _Pred, _Alloc>::hash_set(size_type __n,
344 __table_.rehash(__n);
[all …]
/external/libese/libese-sysdeps/
Dandroid-sysdeps.c21 void *ese_memcpy(void *__dest, const void *__src, uint64_t __n) { in ese_memcpy() argument
22 return memcpy(__dest, __src, __n); in ese_memcpy()
25 void *ese_memset(void *__s, int __c, uint64_t __n) { in ese_memset() argument
26 return memset(__s, __c, __n); in ese_memset()
Ddarwin-sysdeps.c22 void *ese_memcpy(void *__dest, const void *__src, uint64_t __n) { in ese_memcpy() argument
23 return memcpy(__dest, __src, __n); in ese_memcpy()
26 void *ese_memset(void *__s, int __c, uint64_t __n) { in ese_memset() argument
27 return memset(__s, __c, __n); in ese_memset()
/external/libcxx/src/support/solaris/
Dxlocale.cpp28 #define vsnprintf_l(__s, __n, __l, __format, __va) \ argument
29 vsnprintf(__s, __n, __format, __va)
31 int snprintf_l(char *__s, size_t __n, locale_t __l, const char *__format, ...) in snprintf_l() argument
35 int __res = vsnprintf_l(__s, __n , __l, __format, __va); in snprintf_l()

1234