Home
last modified time | relevance | path

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

12345

/bionic/libc/arch-arm64/generic/bionic/
Dmemset.S76 #define count x2 macro
89 cmp count, dst
104 add dstend, dstin, count
106 cmp count, 96
108 cmp count, 16
113 tbz count, 3, 1f
118 1: tbz count, 2, 2f
122 2: cbz count, 3f
124 tbz count, 1, 3f
131 tbnz count, 6, L(set96)
[all …]
Dmemmove.S65 #define count x2 macro
77 #define E_l count
88 lsl count, count, #2
93 cmp count, 96
94 ccmp tmp1, count, 2, hi
98 add dstend, dstin, count
99 add srcend, src, count
109 sub count, count, tmp1
116 subs count, count, 128
128 subs count, count, 64
Dmemcpy_base.S65 #define count x2 macro
81 #define E_h count
98 add srcend, src, count
99 add dstend, dstin, count
100 cmp count, 16
102 cmp count, 96
106 sub tmp1, count, 1
124 cmp count, 8
133 tbz count, 2, 1f
143 cbz count, 2f
[all …]
/bionic/libc/include/bits/fortify/
Dunistd.h88 ssize_t pread(int fd, void* const __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 __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.h82 #define __bos_trivially_ge_mul(bos_val, size, count) \ argument
83 __bos_dynamic_check_impl_and(bos_val, >=, (size) * (count), \
84 !__unsafe_check_mul_overflow(size, count))
87 size_t fread(void* const __pass_object_size0 buf, size_t size, size_t count, FILE* stream) in fread() argument
89 __clang_error_if(__unsafe_check_mul_overflow(size, count), in fread()
91 __clang_error_if(__bos_unevaluated_lt(__bos0(buf), size * count), in fread()
96 if (!__bos_trivially_ge_mul(bos, size, count)) { in fread()
97 return __fread_chk(buf, size, count, stream, bos); in fread()
100 return __call_bypassing_fortify(fread)(buf, size, count, stream); in fread()
104 size_t fwrite(const void* const __pass_object_size0 buf, size_t size, size_t count, FILE* stream) in fwrite() argument
[all …]
/bionic/libc/bionic/
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(__size_mul_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(__size_mul_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()
Dlegacy_32_bit_support.cpp77 ssize_t preadv(int fd, const struct iovec* ios, int count, off_t offset) { in preadv() argument
78 return preadv64(fd, ios, count, offset); in preadv()
80 ssize_t preadv64(int fd, const struct iovec* ios, int count, off64_t offset) { in preadv64() argument
81 return __preadv64(fd, ios, count, offset, offset >> 32); in preadv64()
83 ssize_t pwritev(int fd, const struct iovec* ios, int count, off_t offset) { in pwritev() argument
84 return pwritev64(fd, ios, count, offset); in pwritev()
86 ssize_t pwritev64(int fd, const struct iovec* ios, int count, off64_t offset) { in pwritev64() argument
87 return __pwritev64(fd, ios, count, offset, offset >> 32); in pwritev64()
Dsched_cpucount.c34 int count = 0; in __sched_cpucount() local
37 count += __builtin_popcountl(set->__bits[nn]); in __sched_cpucount()
40 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()
Dlibc_init_common.cpp384 int count = 0; in __libc_fini() local
385 while (fini_array[count] != nullptr) { in __libc_fini()
386 ++count; in __libc_fini()
390 while (count > 0) { in __libc_fini()
391 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()
Dsched_cpualloc.c32 cpu_set_t* __sched_cpualloc(size_t count) in __sched_cpualloc() argument
37 return (cpu_set_t*) malloc(CPU_ALLOC_SIZE(count)); // NOLINT in __sched_cpualloc()
Dpty.cpp98 ssize_t count = readlink(FdPath(fd).c_str(), buf, len); in ttyname_r() local
99 if (count == -1) { in ttyname_r()
102 if (static_cast<size_t>(count) == len) { in ttyname_r()
106 buf[count] = '\0'; in ttyname_r()
/bionic/tests/
Dscs_test.cpp23 int recurse2(int count);
25 __attribute__((weak, noinline)) int recurse1(int count) { in recurse1() argument
26 if (count != 0) return recurse2(count - 1) + 1; in recurse1()
30 __attribute__((weak, noinline)) int recurse2(int count) { in recurse2() argument
31 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()
Delftls_dl_test.cpp175 ASSERT_EQ(0u, zero_dtv->count); in TEST()
186 ASSERT_EQ(5u, initial_dtv->count); in TEST()
197 ASSERT_EQ(5u, dtv()->count); in TEST()
200 ASSERT_EQ(13u, dtv()->count); in TEST()
207 ASSERT_EQ(13u, new_dtv->count); in TEST()
248 size_t count = 0; in TEST() local
262 count = dtv()->count; in TEST()
264 ASSERT_EQ(count, dtv()->count); in TEST()
/bionic/libc/kernel/uapi/xen/
Dgntdev.h28 __u32 count; member
36 __u32 count; member
43 __u32 count; member
48 __u32 count; member
71 unsigned int count; member
81 __u32 count; member
94 __u32 count; member
/bionic/libc/tools/
Dgensyscalls.py170 count = 0
173 if (count & 1) != 0:
174 count += 1
175 count += 2
177 count += 1
178 return count
182 count = 0
185 count += 2
187 count += 1
188 return count
[all …]
/bionic/libfdtrack/
Dfdtrack.cpp57 const uint64_t* function_offsets, size_t count, void* arg);
200 size_t count = 0; in fdtrack_dump_impl() member
207 size_t count = 0; in fdtrack_dump_impl() member
232 for (size_t i = 0; i < stacks->count; ++i) { in fdtrack_dump_impl()
234 ++stacks->data[i].count; in fdtrack_dump_impl()
241 if (stacks->count < stacks->data.size()) { in fdtrack_dump_impl()
242 auto& stack = stacks->data[stacks->count++]; in fdtrack_dump_impl()
244 stack.count = 1; in fdtrack_dump_impl()
262 for (size_t i = 0; i < stacks.count; ++i) { in fdtrack_dump_impl()
263 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/drm/
Dsavage_drm.h85 unsigned int count; member
125 unsigned short count; member
133 unsigned short count; member
140 unsigned short count; member

12345