Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 112) 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.cpp104 size_t __fread_chk(void* buf, size_t size, size_t count, FILE* stream, size_t buf_size) { in __fread_chk() argument
106 if (__predict_false(__size_mul_overflow(size, count, &total))) { in __fread_chk()
108 return fread(buf, size, count, stream); in __fread_chk()
111 return fread(buf, size, count, stream); in __fread_chk()
114 size_t __fwrite_chk(const void* buf, size_t size, size_t count, FILE* stream, size_t buf_size) { in __fwrite_chk() argument
116 if (__predict_false(__size_mul_overflow(size, count, &total))) { in __fwrite_chk()
118 return fwrite(buf, size, count, stream); in __fwrite_chk()
121 return fwrite(buf, size, count, stream); in __fwrite_chk()
142 extern "C" void* __memcpy_chk_fail(void* /*dst*/, const void* /*src*/, size_t count, size_t dst_len… in __memcpy_chk_fail() argument
143 __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()
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_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()
Dlibc_init_common.cpp369 int count = 0; in __libc_fini() local
370 while (fini_array[count] != nullptr) { in __libc_fini()
371 ++count; in __libc_fini()
375 while (count > 0) { in __libc_fini()
376 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()
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 TEST() local
71 _Unwind_Backtrace(FrameCounter, &count); in TEST()
73 ASSERT_EQ(count + 1, deeper_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()
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()
Dsystem_properties_test.cpp59 size_t *count = static_cast<size_t *>(cookie); in foreach_test_callback() local
62 (*count)++; in foreach_test_callback()
171 int count = 0; in TEST() local
175 ret = snprintf(prop_name, PROP_NAME_MAX - 1, "property_%d", count); in TEST()
177 ret = snprintf(prop_value, PROP_VALUE_MAX - 1, "value_%d", count); in TEST()
186 count++; in TEST()
190 ASSERT_GE(count, 247); in TEST()
192 for (int i = 0; i < count; i++) { in TEST()
218 size_t count = 0; in TEST() local
219 ASSERT_EQ(0, system_properties.Foreach(foreach_test_callback, &count)); in TEST()
[all …]
Dthreads_test.cpp135 std::atomic_int count = 0; in TEST()
136 auto waiter = [&c, &m, &count] { in TEST()
140 ++count; in TEST()
150 while (count == 0) { in TEST()
153 ASSERT_EQ(1, count); in TEST()
156 while (count == 1) { in TEST()
159 ASSERT_EQ(2, count); in TEST()
162 while (count == 2) { in TEST()
165 ASSERT_EQ(3, 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.py171 count = 0
174 if (count & 1) != 0:
175 count += 1
176 count += 2
178 count += 1
179 return count
183 count = 0
186 count += 2
188 count += 1
189 return count
[all …]
/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/libfdtrack/
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/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