/ndk/sources/host-tools/sed-4.2.1/lib/ |
D | xalloc.h | 55 void *xmalloc (size_t s) ATTRIBUTE_MALLOC; 56 void *xzalloc (size_t s) ATTRIBUTE_MALLOC; 57 void *xcalloc (size_t n, size_t s) ATTRIBUTE_MALLOC; 58 void *xrealloc (void *p, size_t s); 59 void *x2realloc (void *p, size_t *pn); 60 void *xmemdup (void const *p, size_t s) ATTRIBUTE_MALLOC; 76 ((size_t) (sizeof (ptrdiff_t) <= sizeof (size_t) ? -1 : -2) / (s) < (n)) 108 void *xnmalloc (size_t n, size_t s) ATTRIBUTE_MALLOC; 109 void *xnrealloc (void *p, size_t n, size_t s); 110 void *x2nrealloc (void *p, size_t *pn, size_t s); [all …]
|
D | quotearg.h | 233 size_t quotearg_buffer (char *buffer, size_t buffersize, 234 char const *arg, size_t argsize, 240 char *quotearg_alloc (char const *arg, size_t argsize, 249 char *quotearg_alloc_mem (char const *arg, size_t argsize, 250 size_t *size, struct quoting_options const *o); 267 char *quotearg_n_mem (int n, char const *arg, size_t argsize); 270 char *quotearg_mem (char const *arg, size_t argsize); 281 char const *arg, size_t argsize); 288 char const *arg, size_t argsize); 294 char *quotearg_char_mem (char const *arg, size_t argsize, char ch); [all …]
|
D | mbrtowc.c | 38 size_t 39 mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps) in mbrtowc() 54 return (size_t)(-2); in mbrtowc() 58 size_t nstate = pstate[0]; in mbrtowc() 61 size_t m; in mbrtowc() 89 return (size_t)(-1); in mbrtowc() 293 size_t k = nstate; in mbrtowc() 306 return (size_t)(-2); in mbrtowc() 311 return (size_t)(-1); in mbrtowc() 321 size_t [all …]
|
/ndk/sources/cxx-stl/stlport/stlport/stl/ |
D | _hash_fun.h | 44 inline size_t __stl_hash_string(const char* __s) { in __stl_hash_string() 50 return size_t(__h); in __stl_hash_string() 57 size_t operator()(const char* __s) const { 65 size_t operator()(const char* __s) const { 72 size_t operator()(char __x) const { return __x; } 75 size_t operator()(unsigned char __x) const { return __x; } 79 size_t operator()(unsigned char __x) const { return __x; } 83 size_t operator()(short __x) const { return __x; } 86 size_t operator()(unsigned short __x) const { return __x; } 89 size_t operator()(int __x) const { return __x; } [all …]
|
D | _bitset.h | 74 static size_t _S_count(const unsigned char *__beg, const unsigned char *__end) in _S_count() 77 size_t __result = 0; in _S_count() 79 for (size_t i = 0; i < (sizeof(unsigned char) * 8); ++i) { in _S_count() 106 template<size_t _Nw> 119 static size_t _STLP_CALL _S_whichword( size_t __pos ) { in _S_whichword() 122 static size_t _STLP_CALL _S_whichbyte( size_t __pos ) { in _S_whichbyte() 125 static size_t _STLP_CALL _S_whichbit( size_t __pos ) { in _S_whichbit() 128 static _WordT _STLP_CALL _S_maskbit( size_t __pos ) { in _S_maskbit() 132 _WordT& _M_getword(size_t __pos) { return _M_w[_S_whichword(__pos)]; } in _M_getword() 133 _WordT _M_getword(size_t __pos) const { return _M_w[_S_whichword(__pos)]; } in _M_getword() [all …]
|
D | _bitset.c | 34 template<size_t _Nw> 35 void _Base_bitset<_Nw>::_M_do_left_shift(size_t __shift) { in _M_do_left_shift() 37 const size_t __wshift = __shift / __BITS_PER_WORD; in _M_do_left_shift() 38 const size_t __offset = __shift % __BITS_PER_WORD; in _M_do_left_shift() 41 for (size_t __n = _Nw - 1; __n >= __wshift; --__n) in _M_do_left_shift() 45 const size_t __sub_offset = __BITS_PER_WORD - __offset; in _M_do_left_shift() 46 for (size_t __n = _Nw - 1; __n > __wshift; --__n) in _M_do_left_shift() 56 template<size_t _Nw> 57 void _Base_bitset<_Nw>::_M_do_right_shift(size_t __shift) { in _M_do_right_shift() 59 const size_t __wshift = __shift / __BITS_PER_WORD; in _M_do_right_shift() [all …]
|
D | _valarray.h | 49 typedef valarray<size_t> _Valarray_size_t; 66 size_t _M_size; 69 _Valarray_base(size_t __n) : _M_first(0), _M_size(0) { _M_allocate(__n); } in _Valarray_base() 72 void _M_allocate(size_t __n) { in _M_allocate() 100 explicit valarray(size_t __n) : _Valarray_base<_Tp>(__n) in valarray() 102 valarray(const value_type& __x, size_t __n) : _Valarray_base<_Tp>(__n) in valarray() 104 valarray(const value_type* __p, size_t __n) : _Valarray_base<_Tp>(__n) in valarray() 129 valarray(size_t __n, _NoInit) : _Valarray_base<_Tp>(__n) { in valarray() 156 value_type operator[](size_t __n) const { 160 value_type& operator[](size_t __n) { [all …]
|
/ndk/tests/device/test-gnustl-full/unit/ |
D | innerprod_test.cpp | 27 static size_t add(size_t a_, size_t b_) { in add() 31 static size_t mult(size_t a_, size_t b_) { in mult() 52 vector<size_t> v1(3); in inprod1() 53 vector<size_t> v2(v1.size()); in inprod1() 54 for (size_t i = 0; i < v1.size(); ++i) { in inprod1() 58 size_t result = inner_product(v1.begin(), v1.end(), v2.begin(), (size_t)0); in inprod1() 63 vector<size_t> v1(3); in inprod2() 64 vector<size_t> v2(v1.size()); in inprod2() 65 for(size_t i = 0; i < v1.size(); ++i) { in inprod2() 69 size_t result=inner_product(v1.begin(), v1.end(), v2.begin(), (size_t)1, mult, add); in inprod2()
|
/ndk/tests/device/test-stlport/unit/ |
D | innerprod_test.cpp | 27 static size_t add(size_t a_, size_t b_) { in add() 31 static size_t mult(size_t a_, size_t b_) { in mult() 52 vector<size_t> v1(3); in inprod1() 53 vector<size_t> v2(v1.size()); in inprod1() 54 for (size_t i = 0; i < v1.size(); ++i) { in inprod1() 58 size_t result = inner_product(v1.begin(), v1.end(), v2.begin(), (size_t)0); in inprod1() 63 vector<size_t> v1(3); in inprod2() 64 vector<size_t> v2(v1.size()); in inprod2() 65 for(size_t i = 0; i < v1.size(); ++i) { in inprod2() 69 size_t result=inner_product(v1.begin(), v1.end(), v2.begin(), (size_t)1, mult, add); in inprod2()
|
/ndk/sources/cxx-stl/llvm-libc++/src/support/android/ |
D | wchar_support.c | 26 size_t n = 0; in wcpcpy() 37 wchar_t *wcpncpy(wchar_t *dst, const wchar_t *src, size_t n) { in wcpncpy() 38 size_t i; in wcpncpy() 53 size_t n = 0; in wcscasecmp() 66 size_t n = 0; in wcscat() 70 size_t i = 0; in wcscat() 81 size_t wcslcat(wchar_t *dst, const wchar_t *src, size_t siz) { in wcslcat() 87 size_t n = 0; in wcslcat() 95 size_t i; in wcslcat() 109 size_t wcslcpy(wchar_t *dst, const wchar_t *src, size_t siz) { in wcslcpy() [all …]
|
/ndk/tests/device/test-stlport_shared-exception/jni/ |
D | arraynew.cpp | 11 void* operator new[](size_t s) throw (std::bad_alloc) in operator new[]() 39 size_t x; in check_cookie() 46 if (x < sizeof (size_t)) in check_cookie() 47 x = sizeof (size_t); in check_cookie() 53 size_t *sp = ((size_t *) a) - 1; in check_cookie() 58 sp = ((size_t *) a) - 2; in check_cookie() 69 size_t x; in check_placement_cookie() 76 if (x < sizeof (size_t)) in check_placement_cookie() 77 x = sizeof (size_t); in check_placement_cookie() 83 size_t *sp = ((size_t *) a) - 1; in check_placement_cookie() [all …]
|
/ndk/tests/device/test-stlport_static-exception/jni/ |
D | arraynew.cpp | 11 void* operator new[](size_t s) throw (std::bad_alloc) in operator new[]() 39 size_t x; in check_cookie() 46 if (x < sizeof (size_t)) in check_cookie() 47 x = sizeof (size_t); in check_cookie() 53 size_t *sp = ((size_t *) a) - 1; in check_cookie() 58 sp = ((size_t *) a) - 2; in check_cookie() 69 size_t x; in check_placement_cookie() 76 if (x < sizeof (size_t)) in check_placement_cookie() 77 x = sizeof (size_t); in check_placement_cookie() 83 size_t *sp = ((size_t *) a) - 1; in check_placement_cookie() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/src/ |
D | valarray.cpp | 14 template valarray<size_t>::valarray(size_t); 15 template valarray<size_t>::~valarray(); 16 template void valarray<size_t>::resize(size_t, size_t); 19 gslice::__init(size_t __start) in __init() 21 valarray<size_t> __indices(__size_.size()); in __init() 22 size_t __k = __size_.size() != 0; in __init() 23 for (size_t __i = 0; __i < __size_.size(); ++__i) in __init() 32 size_t __i = __indices.size() - 1; in __init() 39 for (size_t __j = __i + 1; __j != __indices.size(); ++__j) in __init()
|
D | string.cpp | 48 stoi(const string& str, size_t* idx, int base) in stoi() 64 *idx = static_cast<size_t>(ptr - p); in stoi() 69 stoi(const wstring& str, size_t* idx, int base) in stoi() 85 *idx = static_cast<size_t>(ptr - p); in stoi() 90 stol(const string& str, size_t* idx, int base) in stol() 105 *idx = static_cast<size_t>(ptr - p); in stol() 110 stol(const wstring& str, size_t* idx, int base) in stol() 125 *idx = static_cast<size_t>(ptr - p); in stol() 130 stoul(const string& str, size_t* idx, int base) in stoul() 145 *idx = static_cast<size_t>(ptr - p); in stoul() [all …]
|
/ndk/sources/cxx-stl/stlport/src/ |
D | c_locale.h | 243 size_t _WLocale_mbtowc(struct _Locale_codecvt *, 245 const char * /* from */, size_t /* n */, 257 size_t _WLocale_wctomb(struct _Locale_codecvt *, 258 char *, size_t, 270 size_t _WLocale_unshift(struct _Locale_codecvt *, 272 char *, size_t, char **); 287 const char * /* s1 */, size_t /* n1 */, 288 const char * /* s2 */, size_t /* n2 */); 291 const wchar_t * /* s1 */, size_t /* n1 */, 292 const wchar_t * /* s2 */, size_t /* n2 */); [all …]
|
D | allocators.cpp | 60 inline char* __stlp_new_chunk(size_t __bytes) { in __stlp_new_chunk() 68 inline char* __stlp_new_chunk(size_t __bytes) { in __stlp_new_chunk() 78 inline char* __stlp_new_chunk(size_t __bytes) in __stlp_new_chunk() 120 #define _S_FREELIST_INDEX(__bytes) ((__bytes - size_t(1)) >> (int)_ALIGN_SHIFT) 131 void* _STLP_CALL __malloc_alloc::allocate(size_t __n) in allocate() 247 static inline size_t _STLP_CALL _S_round_up(size_t __bytes) in _S_round_up() 248 { return (((__bytes) + (size_t)_ALIGN-1) & ~((size_t)_ALIGN - 1)); } in _S_round_up() 268 static _Obj* _S_refill(size_t __n); 271 static char* _S_chunk_alloc(size_t __p_size, int& __nobjs); 278 static size_t _S_heap_size; [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/test/utilities/template.bitset/bitset.members/ |
D | to_ulong.pass.cpp | 17 template <std::size_t N> 20 … const std::size_t M = sizeof(unsigned long) * CHAR_BIT < N ? sizeof(unsigned long) * CHAR_BIT : N; in test_to_ulong() 21 …const std::size_t X = M == 0 ? sizeof(unsigned long) * CHAR_BIT - 1 : sizeof(unsigned long) * CHAR… in test_to_ulong() 22 const std::size_t max = M == 0 ? 0 : std::size_t(-1) >> X; in test_to_ulong() 23 std::size_t tests[] = {0, in test_to_ulong() 24 std::min<std::size_t>(1, max), in test_to_ulong() 25 std::min<std::size_t>(2, max), in test_to_ulong() 26 std::min<std::size_t>(3, max), in test_to_ulong() 31 for (std::size_t i = 0; i < sizeof(tests)/sizeof(tests[0]); ++i) in test_to_ulong() 33 std::size_t j = tests[i]; in test_to_ulong()
|
/ndk/sources/host-tools/sed-4.2.1/sed/ |
D | utils.h | 27 void ck_fwrite P_((const VOID *ptr, size_t size, size_t nmemb, FILE *stream)); 28 size_t ck_fread P_((VOID *ptr, size_t size, size_t nmemb, FILE *stream)); 32 size_t ck_getline P_((char **text, size_t *buflen, FILE *stream)); 36 VOID *ck_malloc P_((size_t size)); 37 VOID *xmalloc P_((size_t size)); 38 VOID *ck_realloc P_((VOID *ptr, size_t size)); 40 VOID *ck_memdup P_((const VOID *buf, size_t len)); 45 size_t size_buffer P_((struct buffer *b)); 46 char *add_buffer P_((struct buffer *b, const char *p, size_t n));
|
/ndk/sources/cxx-stl/llvm-libc++/include/support/solaris/ |
D | xlocale.h | 26 size_t __mb_cur_max(locale_t l); 36 size_t wcrtomb_l(char *__s, wchar_t __wc, mbstate_t *__ps, locale_t __l); 38 size_t mbrtowc_l(wchar_t *__pwc, const char *__s, size_t __n, 41 int mbtowc_l(wchar_t *__pwc, const char *__pmb, size_t __max, locale_t __l); 43 size_t mbrlen_l(const char *__s, size_t __n, mbstate_t *__ps, locale_t __l); 47 size_t mbsrtowcs_l(wchar_t *__dest, const char **__src, size_t __len, 52 int snprintf_l(char *__s, size_t __n, locale_t __l, const char *__format, ...); 94 size_t strftime_l(char *__s, size_t __size, const char *__fmt, const struct tm 97 size_t strxfrm_l(char *__s1, const char *__s2, size_t __n, locale_t __l); 99 size_t wcsxfrm_l(wchar_t *__ws1, const wchar_t *__ws2, size_t __n, [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/include/ |
D | bitset | 22 template <size_t N> 58 bitset& operator<<=(size_t pos) noexcept; 59 bitset& operator>>=(size_t pos) noexcept; 61 bitset& set(size_t pos, bool val = true); 63 bitset& reset(size_t pos); 66 bitset& flip(size_t pos); 69 constexpr bool operator[](size_t pos) const; // for b[i]; 70 reference operator[](size_t pos); // for b[i]; 80 size_t count() const noexcept; 81 constexpr size_t size() const noexcept; [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/include/support/android/ |
D | wchar.h | 28 extern size_t wcsnrtombs (char *dst, 30 size_t nwc, size_t len, 33 extern size_t mbsnrtowcs (wchar_t *dst, 34 const char **src, size_t nmc, 35 size_t len, mbstate_t *ps); 38 int wcsxfrm_l(wchar_t*, const wchar_t*, size_t, locale_t);
|
/ndk/sources/host-tools/ndk-stack/elff/ |
D | mapfile.h | 74 extern ssize_t mapfile_read(MapFile* handle, void* buf, size_t nbyte); 84 size_t offset, 86 size_t nbyte); 112 size_t offset, 113 size_t size, 116 size_t* mapped_size); 127 extern int mapfile_unmap(void* mapped_at, size_t len);
|
/ndk/sources/cxx-stl/stlport/src/c_locale_win32/ |
D | c_wlocale_win32.c | 135 if (count == 1 && __isleadbyte(*from, l->cleads)) return (size_t)-2; in __mbtowc() 143 size_t _WLocale_mbtowc(_Locale_codecvt_t *lcodecvt, wchar_t *to, in _WLocale_mbtowc() 144 const char *from, size_t n, mbstate_t *shift_state) { in _WLocale_mbtowc() 149 if (result == 0) return (size_t)-1; in _WLocale_mbtowc() 158 { if (++count > ((unsigned int)lcodecvt->max_char_size)) return (size_t)-1; } in _WLocale_mbtowc() 160 { return (size_t)-1; } in _WLocale_mbtowc() 164 return (size_t)-2; in _WLocale_mbtowc() 168 size_t _WLocale_wctomb(_Locale_codecvt_t *lcodecvt, char *to, size_t n, in _WLocale_wctomb() 172 if (!size) return (size_t)-1; in _WLocale_wctomb() 173 if ((size_t)size > n) return (size_t)-2; in _WLocale_wctomb() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/src/support/win32/ |
D | locale_win32.cpp | 35 size_t mbrlen_l( const char *__restrict__ s, size_t n, in mbrlen_l() 41 size_t mbsrtowcs_l( wchar_t *__restrict__ dst, const char **__restrict__ src, in mbsrtowcs_l() 42 size_t len, mbstate_t *__restrict__ ps, locale_t loc ) in mbsrtowcs_l() 47 size_t wcrtomb_l( char *__restrict__ s, wchar_t wc, mbstate_t *__restrict__ ps, in wcrtomb_l() 53 size_t mbrtowc_l( wchar_t *__restrict__ pwc, const char *__restrict__ s, in mbrtowc_l() 54 size_t n, mbstate_t *__restrict__ ps, locale_t loc ) in mbrtowc_l() 59 size_t mbsnrtowcs_l( wchar_t *__restrict__ dst, const char **__restrict__ src, in mbsnrtowcs_l() 60 size_t nms, size_t len, mbstate_t *__restrict__ ps, locale_t loc ) in mbsnrtowcs_l() 65 size_t wcsnrtombs_l( char *__restrict__ dst, const wchar_t **__restrict__ src, in wcsnrtombs_l() 66 size_t nwc, size_t len, mbstate_t *__restrict__ ps, locale_t loc ) in wcsnrtombs_l()
|
/ndk/sources/cxx-stl/llvm-libc++/test/utilities/template.bitset/bitset.cons/ |
D | string_ctor.pass.cpp | 17 template <std::size_t N> 47 std::size_t M = std::min<std::size_t>(N, 10); in test_string_ctor() 48 for (std::size_t i = 0; i < M; ++i) in test_string_ctor() 50 for (std::size_t i = 10; i < N; ++i) in test_string_ctor() 69 std::size_t M = std::min<std::size_t>(N, 10); in test_string_ctor() 70 for (std::size_t i = 0; i < M; ++i) in test_string_ctor() 72 for (std::size_t i = 10; i < N; ++i) in test_string_ctor()
|