Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 129) sorted by relevance

123456

/bionic/libc/arch-arm64/oryon/
Dmemset-nt.S36 #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 …]
Dmemcpy-nt.S19 #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/
Dpreadv_pwritev.cpp45 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 …]
Dfortify.cpp101 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 …]
Dgetentropy.cpp42 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()
Dsched_cpucount.cpp32 int count = 0; in __sched_cpucount() local
34 count += __builtin_popcountl(set->__bits[i]); in __sched_cpucount()
36 return count; in __sched_cpucount()
Dndk_cruft.cpp115 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()
Dsched_cpualloc.cpp32 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()
Dlibc_init_common.cpp407 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()
Dsemaphore.cpp89 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/
Dunistd.h88 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 …]
Dstdio.h84 #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/
Dscs_test.cpp25 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()
Dstack_unwinding_test.cpp64 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()
Dsys_sendfile_test.cpp34 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/
Dgntdev.h16 __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/
Dgensyscalls.py188 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/
Dfdtrack.cpp60 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 …]
Dfdtrack_test.cpp52 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/
Dgetservent.c42 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/
Dbionic_futex.h53 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/
Dsgx.h32 __u64 count; member
45 __u64 count; member
52 __u64 count; member
57 __u64 count; member
/bionic/tests/libs/
Delftls_dtv_resize_helper.cpp87 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/
Dcrtbegin.c49 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/
Dstdlib_benchmark.cpp169 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()

123456