Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 36) sorted by relevance

12

/bionic/tests/
Duchar_test.cpp83 char bytes[MB_LEN_MAX]; in TEST() local
84 EXPECT_EQ(1U, c16rtomb(bytes, L'\0', NULL)); in TEST()
92 char bytes[MB_LEN_MAX]; in TEST() local
94 memset(bytes, 0, sizeof(bytes)); in TEST()
95 EXPECT_EQ(1U, c16rtomb(bytes, L'h', NULL)); in TEST()
96 EXPECT_EQ('h', bytes[0]); in TEST()
102 memset(bytes, 0, sizeof(bytes)); in TEST()
103 EXPECT_EQ(1U, c16rtomb(bytes, L'h', NULL)); in TEST()
104 EXPECT_EQ('h', bytes[0]); in TEST()
106 memset(bytes, 0, sizeof(bytes)); in TEST()
[all …]
Dwchar_test.cpp35 char bytes[] = { 'h', 'e', 'l', 'l', 'o', '\0' }; in TEST() local
36 EXPECT_EQ(0U, mbrlen(&bytes[0], 0, NULL)); in TEST()
37 EXPECT_EQ(1U, mbrlen(&bytes[0], 1, NULL)); in TEST()
39 EXPECT_EQ(1U, mbrlen(&bytes[4], 1, NULL)); in TEST()
40 EXPECT_EQ(0U, mbrlen(&bytes[5], 1, NULL)); in TEST()
50 char bytes[MB_LEN_MAX]; in TEST() local
53 EXPECT_EQ(1, wctomb(bytes, L'\0')); in TEST()
54 EXPECT_EQ(1U, wcrtomb(bytes, L'\0', NULL)); in TEST()
57 memset(bytes, 0, sizeof(bytes)); in TEST()
58 EXPECT_EQ(1, wctomb(bytes, L'h')); in TEST()
[all …]
/bionic/libc/arch-mips/string/
Dmemmove.c186 unsigned long words, unsigned long bytes, void *ret) in unaligned_words_forward() argument
220 return do_bytes_aligned (a, b, bytes, ret); in unaligned_words_forward()
225 unsigned long words, unsigned long bytes, void *ret) in unaligned_words_backward() argument
259 return do_bytes_backward (a, b, bytes, ret); in unaligned_words_backward()
266 unsigned long words, unsigned long bytes, void *ret) in unaligned_words_forward() argument
268 return do_bytes_aligned (a, b, (sizeof (reg_t) * words) + bytes, ret); in unaligned_words_forward()
273 unsigned long words, unsigned long bytes, void *ret) in unaligned_words_backward() argument
275 return do_bytes_backward (a, b, (sizeof (reg_t) * words) + bytes, ret); in unaligned_words_backward()
308 unsigned long words, unsigned long bytes, void *ret) in aligned_words_forward() argument
342 return do_bytes_aligned (a, b, bytes, ret); in aligned_words_forward()
[all …]
Dmemcpy.c148 unsigned long words, unsigned long bytes, void *ret) in unaligned_words() argument
195 return do_bytes_remaining (a, b, bytes, ret); in unaligned_words()
201 unsigned long words, unsigned long bytes, void *ret) in unaligned_words() argument
230 return do_bytes_remaining (a, b, bytes, ret); in unaligned_words()
238 unsigned long words, unsigned long bytes, void *ret) in aligned_words() argument
285 return do_bytes_remaining (a, b, bytes, ret); in aligned_words()
291 unsigned long bytes, words; in memcpy() local
302 bytes = ((unsigned long) b) % sizeof (reg_t); in memcpy()
303 if (bytes) { in memcpy()
304 bytes = sizeof (reg_t) - bytes; in memcpy()
[all …]
Dmemcmp.c140 unsigned long words, unsigned long bytes) in unaligned_words() argument
212 return do_bytes (a, b, bytes); in unaligned_words()
217 unsigned long words, unsigned long bytes) in unaligned_words() argument
219 return do_bytes (a, b, (sizeof (reg_t) * words) + bytes); in unaligned_words()
226 unsigned long words, unsigned long bytes) in aligned_words() argument
309 return do_bytes (a, b, bytes); in aligned_words()
314 unsigned long bytes, words; in memcmp() local
324 bytes = ((unsigned long) b) % sizeof (reg_t); in memcmp()
325 if (bytes) { in memcmp()
327 bytes = sizeof (reg_t) - bytes; in memcmp()
[all …]
/bionic/libc/arch-x86/silvermont/string/
Dsse4-memcmp-slm.S177 jz L(0bytes)
184 jz L(0bytes)
191 jz L(0bytes)
198 jz L(0bytes)
205 jz L(0bytes)
209 je L(0bytes)
222 L(0bytes):
324 L(16bytes):
329 L(12bytes):
334 L(8bytes):
[all …]
/bionic/libc/arch-x86_64/string/
Dsse4-memcmp-slm.S753 jnc L(16bytes)
758 jnc L(16bytes)
763 jnc L(16bytes)
767 jmp L(16bytes)
772 jmp L(16bytes)
776 jmp L(16bytes)
780 jmp L(16bytes)
784 jmp L(16bytes)
788 jmp L(16bytes)
792 jmp L(16bytes)
[all …]
/bionic/libc/kernel/uapi/linux/netfilter/
Dxt_sctp.h45 #define bytes(type) (sizeof(type) * 8) macro
46 #define SCTP_CHUNKMAP_SET(chunkmap,type) do { (chunkmap)[type / bytes(__u32)] |= 1 << (type % bytes
47 …SCTP_CHUNKMAP_CLEAR(chunkmap,type) do { (chunkmap)[type / bytes(__u32)] &= ~(1 << (type % bytes(__…
49 ({ ((chunkmap)[type / bytes(__u32)] & (1 << (type % bytes(__u32)))) ? 1 : 0; \
Dxt_set.h65 struct ip_set_counter_match0 bytes; member
78 struct ip_set_counter_match bytes; member
/bionic/libc/malloc_debug/
Dmalloc_debug.cpp76 void* debug_memalign(size_t alignment, size_t bytes);
77 void* debug_realloc(void* pointer, size_t bytes);
78 void* debug_calloc(size_t nmemb, size_t bytes);
88 void* debug_pvalloc(size_t bytes);
320 size_t bytes = internal_malloc_usable_size(pointer); in internal_malloc() local
322 bytes = (bytes < fill_bytes) ? bytes : fill_bytes; in internal_malloc()
323 memset(pointer, g_debug->config().fill_alloc_value(), bytes); in internal_malloc()
345 size_t bytes; in internal_free() local
376 bytes = header->usable_size; in internal_free()
378 bytes = g_dispatch->malloc_usable_size(pointer); in internal_free()
[all …]
DFreeTrackData.cpp71 size_t bytes = header->usable_size; in VerifyAndFree() local
72 bytes = (bytes < debug_->config().fill_on_free_bytes()) ? bytes in VerifyAndFree()
74 while (bytes > 0) { in VerifyAndFree()
75 size_t bytes_to_cmp = (bytes < cmp_mem_.size()) ? bytes : cmp_mem_.size(); in VerifyAndFree()
80 bytes -= bytes_to_cmp; in VerifyAndFree()
DRecordData.cpp149 ssize_t bytes = write(dump_fd, line.c_str(), line.length()); in Dump() local
150 if (bytes == -1 || static_cast<size_t>(bytes) != line.length()) { in Dump()
DREADME.md49 in the log indicating what bytes changed.
54 If SIZE\_BYTES is present, it indicates the number of bytes in the guard.
55 The default is 32 bytes, the max bytes is 16384. SIZE\_BYTES will be
56 padded so that it is a multiple of 8 bytes on 32 bit systems and 16 bytes
75 in the log indicating what bytes changed.
77 If SIZE\_BYTES is present, it indicates the number of bytes in the guard.
78 The default is 32 bytes, the max bytes is 16384.
92 If SIZE\_BYTES is present, it indicates the number of bytes in both guards.
93 The default is 32 bytes, the max bytes is 16384.
128 filled with the value 0xeb. When doing a realloc to a larger size, the bytes
[all …]
/bionic/libc/upstream-netbsd/lib/libc/isc/
Dev_streams.c49 static void consume(evStream *str, size_t bytes);
233 consume(evStream *str, size_t bytes) { in consume() argument
234 while (bytes > 0U) { in consume()
235 if (bytes < (size_t)str->iovCur->iov_len) { in consume()
236 str->iovCur->iov_len -= bytes; in consume()
238 ((u_char *)str->iovCur->iov_base + bytes); in consume()
239 str->ioDone += bytes; in consume()
240 bytes = 0; in consume()
242 bytes -= str->iovCur->iov_len; in consume()
272 int bytes; in writable() local
[all …]
/bionic/libc/arch-x86/atom/string/
Dssse3-memcmp-atom.S1834 je L(8bytes)
1837 je L(9bytes)
1839 je L(10bytes)
1841 je L(11bytes)
1843 je L(12bytes)
1845 je L(13bytes)
1847 je L(14bytes)
1848 jmp L(15bytes)
1850 jmp L(12bytes)
1853 je L(10bytes)
[all …]
/bionic/libc/bionic/
Djemalloc_wrapper.cpp24 void* je_pvalloc(size_t bytes) { in je_pvalloc() argument
26 size_t size = BIONIC_ALIGN(bytes, pagesize); in je_pvalloc()
27 if (size < bytes) { in je_pvalloc()
Dmalloc_common.cpp113 extern "C" void* malloc(size_t bytes) { in malloc() argument
116 return _malloc(bytes); in malloc()
118 return Malloc(malloc)(bytes); in malloc()
129 extern "C" void* memalign(size_t alignment, size_t bytes) { in memalign() argument
132 return _memalign(alignment, bytes); in memalign()
134 return Malloc(memalign)(alignment, bytes); in memalign()
145 extern "C" void* realloc(void* old_mem, size_t bytes) { in realloc() argument
148 return _realloc(old_mem, bytes); in realloc()
150 return Malloc(realloc)(old_mem, bytes); in realloc()
154 extern "C" void* pvalloc(size_t bytes) { in pvalloc() argument
[all …]
/bionic/libc/kernel/uapi/linux/
Dgen_stats.h34 __u64 bytes; member
38 __u64 bytes; member
Dblktrace_api.h95 __u32 bytes; member
Dtelephony.h152 unsigned int bytes; member
/bionic/libc/kernel/uapi/mtd/
Dubi-user.h62 __s64 bytes; member
70 __s64 bytes; member
85 __s32 bytes; member
/bionic/linker/
Dlinker_block_allocator.cpp44 uint8_t bytes[PAGE_SIZE - 16] __attribute__((aligned(16))); member
91 ssize_t offset = reinterpret_cast<uint8_t*>(block) - page->bytes; in free()
128 FreeBlockInfo* first_block = reinterpret_cast<FreeBlockInfo*>(page->bytes); in create_new_page()
/bionic/libc/upstream-openbsd/lib/libc/crypt/
Dchacha_private.h89 chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes) in chacha_encrypt_bytes() argument
97 if (!bytes) return; in chacha_encrypt_bytes()
117 if (bytes < 64) { in chacha_encrypt_bytes()
118 for (i = 0;i < bytes;++i) tmp[i] = m[i]; in chacha_encrypt_bytes()
208 if (bytes <= 64) { in chacha_encrypt_bytes()
209 if (bytes < 64) { in chacha_encrypt_bytes()
210 for (i = 0;i < bytes;++i) ctarget[i] = c[i]; in chacha_encrypt_bytes()
216 bytes -= 64; in chacha_encrypt_bytes()
/bionic/tools/relocation_packer/src/
Delf_file_unittest.cc52 size_t bytes; in OpenRelocsTestFile() local
54 bytes = fread(buffer, 1, sizeof(buffer), testfile); in OpenRelocsTestFile()
55 ASSERT_EQ(bytes, fwrite(buffer, 1, bytes, temporary)); in OpenRelocsTestFile()
56 } while (bytes > 0); in OpenRelocsTestFile()
/bionic/libc/kernel/uapi/drm/
Domap_drm.h40 uint32_t bytes; member

12