/ndk/sources/cxx-stl/llvm-libc++/test/containers/sequences/vector/vector.modifiers/ |
D | push_back.pass.cpp | 23 assert(c.size() == 1); in main() 24 for (int j = 0; j < c.size(); ++j) in main() 27 assert(c.size() == 2); in main() 28 for (int j = 0; j < c.size(); ++j) in main() 31 assert(c.size() == 3); in main() 32 for (int j = 0; j < c.size(); ++j) in main() 35 assert(c.size() == 4); in main() 36 for (int j = 0; j < c.size(); ++j) in main() 39 assert(c.size() == 5); in main() 40 for (int j = 0; j < c.size(); ++j) in main() [all …]
|
D | push_back_rvalue.pass.cpp | 25 assert(c.size() == 1); in main() 26 for (int j = 0; j < c.size(); ++j) in main() 29 assert(c.size() == 2); in main() 30 for (int j = 0; j < c.size(); ++j) in main() 33 assert(c.size() == 3); in main() 34 for (int j = 0; j < c.size(); ++j) in main() 37 assert(c.size() == 4); in main() 38 for (int j = 0; j < c.size(); ++j) in main() 41 assert(c.size() == 5); in main() 42 for (int j = 0; j < c.size(); ++j) in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/numarray/template.valarray/valarray.members/ |
D | swap.pass.cpp | 32 assert(v1.size() == v2_save.size()); in main() 33 for (int i = 0; i < v1.size(); ++i) in main() 35 assert(v2.size() == v1_save.size()); in main() 36 for (int i = 0; i < v2.size(); ++i) in main() 49 assert(v1.size() == v2_save.size()); in main() 50 for (int i = 0; i < v1.size(); ++i) in main() 52 assert(v2.size() == v1_save.size()); in main() 53 for (int i = 0; i < v2.size(); ++i) in main() 66 assert(v1.size() == v2_save.size()); in main() 67 for (int i = 0; i < v1.size(); ++i) in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/numarray/valarray.nonmembers/valarray.special/ |
D | swap.pass.cpp | 34 assert(v1.size() == v2_save.size()); in main() 35 for (int i = 0; i < v1.size(); ++i) in main() 37 assert(v2.size() == v1_save.size()); in main() 38 for (int i = 0; i < v2.size(); ++i) in main() 51 assert(v1.size() == v2_save.size()); in main() 52 for (int i = 0; i < v1.size(); ++i) in main() 54 assert(v2.size() == v1_save.size()); in main() 55 for (int i = 0; i < v2.size(); ++i) in main() 68 assert(v1.size() == v2_save.size()); in main() 69 for (int i = 0; i < v1.size(); ++i) in main() [all …]
|
/ndk/tests/device/test-stlport_static-exception/jni/ |
D | badalloc1.cpp | 32 size_t size __attribute__((aligned)); member 41 extern "C" void *malloc (size_t size) in malloc() argument 48 p->size = size; in malloc() 49 size = (size + __alignof__(object) - 1) & - __alignof__(object); in malloc() 50 pos += size + sizeof(object); in malloc() 63 extern "C" void *realloc (void *p, size_t size) in realloc() argument 70 size_t old_size = o->size; in realloc() 72 if (old_size >= size) in realloc() 75 o->size = size; in realloc() 79 r = malloc (size); in realloc() [all …]
|
D | eh-vararg-1.cpp | 15 bar (char *p, int size) in bar() argument 17 __builtin_strncpy (p, "good", size); in bar() 35 int size; in foo() local 39 size = va_arg (arg, int); in foo() 40 if (size != 5) in foo() 42 p = (char *) __builtin_alloca (size + 1); in foo() 48 bar (p, size); in foo() 49 if (__builtin_strncmp (p, "good", size) != 0) in foo() 52 p[size] = '\0'; in foo()
|
D | eh-vararg-2.cpp | 15 bar (char *p, int size) in bar() argument 17 __builtin_strncpy (p, "good", size); in bar() 34 int size; in test() local 37 size = va_arg (arg, int); in test() 38 if (size != 5) in test() 41 p = (char *) __builtin_alloca (size + 1); in test() 47 bar (p, size); in test() 48 if (__builtin_strncmp (p, "good", size) != 0) in test() 51 p[size] = '\0'; in test()
|
/ndk/tests/device/test-stlport_shared-exception/jni/ |
D | badalloc1.cpp | 32 size_t size __attribute__((aligned)); member 41 extern "C" void *malloc (size_t size) in malloc() argument 48 p->size = size; in malloc() 49 size = (size + __alignof__(object) - 1) & - __alignof__(object); in malloc() 50 pos += size + sizeof(object); in malloc() 63 extern "C" void *realloc (void *p, size_t size) in realloc() argument 70 size_t old_size = o->size; in realloc() 72 if (old_size >= size) in realloc() 75 o->size = size; in realloc() 79 r = malloc (size); in realloc() [all …]
|
D | eh-vararg-1.cpp | 15 bar (char *p, int size) in bar() argument 17 __builtin_strncpy (p, "good", size); in bar() 35 int size; in foo() local 39 size = va_arg (arg, int); in foo() 40 if (size != 5) in foo() 42 p = (char *) __builtin_alloca (size + 1); in foo() 48 bar (p, size); in foo() 49 if (__builtin_strncmp (p, "good", size) != 0) in foo() 52 p[size] = '\0'; in foo()
|
D | eh-vararg-2.cpp | 15 bar (char *p, int size) in bar() argument 17 __builtin_strncpy (p, "good", size); in bar() 34 int size; in test() local 37 size = va_arg (arg, int); in test() 38 if (size != 5) in test() 41 p = (char *) __builtin_alloca (size + 1); in test() 47 bar (p, size); in test() 48 if (__builtin_strncmp (p, "good", size) != 0) in test() 51 p[size] = '\0'; in test()
|
/ndk/tests/device/test-gnustl-full/unit/ |
D | lexcmp_test.cpp | 33 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()
|
D | copy_test.cpp | 52 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 …]
|
/ndk/tests/device/test-stlport/unit/ |
D | lexcmp_test.cpp | 33 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()
|
D | copy_test.cpp | 52 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 …]
|
/ndk/sources/cxx-stl/stlport/stlport/stl/ |
D | _valarray.h | 137 _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.c | 37 _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 …]
|
/ndk/sources/cxx-stl/llvm-libc++/test/localization/locale.categories/category.ctype/locale.ctype.byname/ |
D | scan_not.pass.cpp | 33 std::vector<F::mask> m(in.size()); in main() 34 assert(f.scan_not(F::space, in.data(), in.data() + in.size()) - in.data() == 0); in main() 35 assert(f.scan_not(F::print, in.data(), in.data() + in.size()) - in.data() == 3); in main() 36 assert(f.scan_not(F::cntrl, in.data(), in.data() + in.size()) - in.data() == 0); in main() 37 assert(f.scan_not(F::upper, in.data(), in.data() + in.size()) - in.data() == 1); in main() 38 assert(f.scan_not(F::lower, in.data(), in.data() + in.size()) - in.data() == 0); in main() 39 assert(f.scan_not(F::alpha, in.data(), in.data() + in.size()) - in.data() == 1); in main() 40 assert(f.scan_not(F::digit, in.data(), in.data() + in.size()) - in.data() == 0); in main() 41 assert(f.scan_not(F::punct, in.data(), in.data() + in.size()) - in.data() == 0); in main() 42 assert(f.scan_not(F::xdigit, in.data(), in.data() + in.size()) - in.data() == 0); in main() [all …]
|
D | scan_is.pass.cpp | 33 std::vector<F::mask> m(in.size()); in main() 34 assert(f.scan_is(F::space, in.data(), in.data() + in.size()) - in.data() == 1); in main() 35 assert(f.scan_is(F::print, in.data(), in.data() + in.size()) - in.data() == 0); in main() 36 assert(f.scan_is(F::cntrl, in.data(), in.data() + in.size()) - in.data() == 3); in main() 37 assert(f.scan_is(F::upper, in.data(), in.data() + in.size()) - in.data() == 0); in main() 38 assert(f.scan_is(F::lower, in.data(), in.data() + in.size()) - in.data() == 5); in main() 39 assert(f.scan_is(F::alpha, in.data(), in.data() + in.size()) - in.data() == 0); in main() 40 assert(f.scan_is(F::digit, in.data(), in.data() + in.size()) - in.data() == 6); in main() 41 assert(f.scan_is(F::punct, in.data(), in.data() + in.size()) - in.data() == 4); in main() 42 assert(f.scan_is(F::xdigit, in.data(), in.data() + in.size()) - in.data() == 2); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/numarray/template.valarray/valarray.unary/ |
D | negate.pass.cpp | 27 assert(v2.size() == v.size()); in main() 28 for (int i = 0; i < v2.size(); ++i) in main() 37 assert(v2.size() == v.size()); in main() 38 for (int i = 0; i < v2.size(); ++i) in main() 47 assert(v2.size() == v.size()); in main() 50 assert(v2[i].size() == v[i].size()); in main() 51 for (int j = 0; j < v[i].size(); ++j) in main() 61 assert(v2.size() == v.size()); in main() 62 for (int i = 0; i < v2.size(); ++i) in main()
|
D | plus.pass.cpp | 27 assert(v2.size() == v.size()); in main() 28 for (int i = 0; i < v2.size(); ++i) in main() 37 assert(v2.size() == v.size()); in main() 38 for (int i = 0; i < v2.size(); ++i) in main() 47 assert(v2.size() == v.size()); in main() 50 assert(v2[i].size() == v[i].size()); in main() 51 for (int j = 0; j < v[i].size(); ++j) in main() 61 assert(v2.size() == v.size()); in main() 62 for (int i = 0; i < v2.size(); ++i) in main()
|
/ndk/sources/cxx-stl/llvm-libc++/test/strings/string.conversions/ |
D | to_string.pass.cpp | 32 assert(s.size() == 1); in test_signed() 33 assert(s[s.size()] == 0); in test_signed() 38 assert(s.size() == 5); in test_signed() 39 assert(s[s.size()] == 0); in test_signed() 44 assert(s.size() == 6); in test_signed() 45 assert(s[s.size()] == 0); in test_signed() 50 assert(s.size() == std::numeric_limits<T>::digits10 + 1); in test_signed() 71 assert(s.size() == 1); in test_unsigned() 72 assert(s[s.size()] == 0); in test_unsigned() 77 assert(s.size() == 5); in test_unsigned() [all …]
|
D | to_wstring.pass.cpp | 32 assert(s.size() == 1); in test_signed() 33 assert(s[s.size()] == 0); in test_signed() 38 assert(s.size() == 5); in test_signed() 39 assert(s[s.size()] == 0); in test_signed() 44 assert(s.size() == 6); in test_signed() 45 assert(s[s.size()] == 0); in test_signed() 50 assert(s.size() == std::numeric_limits<T>::digits10 + 1); in test_signed() 71 assert(s.size() == 1); in test_unsigned() 72 assert(s[s.size()] == 0); in test_unsigned() 77 assert(s.size() == 5); in test_unsigned() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/test/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/ |
D | wchar_t_out.pass.cpp | 31 std::vector<char> to(from.size()+1); in main() 35 F::result r = f.out(mbs, from.data(), from.data() + from.size(), from_next, in main() 36 to.data(), to.data() + to.size(), to_next); in main() 38 assert(from_next - from.data() == from.size()); in main() 39 assert(to_next - to.data() == from.size()); in main() 45 std::vector<char> to(from.size()+1); in main() 49 F::result r = f.out(mbs, from.data(), from.data() + from.size(), from_next, in main() 50 to.data(), to.data() + to.size(), to_next); in main() 52 assert(from_next - from.data() == from.size()); in main() 53 assert(to_next - to.data() == from.size()); in main() [all …]
|
/ndk/sources/host-tools/ndk-stack/elff/ |
D | elf_alloc.cc | 34 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()
|
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/numarray/template.valarray/valarray.cons/ |
D | copy.pass.cpp | 27 assert(v2.size() == v.size()); in main() 28 for (int i = 0; i < v2.size(); ++i) in main() 37 assert(v2.size() == v.size()); in main() 38 for (int i = 0; i < v2.size(); ++i) in main() 47 assert(v2.size() == v.size()); in main() 50 assert(v2[i].size() == v[i].size()); in main() 51 for (int j = 0; j < v[i].size(); ++j) in main()
|