/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/detail/ |
D | binary_search.hpp | 42 typename traits::difference_type len = boost::detail::distance(first, last); in lower_bound() local 46 while (len > 0) { in lower_bound() 47 half = len >> 1; in lower_bound() 53 len = len - half - 1; in lower_bound() 56 len = half; in lower_bound() 67 typename traits::difference_type len = boost::detail::distance(first, last); in lower_bound() local 71 while (len > 0) { in lower_bound() 72 half = len >> 1; in lower_bound() 78 len = len - half - 1; in lower_bound() 81 len = half; in lower_bound() [all …]
|
/ndk/sources/android/crazy_linker/src/ |
D | crazy_linker_util.cpp | 49 String::String(const char* str, size_t len) { in String() argument 51 Assign(str, len); in String() 54 void String::Assign(const char* str, size_t len) { in Assign() argument 55 Resize(len); in Assign() 56 if (len > 0) { in Assign() 57 memcpy(ptr_, str, len); in Assign() 58 ptr_[len] = '\0'; in Assign() 59 size_ = len; in Assign() 63 void String::Append(const char* str, size_t len) { in Append() argument 64 if (len > 0) { in Append() [all …]
|
/ndk/sources/host-tools/make-3.81/ |
D | strcache.c | 58 add_string(const char *str, int len) in add_string() argument 67 if (len > bufsize) in add_string() 68 bufsize = len * 2; in add_string() 74 if (sp->bytesfree > len && (!best || best->bytesfree > sp->bytesfree)) in add_string() 81 assert (best->bytesfree > len); in add_string() 85 memcpy (best->end, str, len); in add_string() 86 best->end += len; in add_string() 88 best->bytesfree -= len + 1; in add_string() 118 add_hash (const char *str, int len) in add_hash() argument 128 key = add_string (str, len); in add_hash() [all …]
|
D | function.c | 35 unsigned char len; member 46 return_STRING_N_HASH_1 (key->name, key->len); in function_table_entry_hash_1() 53 return_STRING_N_HASH_2 (key->name, key->len); in function_table_entry_hash_2() 61 int result = x->len - y->len; in function_table_entry_hash_cmp() 64 return_STRING_N_COMPARE (x->name, y->name, x->len); in function_table_entry_hash_cmp() 153 unsigned int len; in patsubst_expand() local 194 while ((t = find_next_token (&text, &len)) != 0) in patsubst_expand() 199 if (len < pattern_prepercent_len + pattern_postpercent_len) in patsubst_expand() 211 && (t[len - 1] != pattern_percent[pattern_postpercent_len - 1] in patsubst_expand() 212 || t[len - pattern_postpercent_len] != *pattern_percent in patsubst_expand() [all …]
|
D | commands.c | 56 unsigned int len; in set_file_variables() local 63 len = strlen (p + 1); in set_file_variables() 64 percent = (char *) alloca (len); in set_file_variables() 65 bcopy (p + 1, percent, len - 1); in set_file_variables() 66 percent[len - 1] = '\0'; in set_file_variables() 83 unsigned int len; in set_file_variables() local 89 len = strlen (name) - 1; in set_file_variables() 95 len = strlen (name); in set_file_variables() 101 if (len > slen && strneq (dep_name (d), name + (len - slen), slen)) in set_file_variables() 103 file->stem = savestring (name, len - slen); in set_file_variables() [all …]
|
D | read.c | 133 static int conditional_line PARAMS ((char *line, int len, const struct floc *flocp)); 510 int len; in eval() local 581 #define word1eq(s) (len == sizeof(s)-1 && strneq (s, p, sizeof(s)-1)) in eval() 596 len = p2 - p; in eval() 619 int i = conditional_line (p, len, fstart); in eval() 711 unsigned int len; in eval() local 718 for (p = find_next_token (&p2, &len); p != 0; in eval() 719 p = find_next_token (&p2, &len)) in eval() 721 v = lookup_variable (p, len); in eval() 723 v = define_variable_loc (p, len, "", o_file, 0, in eval() [all …]
|
D | vpath.c | 238 unsigned int len; in construct_vpath_list() local 246 len = p - v; in construct_vpath_list() 251 if (len > 3 || (len > 1 && v[1] != ':')) in construct_vpath_list() 253 if (len > 1 && p[-1] == '/') in construct_vpath_list() 254 --len; in construct_vpath_list() 256 if (len > 1 || *v != '.') in construct_vpath_list() 258 v = savestring (v, len); in construct_vpath_list() 267 if (len > maxvpath) in construct_vpath_list() 268 maxvpath = len; in construct_vpath_list() 318 gpath_search (char *file, unsigned int len) in gpath_search() argument [all …]
|
D | amiga.c | 35 int len = 0; in MyExecute() local 40 len += strlen (*aptr) + 4; in MyExecute() 43 buffer = AllocMem (len, MEMF_ANY); in MyExecute() 79 FreeMem (buffer, len); in MyExecute()
|
/ndk/tests/abcc/jni/mman-win32/ |
D | mman.c | 59 void* mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off) in mmap() argument 77 const off_t maxSize = off + (off_t)len; in mmap() 90 if (len == 0 in mmap() 117 map = MapViewOfFile(fm, desiredAccess, dwFileOffsetHigh, dwFileOffsetLow, len); in mmap() 130 int munmap(void *addr, size_t len) in munmap() argument 140 int mprotect(void *addr, size_t len, int prot) in mprotect() argument 145 if (VirtualProtect(addr, len, newProtect, &oldProtect)) in mprotect() 153 int msync(void *addr, size_t len, int flags) in msync() argument 155 if (FlushViewOfFile(addr, len)) in msync() 163 int mlock(const void *addr, size_t len) in mlock() argument [all …]
|
D | mman.h | 44 void* mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off); 45 int munmap(void *addr, size_t len); 46 int mprotect(void *addr, size_t len, int prot); 47 int msync(void *addr, size_t len, int flags); 48 int mlock(const void *addr, size_t len); 49 int munlock(const void *addr, size_t len);
|
/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/test/ |
D | test_demangle.cpp | 29616 std::size_t len = 0; in test() local 29621 char* demang = __cxxabiv1::__cxa_demangle(cases[i][0], buf, &len, &status); in test() 29646 std::size_t len = 0; in test2() local 29651 char* demang = __cxxabiv1::__cxa_demangle(invalid_cases[i], buf, &len, &status); in test2() 29682 std::size_t len = 0; in main() 29684 len = 0; in main() 29685 char* demang = abi::__cxa_demangle(input.c_str(), 0, &len, &status); in main() 29698 std::cout << "len = " << len << '\n'; in main()
|
/ndk/sources/android/support/tests/minitest/ |
D | minitest.cc | 26 String::String(const char* str, size_t len) { in String() argument 27 Resize(len); in String() 28 ::memcpy(str_, str, len); in String() 29 size_ = len; in String() 40 size_t len = ::strlen(str); in operator +=() local 42 Resize(old_size + len); in operator +=() 43 ::memcpy(str_ + old_size, str, len); in operator +=() 132 int len; in Format() local 135 len = vsnprintf(&result[0], result.size(), format, args2); in Format() 139 if (len >= 0 && static_cast<size_t>(len) <= result.size()) in Format()
|
/ndk/sources/cxx-stl/stlport/src/ |
D | codecvt.cpp | 90 ptrdiff_t len = (min) (from_end - from, to_limit - to); in do_out() local 91 copy(from, from + len, to); in do_out() 92 from_next = from + len; in do_out() 93 to_next = to + len; in do_out() 105 ptrdiff_t len = (min) (from_end - from, to_limit - to); in do_in() local 107 __REINTERPRET_CAST(const unsigned char*, from) + len, to); in do_in() 108 from_next = from + len; in do_in() 109 to_next = to + len; in do_in()
|
/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/ |
D | fallback_malloc.ipp | 61 heap_size len; // size in units of "sizeof(heap_node)" 76 freelist->len = HEAP_SIZE / sizeof (heap_node); 80 size_t alloc_size (size_t len) 81 { return (len + sizeof(heap_node) - 1) / sizeof(heap_node) + 1; } 86 void *fallback_malloc(size_t len) { 88 const size_t nelems = alloc_size ( len ); 98 if (p->len > nelems) { // chunk is larger, shorten, and return the tail 101 p->len -= nelems; 102 q = p + p->len; 104 q->len = static_cast<heap_size>(nelems); [all …]
|
/ndk/sources/third_party/googletest/googletest/src/ |
D | gtest-printers.cc | 256 const CharType* begin, size_t len, ostream* os) { in PrintCharsAsStringTo() argument 260 for (size_t index = 0; index < len; ++index) { in PrintCharsAsStringTo() 277 const CharType* begin, size_t len, ostream* os) { in UniversalPrintCharArray() argument 285 if (len > 0 && begin[len - 1] == '\0') { in UniversalPrintCharArray() 286 PrintCharsAsStringTo(begin, len - 1, os); in UniversalPrintCharArray() 294 PrintCharsAsStringTo(begin, len, os); in UniversalPrintCharArray() 299 void UniversalPrintArray(const char* begin, size_t len, ostream* os) { in UniversalPrintArray() argument 300 UniversalPrintCharArray(begin, len, os); in UniversalPrintArray() 305 void UniversalPrintArray(const wchar_t* begin, size_t len, ostream* os) { in UniversalPrintArray() argument 306 UniversalPrintCharArray(begin, len, os); in UniversalPrintArray()
|
/ndk/sources/host-tools/gdb-stub/ |
D | gdb-stub.c | 83 DWORD len, exitCode; in main() local 112 len = strlen(envbuf)+strlen(cmdbuf) in main() 117 (resbuf = (char *)malloc(len)) in main() 121 (snprintf(resbuf, len, "%s;%s", cmdbuf, envbuf) > 0) in main() 141 len = strlen(cmdbuf); in main() 142 snprintf(cmdbuf+len, cmdbufsize-len, "%s ", *argv); in main()
|
/ndk/sources/third_party/googletest/googletest/samples/ |
D | sample2.cc | 42 const size_t len = strlen(a_c_string); in CloneCString() local 43 char* const clone = new char[ len + 1 ]; in CloneCString() 44 memcpy(clone, a_c_string, len + 1); in CloneCString()
|
/ndk/sources/cxx-stl/stlport/src/details/ |
D | fstream_unistd.cpp | 135 size_t pagesize, len; in _S_initialize() local 138 len = sizeof(pagesize); in _S_initialize() 139 sysctl(mib, 2, &pagesize, &len, NULL, 0); in _S_initialize() 316 void* _Filebuf_base::_M_mmap(streamoff offset, streamoff len) in _M_mmap() argument 320 base = MMAP(0, len, PROT_READ, MAP_PRIVATE, _M_file_id, offset); in _M_mmap() 322 if (LSEEK(_M_file_id, offset + len, SEEK_SET) < 0) { in _M_mmap() 323 this->_M_unmap(base, len); in _M_mmap() 330 _STLP_MARK_PARAMETER_AS_UNUSED(&len) in _M_mmap() 336 void _Filebuf_base::_M_unmap(void* base, streamoff len) in _M_unmap() argument 340 munmap((char*)base, len); in _M_unmap() [all …]
|
/ndk/sources/cxx-stl/gabi++/src/ |
D | stdexcept.cc | 40 std::size_t len; member 79 std::size_t len = strlen(msg); in __libcpp_nmstr() local 80 str_ = static_cast<const char*>(::operator new(len + 1 + offset)); in __libcpp_nmstr() 82 c->len = c->cap = len; in __libcpp_nmstr() 85 std::memcpy(const_cast<char*>(c_str()), msg, len + 1); in __libcpp_nmstr()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ |
D | __refstring | 32 std::size_t len; 89 std::size_t len = strlen(msg); 90 _Rep_base* rep = static_cast<_Rep_base *>(::operator new(sizeof(*rep) + len + 1)); 91 rep->len = len; 92 rep->cap = len; 95 std::memcpy(data, msg, len + 1);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/support/win32/ |
D | locale_win32.cpp | 43 size_t len, mbstate_t *__restrict ps, locale_t loc ) in mbsrtowcs_l() argument 46 return mbsrtowcs( dst, src, len, ps ); in mbsrtowcs_l() 61 size_t nms, size_t len, mbstate_t *__restrict ps, locale_t loc ) in mbsnrtowcs_l() argument 64 return mbsnrtowcs( dst, src, nms, len, ps ); in mbsnrtowcs_l() 67 size_t nwc, size_t len, mbstate_t *__restrict ps, locale_t loc ) in wcsnrtombs_l() argument 70 return wcsnrtombs( dst, src, nwc, len, ps ); in wcsnrtombs_l()
|
/ndk/tests/device/test-stlport_static-exception/jni/ |
D | eh3_2.cpp | 9 int barf (int len) in barf() argument 11 char a[len]; in barf()
|
/ndk/tests/device/test-stlport_shared-exception/jni/ |
D | eh3_2.cpp | 9 int barf (int len) in barf() argument 11 char a[len]; in barf()
|
/ndk/tests/device/test-stlport/unit/ |
D | rope_test.cpp | 131 crope create_rope( int len ) in create_rope() argument 133 int l = len/2; in create_rope() 138 for(int i = 0; i < len; ++i) in create_rope() 147 result = create_rope(len/2); in create_rope() 148 result.append(create_rope(len/2)); in create_rope()
|
/ndk/tests/device/test-gnustl-full/unit/ |
D | rope_test.cpp | 131 crope create_rope( int len ) in create_rope() argument 133 int l = len/2; in create_rope() 138 for(int i = 0; i < len; ++i) in create_rope() 147 result = create_rope(len/2); in create_rope() 148 result.append(create_rope(len/2)); in create_rope()
|