Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 250) sorted by relevance

12345678910

/ndk/sources/cxx-stl/stlport/stlport/stl/
D_valarray.h137 _STLP_ASSERT(__x.size() == this->size())
157 _STLP_ASSERT(__n < this->size())
161 _STLP_ASSERT(__n < this->size())
164 size_t size() const { return this->_M_size; } in size() function
180 valarray<_Tp> __tmp(this->size(), _NoInit());
181 for (size_t __i = 0; __i < this->size(); ++__i)
187 valarray<_Tp> __tmp(this->size(), _NoInit());
188 for (size_t __i = 0; __i < this->size(); ++__i)
197 for (size_t __i = 0; __i < this->size(); ++__i)
203 for (size_t __i = 0; __i < this->size(); ++__i)
[all …]
D_valarray.c37 _Valarray_bool __tmp(this->size(), _Valarray_bool::_NoInit());
38 for (size_t __i = 0; __i < this->size(); ++__i)
46 _STLP_ASSERT(__x._M_slice.size() == this->size())
49 __i < __x._M_slice.size();
57 valarray<_Tp> __tmp(__slice.size(), _NoInit());
60 __i < __slice.size();
68 size_t __dim = _M_indices.size() - 1; in _M_incr()
88 if (this->size() != 0) {
100 if (__tmp.size() != 0) {
111 for (size_t __i = 0; __i < __mask.size(); ++__i)
[all …]
D_string.h188 if (__pos > __s.size()) in basic_string()
195 if (__pos > __s.size()) in basic_string()
199 __s._M_Start() + __pos + (min) (__n, __s.size() - __pos)); in basic_string()
205 if (__pos > __s.size()) in basic_string()
209 __s._M_Start() + __pos + (min) (__n, __s.size() - __pos)); in basic_string()
303 const size_type __size = size(); in _M_compute_next_size()
400 size_type size() const { return this->_M_Finish() - this->_M_Start(); } in size() function
401 size_type length() const { return size(); } in length()
405 if (__n <= size()) in resize()
408 append(__n - size(), __c); in resize()
[all …]
/ndk/tests/device/test-gnustl-full/unit/
Dcopy_test.cpp52 const size_t size = sizeof(a) / sizeof(a[0]); in copy_volatile() local
53 volatile int va[size]; in copy_volatile()
54 copy(a, a + size, va); in copy_volatile()
55 for (size_t i = 0; i != size; ++i) { in copy_volatile()
62 const size_t size = sizeof(a) / sizeof(a[0]); in copy_volatile() local
63 volatile int va[size]; in copy_volatile()
64 copy(a, a + size, va); in copy_volatile()
65 for (size_t i = 0; i != size; ++i) { in copy_volatile()
74 const size_t size = sizeof(a) / sizeof(a[0]); in copy_volatile()
75 const volatile int va[size] = {5, 4, 3, 2, 1, 0}; in copy_volatile()
[all …]
Dlexcmp_test.cpp33 const unsigned size = 6; in lexcmp1() local
34 char n1[size] = "shoe"; in lexcmp1()
35 char n2[size] = "shine"; in lexcmp1()
37 bool before = lexicographical_compare(n1, n1 + size, n2, n2 + size); in lexcmp1()
42 const unsigned size = 6; in lexcmp2() local
43 char n1[size] = "shoe"; in lexcmp2()
44 char n2[size] = "shine"; in lexcmp2()
46 bool before = lexicographical_compare(n1, n1 + size, n2, n2 + size, greater<char>()); in lexcmp2()
Dmismatch_test.cpp62 v2[v2.size()/2] = 42; in mismatch1()
69 const unsigned size = 5; in mismatch2() local
70 char const* n1[size] = { "Brett", "Graham", "Jack", "Mike", "Todd" }; in mismatch2()
72 char const* n2[size]; in mismatch2()
74 …pair <char const**, char const**> result = mismatch((char const**)n1, (char const**)n1 + size, (ch… in mismatch2()
76 CPPUNIT_ASSERT(result.first == n1 + size && result.second == n2 + size); in mismatch2()
79 result = mismatch((char const**)n1, (char const**)n1 + size, (char const**)n2, str_equal); in mismatch2()
80 CPPUNIT_ASSERT(!(result.first == n2 + size && result.second == n2 + size)); in mismatch2()
Dvector_test.cpp74 CPPUNIT_ASSERT( v1.size() == 0 ); in vec_test_1()
80 CPPUNIT_ASSERT( v1.size() == 1 ); in vec_test_1()
89 CPPUNIT_ASSERT( (*it).size() == 0 ); in vec_test_1()
104 CPPUNIT_ASSERT( v1.size() == 2 ); in vec_test_2()
108 CPPUNIT_ASSERT( v2.size() == 1 ); in vec_test_2()
115 CPPUNIT_ASSERT( v1.size() == 1 ); in vec_test_2()
119 CPPUNIT_ASSERT( v2.size() == 2 ); in vec_test_2()
126 CPPUNIT_ASSERT( v2.size() == 1 ); in vec_test_2()
138 CPPUNIT_ASSERT( v1.size() == 2 ); in vec_test_3()
145 CPPUNIT_ASSERT( v2.size() == 2 ); in vec_test_3()
[all …]
Ddeque_test.cpp86 CPPUNIT_ASSERT( d.size() == 3 ); in insert()
94 CPPUNIT_ASSERT( d.size() == 4 ); in insert()
101 CPPUNIT_ASSERT( d.size() == 5 ); in insert()
108 CPPUNIT_ASSERT( d.size() == 6 ); in insert()
115 CPPUNIT_ASSERT( d.size() == 7 ); in insert()
120 CPPUNIT_ASSERT( d.size() == 9 ); in insert()
127 CPPUNIT_ASSERT( d.size() == 11 ); in insert()
133 CPPUNIT_ASSERT( d.size() == 13 ); in insert()
139 CPPUNIT_ASSERT( d.size() == 15 ); in insert()
146 CPPUNIT_ASSERT( d.size() == 17 ); in insert()
[all …]
Dmerge_test.cpp57 vector<int> v2(v1.size()); in merge1()
61 vector <int> result(v1.size() + v2.size()); in merge1()
79 vector <int> v2(v1.size()); in merge2()
80 for (int i = 0; (size_t)i < v1.size(); ++i) { in merge2()
84 vector<int> result(v1.size() + v2.size()); in merge2()
Dswap_test.cpp105 CPPUNIT_CHECK( v1.size() == 2 ); in swap_container_non_spec()
106 CPPUNIT_CHECK( v2.size() == 3 ); in swap_container_non_spec()
110 CPPUNIT_CHECK( v1.size() == 3 ); in swap_container_non_spec()
111 CPPUNIT_CHECK( v2.size() == 2 ); in swap_container_non_spec()
150 CPPUNIT_CHECK( v1.size() == 2 ); in swap_container_spec()
151 CPPUNIT_CHECK( v2.size() == 3 ); in swap_container_spec()
155 CPPUNIT_CHECK( v1.size() == 3 ); in swap_container_spec()
156 CPPUNIT_CHECK( v2.size() == 2 ); in swap_container_spec()
/ndk/tests/device/test-stlport/unit/
Dcopy_test.cpp52 const size_t size = sizeof(a) / sizeof(a[0]); in copy_volatile() local
53 volatile int va[size]; in copy_volatile()
54 copy(a, a + size, va); in copy_volatile()
55 for (size_t i = 0; i != size; ++i) { in copy_volatile()
62 const size_t size = sizeof(a) / sizeof(a[0]); in copy_volatile() local
63 volatile int va[size]; in copy_volatile()
64 copy(a, a + size, va); in copy_volatile()
65 for (size_t i = 0; i != size; ++i) { in copy_volatile()
74 const size_t size = sizeof(a) / sizeof(a[0]); in copy_volatile()
75 const volatile int va[size] = {5, 4, 3, 2, 1, 0}; in copy_volatile()
[all …]
Dlexcmp_test.cpp33 const unsigned size = 6; in lexcmp1() local
34 char n1[size] = "shoe"; in lexcmp1()
35 char n2[size] = "shine"; in lexcmp1()
37 bool before = lexicographical_compare(n1, n1 + size, n2, n2 + size); in lexcmp1()
42 const unsigned size = 6; in lexcmp2() local
43 char n1[size] = "shoe"; in lexcmp2()
44 char n2[size] = "shine"; in lexcmp2()
46 bool before = lexicographical_compare(n1, n1 + size, n2, n2 + size, greater<char>()); in lexcmp2()
Dmismatch_test.cpp62 v2[v2.size()/2] = 42; in mismatch1()
69 const unsigned size = 5; in mismatch2() local
70 char const* n1[size] = { "Brett", "Graham", "Jack", "Mike", "Todd" }; in mismatch2()
72 char const* n2[size]; in mismatch2()
74 …pair <char const**, char const**> result = mismatch((char const**)n1, (char const**)n1 + size, (ch… in mismatch2()
76 CPPUNIT_ASSERT(result.first == n1 + size && result.second == n2 + size); in mismatch2()
79 result = mismatch((char const**)n1, (char const**)n1 + size, (char const**)n2, str_equal); in mismatch2()
80 CPPUNIT_ASSERT(!(result.first == n2 + size && result.second == n2 + size)); in mismatch2()
Dvector_test.cpp74 CPPUNIT_ASSERT( v1.size() == 0 ); in vec_test_1()
80 CPPUNIT_ASSERT( v1.size() == 1 ); in vec_test_1()
89 CPPUNIT_ASSERT( (*it).size() == 0 ); in vec_test_1()
104 CPPUNIT_ASSERT( v1.size() == 2 ); in vec_test_2()
108 CPPUNIT_ASSERT( v2.size() == 1 ); in vec_test_2()
115 CPPUNIT_ASSERT( v1.size() == 1 ); in vec_test_2()
119 CPPUNIT_ASSERT( v2.size() == 2 ); in vec_test_2()
126 CPPUNIT_ASSERT( v2.size() == 1 ); in vec_test_2()
138 CPPUNIT_ASSERT( v1.size() == 2 ); in vec_test_3()
145 CPPUNIT_ASSERT( v2.size() == 2 ); in vec_test_3()
[all …]
Ddeque_test.cpp86 CPPUNIT_ASSERT( d.size() == 3 ); in insert()
94 CPPUNIT_ASSERT( d.size() == 4 ); in insert()
101 CPPUNIT_ASSERT( d.size() == 5 ); in insert()
108 CPPUNIT_ASSERT( d.size() == 6 ); in insert()
115 CPPUNIT_ASSERT( d.size() == 7 ); in insert()
120 CPPUNIT_ASSERT( d.size() == 9 ); in insert()
127 CPPUNIT_ASSERT( d.size() == 11 ); in insert()
133 CPPUNIT_ASSERT( d.size() == 13 ); in insert()
139 CPPUNIT_ASSERT( d.size() == 15 ); in insert()
146 CPPUNIT_ASSERT( d.size() == 17 ); in insert()
[all …]
Dmerge_test.cpp57 vector<int> v2(v1.size()); in merge1()
61 vector <int> result(v1.size() + v2.size()); in merge1()
79 vector <int> v2(v1.size()); in merge2()
80 for (int i = 0; (size_t)i < v1.size(); ++i) { in merge2()
84 vector<int> result(v1.size() + v2.size()); in merge2()
Dswap_test.cpp105 CPPUNIT_CHECK( v1.size() == 2 ); in swap_container_non_spec()
106 CPPUNIT_CHECK( v2.size() == 3 ); in swap_container_non_spec()
110 CPPUNIT_CHECK( v1.size() == 3 ); in swap_container_non_spec()
111 CPPUNIT_CHECK( v2.size() == 2 ); in swap_container_non_spec()
150 CPPUNIT_CHECK( v1.size() == 2 ); in swap_container_spec()
151 CPPUNIT_CHECK( v2.size() == 3 ); in swap_container_spec()
155 CPPUNIT_CHECK( v1.size() == 3 ); in swap_container_spec()
156 CPPUNIT_CHECK( v2.size() == 2 ); in swap_container_spec()
Dmvctor_test.cpp50 while (v_v_ints.size() < 3) { in move_construct_test()
82 while (vec_strs.size() < 3) { in move_construct_test()
195 CPPUNIT_ASSERT( vect_deque.size() == 13 ); in deque_test()
225 CPPUNIT_ASSERT( vect_deque.size() == 13 ); in deque_test()
257 CPPUNIT_ASSERT( vect_deque.size() == 19 ); in deque_test()
277 CPPUNIT_ASSERT( vect_deque.size() == 18 ); in deque_test()
297 CPPUNIT_ASSERT( vect_deque.size() == 16 ); in deque_test()
317 CPPUNIT_ASSERT( vect_deque.size() == 14 ); in deque_test()
342 CPPUNIT_ASSERT( vect_deque.size() == 22 ); in deque_test()
356 CPPUNIT_ASSERT( vect_deque.size() == 24 ); in deque_test()
[all …]
/ndk/sources/host-tools/ndk-stack/elff/
Delf_alloc.cc34 void* ElfAllocator::alloc(size_t size) { in alloc() argument
36 size = (size + ELFALLOC_ALIGNMENT_MASK) & ~ELFALLOC_ALIGNMENT_MASK; in alloc()
38 if (current_chunk_ == NULL || current_chunk_->remains < size) { in alloc()
47 new_chunk->size = ELF_ALLOC_CHUNK_SIZE; in alloc()
49 new_chunk->remains = new_chunk->size - sizeof(ElfAllocatorChunk); in alloc()
55 current_chunk_->remains -= size; in alloc()
56 current_chunk_->avail = INC_PTR(current_chunk_->avail, size); in alloc()
60 void* DwarfAllocBase::operator new(size_t size, const ElfFile* elf) { in operator new() argument
61 return elf->allocator()->alloc(size); in operator new()
Delf_alloc.h56 size_t size; member
95 void* alloc(size_t size);
129 void* operator new(size_t size, const ElfFile* elf);
153 void* operator new(size_t size) throw() { in new() argument
158 extern "C" void* elff_alloc(size_t size);
/ndk/sources/cxx-stl/gabi++/src/
Dnew.cc34 operator new(std::size_t size) throw (/*std::bad_alloc*/) in operator new() argument
36 void* ptr = malloc(size); in operator new()
45 operator new[](std::size_t size) throw(/*std::bad_alloc*/) in operator new[]() argument
47 return ::operator new(size); in operator new[]()
52 operator new(std::size_t size, const std::nothrow_t&) in operator new() argument
54 return malloc(size); in operator new()
58 operator new[](std::size_t size, const std::nothrow_t& nt) in operator new[]() argument
60 return ::operator new(size, nt); in operator new[]()
/ndk/sources/host-tools/sed-4.2.1/lib/
Dalloca.c153 alloca (size_t size) in alloca() argument
193 if (size == 0) in alloca()
202 size_t combined_size = sizeof (header) + size; in alloca()
347 long *block, size; in i00afunc() local
374 size = trailer->this_size; in i00afunc()
375 if (block == 0 || size == 0) in i00afunc()
378 if ((block <= address) && (address < (block + size))) in i00afunc()
421 long size, pseg, this_segment, stack; in i00afunc() local
444 size = ssptr->sssize; in i00afunc()
446 this_segment = stkl - size; in i00afunc()
[all …]
/ndk/sources/host-tools/make-3.81/
Dalloca.c171 alloca (unsigned size) in alloca() argument
211 if (size == 0) in alloca()
217 register pointer new = malloc (sizeof (header) + size); in alloca()
359 long *block, size; in i00afunc() local
386 size = trailer->this_size; in i00afunc()
387 if (block == 0 || size == 0) in i00afunc()
390 if ((block <= address) && (address < (block + size))) in i00afunc()
433 long size, pseg, this_segment, stack; in i00afunc() local
456 size = ssptr->sssize; in i00afunc()
458 this_segment = stkl - size; in i00afunc()
[all …]
/ndk/sources/cxx-stl/stlport/src/
Dstring.cpp11 size_t size = strlen(ascii); in __ASCIIToWide() local
12 wchar_t* buff = new wchar_t[size+1]; in __ASCIIToWide()
13 mbstowcs(buff, ascii, size); in __ASCIIToWide()
14 buff[size] = 0x00; in __ASCIIToWide()
20 size_t size = wcslen(wide); in __WideToASCII() local
21 char* buff = new char[size+1]; in __WideToASCII()
22 wcstombs(buff, wide, size); in __WideToASCII()
23 buff[size] = 0; in __WideToASCII()
/ndk/sources/host-tools/sed-4.2.1/sed/
Dutils.c237 ck_fwrite(ptr, size, nmemb, stream) in ck_fwrite() argument
239 size_t size;
244 if (size && fwrite(ptr, size, nmemb, stream) != nmemb)
252 ck_fread(ptr, size, nmemb, stream) in ck_fread() argument
254 size_t size;
259 if (size && (nmemb=fread(ptr, size, nmemb, stream)) <= 0 && ferror(stream))
451 ck_malloc(size) in ck_malloc() argument
452 size_t size; in ck_malloc()
454 VOID *ret = calloc(1, size ? size : 1);
462 ck_realloc(ptr, size) in ck_realloc() argument
[all …]

12345678910