/bionic/libc/arch-arm64/oryon/ |
D | memset-nt.S | 36 #define count x2 macro 59 cmp count, #64 62 cmp count, #15 65 ands tmp1, count, #0x30 77 and count, count, #15 78 add dst, dst, count 84 tbz count, #3, 1f 87 tbz count, #2, 1f 90 tbz count, #1, 1f 93 tbz count, #0, 1f [all …]
|
D | memcpy-nt.S | 19 #define count x2 macro 38 #define G_l count 62 add srcend, src, count 63 add dstend, dstin, count 64 cmp count, 128 66 cmp count, 32 70 cmp count, 16 80 tbz count, 3, L(copy8) 90 tbz count, 2, L(copy4) 99 cbz count, L(copy0) [all …]
|
/bionic/libc/bionic/ |
D | preadv_pwritev.cpp | 45 ssize_t preadv(int fd, const struct iovec* ios, int count, off_t offset) { in preadv() argument 46 return preadv64(fd, ios, count, offset); in preadv() 49 ssize_t preadv64(int fd, const struct iovec* ios, int count, off64_t offset) { in preadv64() argument 51 return __preadv64(fd, ios, count, offset, 0); in preadv64() 53 return __preadv64(fd, ios, count, offset, offset >> 32); in preadv64() 57 ssize_t pwritev(int fd, const struct iovec* ios, int count, off_t offset) { in pwritev() argument 58 return pwritev64(fd, ios, count, offset); in pwritev() 61 ssize_t pwritev64(int fd, const struct iovec* ios, int count, off64_t offset) { in pwritev64() argument 63 return __pwritev64(fd, ios, count, offset, 0); in pwritev64() 65 return __pwritev64(fd, ios, count, offset, offset >> 32); in pwritev64() [all …]
|
D | fortify.cpp | 101 size_t __fread_chk(void* buf, size_t size, size_t count, FILE* stream, size_t buf_size) { in __fread_chk() argument 103 if (__predict_false(__builtin_umull_overflow(size, count, &total))) { in __fread_chk() 105 return fread(buf, size, count, stream); in __fread_chk() 108 return fread(buf, size, count, stream); in __fread_chk() 111 size_t __fwrite_chk(const void* buf, size_t size, size_t count, FILE* stream, size_t buf_size) { in __fwrite_chk() argument 113 if (__predict_false(__builtin_umull_overflow(size, count, &total))) { in __fwrite_chk() 115 return fwrite(buf, size, count, stream); in __fwrite_chk() 118 return fwrite(buf, size, count, stream); in __fwrite_chk() 139 extern "C" void* __memcpy_chk_fail(void* /*dst*/, const void* /*src*/, size_t count, size_t dst_len… in __memcpy_chk_fail() argument 140 __check_count("memcpy", "count", count); in __memcpy_chk_fail() [all …]
|
D | getentropy.cpp | 42 ssize_t count = TEMP_FAILURE_RETRY(read(fd.get(), static_cast<char*>(buffer) + collected, in getentropy_urandom() local 44 if (count == -1) return -1; in getentropy_urandom() 45 collected += count; in getentropy_urandom() 62 long count = TEMP_FAILURE_RETRY(getrandom(static_cast<char*>(buffer) + collected, in getentropy() local 64 if (count == -1) { in getentropy() 73 collected += count; in getentropy()
|
D | sched_cpucount.cpp | 32 int count = 0; in __sched_cpucount() local 34 count += __builtin_popcountl(set->__bits[i]); in __sched_cpucount() 36 return count; in __sched_cpucount()
|
D | ndk_cruft.cpp | 115 int count = 0; in strtotimeval() local 119 if (++count < 7) { in strtotimeval() 125 for (; count < 6; count++) { in strtotimeval() 223 int __futex_wake(volatile void* ftx, int count) { in __futex_wake() argument 224 return __real_futex_wake(ftx, count); in __futex_wake() 267 int getdents(unsigned int fd, dirent* dirp, unsigned int count) { in getdents() argument 268 return __getdents64(fd, dirp, count); in getdents()
|
D | sched_cpualloc.cpp | 32 cpu_set_t* __sched_cpualloc(size_t count) { in __sched_cpualloc() argument 33 return static_cast<cpu_set_t*>(malloc(CPU_ALLOC_SIZE(count))); in __sched_cpualloc()
|
D | libc_init_common.cpp | 407 int count = 0; in __libc_fini() local 408 while (fini_array[count] != nullptr) { in __libc_fini() 409 ++count; in __libc_fini() 413 while (count > 0) { in __libc_fini() 414 Dtor dtor = fini_array[--count]; in __libc_fini()
|
D | semaphore.cpp | 89 static_assert(sizeof(atomic_uint) == sizeof(sem->count), in SEM_TO_ATOMIC_POINTER() 94 return reinterpret_cast<atomic_uint*>(&sem->count); in SEM_TO_ATOMIC_POINTER() 110 unsigned int count = SEMCOUNT_FROM_VALUE(value); in sem_init() local 112 count |= SEMCOUNT_SHARED_MASK; in sem_init() 116 atomic_init(sem_count_ptr, count); in sem_init()
|
/bionic/libc/include/bits/fortify/ |
D | unistd.h | 88 ssize_t pread(int fd, void* const _Nonnull __pass_object_size0 buf, size_t count, off_t offset) in pread() argument 90 __error_if_overflows_ssizet(count, pread) in pread() 91 __error_if_overflows_objectsize(count, __bos0(buf), pread) { in pread() 95 if (!__bos_trivially_ge_no_overflow(bos, count)) { in pread() 96 return __PREAD_PREFIX(chk)(fd, buf, count, offset, bos); in pread() 99 return __PREAD_PREFIX(real)(fd, buf, count, offset); in pread() 104 ssize_t pread64(int fd, void* const _Nonnull __pass_object_size0 buf, size_t count, off64_t offset) in pread64() argument 106 __error_if_overflows_ssizet(count, pread64) in pread64() 107 __error_if_overflows_objectsize(count, __bos0(buf), pread64) { in pread64() 111 if (!__bos_trivially_ge_no_overflow(bos, count)) { in pread64() [all …]
|
D | stdio.h | 84 #define __bos_trivially_ge_mul(bos_val, size, count) \ argument 85 __bos_dynamic_check_impl_and(bos_val, >=, (size) * (count), \ 86 !__unsafe_check_mul_overflow(size, count)) 89 size_t fread(void* const _Nonnull __pass_object_size0 buf, size_t size, size_t count, FILE* _Nonnul… in fread() argument 91 __clang_error_if(__unsafe_check_mul_overflow(size, count), in fread() 93 __clang_error_if(__bos_unevaluated_lt(__bos0(buf), size * count), in fread() 98 if (!__bos_trivially_ge_mul(bos, size, count)) { in fread() 99 return __fread_chk(buf, size, count, stream, bos); in fread() 102 return __call_bypassing_fortify(fread)(buf, size, count, stream); in fread() 106 size_t fwrite(const void* const _Nonnull __pass_object_size0 buf, size_t size, size_t count, FILE* … in fwrite() argument [all …]
|
/bionic/tests/ |
D | scs_test.cpp | 25 int recurse2(int count); 27 __attribute__((weak, noinline)) int recurse1(int count) { in recurse1() argument 28 if (count != 0) return recurse2(count - 1) + 1; in recurse1() 32 __attribute__((weak, noinline)) int recurse2(int count) { in recurse2() argument 33 if (count != 0) return recurse1(count - 1) + 1; in recurse2()
|
D | stack_unwinding_test.cpp | 64 int count = 0; in unwind_one_frame_deeper() local 65 _Unwind_Backtrace(FrameCounter, &count); in unwind_one_frame_deeper() 66 return count; in unwind_one_frame_deeper() 70 int count = 0; in UnwindTest() local 71 _Unwind_Backtrace(FrameCounter, &count); in UnwindTest() 73 ASSERT_EQ(count + 1, deeper_count); in UnwindTest()
|
D | sys_sendfile_test.cpp | 34 size_t count = 2; in TEST() local 35 ssize_t rc = sendfile(dst_file.fd, src_file.fd, &offset, count); in TEST() 53 size_t count = 2; in TEST() local 54 ssize_t rc = sendfile64(dst_file.fd, src_file.fd, &offset, count); in TEST()
|
/bionic/libc/kernel/uapi/xen/ |
D | gntdev.h | 16 __u32 count; member 24 __u32 count; member 31 __u32 count; member 36 __u32 count; member 59 unsigned int count; member 69 __u32 count; member 82 __u32 count; member
|
/bionic/libc/tools/ |
D | gensyscalls.py | 188 count = 0 191 if (count & 1) != 0: 192 count += 1 193 count += 2 195 count += 1 196 return count 200 count = 0 203 count += 2 205 count += 1 206 return count [all …]
|
/bionic/libfdtrack/ |
D | fdtrack.cpp | 60 const uint64_t* function_offsets, size_t count, void* arg); 211 size_t count = 0; in fdtrack_dump_impl() member 218 size_t count = 0; in fdtrack_dump_impl() member 243 for (size_t i = 0; i < stacks->count; ++i) { in fdtrack_dump_impl() 245 ++stacks->data[i].count; in fdtrack_dump_impl() 252 if (stacks->count < stacks->data.size()) { in fdtrack_dump_impl() 253 auto& stack = stacks->data[stacks->count++]; in fdtrack_dump_impl() 255 stack.count = 1; in fdtrack_dump_impl() 273 for (size_t i = 0; i < stacks.count; ++i) { in fdtrack_dump_impl() 274 if (stacks.data[i].count > max) { in fdtrack_dump_impl() [all …]
|
D | fdtrack_test.cpp | 52 const uint64_t* function_offsets, size_t count, void* arg); in RunFdtrack() 63 [](int fd, const char* const* function_names, const uint64_t* function_offsets, size_t count, in RunFdtrack() 66 for (size_t i = 0; i < count; ++i) { in RunFdtrack() 106 ASSERT_EQ(1, result.count(fd1)); in TEST() 107 ASSERT_EQ(1, result.count(fd3)); in TEST()
|
/bionic/libc/dns/net/ |
D | getservent.c | 42 int nn,count; in getservent_r() local 57 count = q[0]; /* get aliascount */ in getservent_r() 60 total += (count+1)*sizeof(char*); in getservent_r() 61 for (nn = 0; nn < count; nn++) { in getservent_r() 74 p2 += (count+1)*sizeof(char*); in getservent_r() 92 for (nn = 0; nn < count; nn++) { in getservent_r()
|
/bionic/libc/private/ |
D | bionic_futex.h | 53 static inline int __futex_wake(volatile void* ftx, int count) { in __futex_wake() argument 54 return __futex(ftx, FUTEX_WAKE, count, nullptr, 0); in __futex_wake() 57 static inline int __futex_wake_ex(volatile void* ftx, bool shared, int count) { in __futex_wake_ex() argument 58 return __futex(ftx, shared ? FUTEX_WAKE : FUTEX_WAKE_PRIVATE, count, nullptr, 0); in __futex_wake_ex()
|
/bionic/libc/kernel/uapi/asm-x86/asm/ |
D | sgx.h | 32 __u64 count; member 45 __u64 count; member 52 __u64 count; member 57 __u64 count; member
|
/bionic/tests/libs/ |
D | elftls_dtv_resize_helper.cpp | 87 for (size_t i = 0; i < current_dtv->count; ++i) { in highest_modid_in_dtv() 126 ASSERT_EQ(0u, zero_dtv->count); in main() 139 ASSERT_EQ(5u, dtv()->count); in main() 187 ASSERT_EQ(5u, dtv()->count); in main() 194 ASSERT_EQ(13u, dtv()->count); in main() 203 ASSERT_EQ(13u, new_dtv->count); in main() 218 ASSERT_EQ(13u, new_dtv->count); in main()
|
/bionic/libc/arch-common/bionic/ |
D | crtbegin.c | 49 size_t count = __fini_array_end - __fini_array_start; in call_fini_array() local 51 while (count-- > 0) { in call_fini_array() 52 fini_func_t* function = array[count]; in call_fini_array()
|
/bionic/benchmarks/ |
D | stdlib_benchmark.cpp | 169 const size_t count = 500000; in BM_stdlib_mbstowcs_ascii() local 170 std::vector<char> mbs(count, 'e'); in BM_stdlib_mbstowcs_ascii() 171 std::vector<wchar_t> wcs(count); in BM_stdlib_mbstowcs_ascii() 185 const size_t count = 500000; in BM_stdlib_mbstowcs_wide() local 187 for (size_t i = 0; i < count; i++) { in BM_stdlib_mbstowcs_wide() 190 std::vector<wchar_t> wcs(count); in BM_stdlib_mbstowcs_wide()
|