Searched refs:bytes (Results 1 - 25 of 32) sorted by relevance

12

/bionic/tests/
H A Duchar_test.cpp84 char bytes[MB_LEN_MAX]; local
85 EXPECT_EQ(1U, c16rtomb(bytes, L'\0', NULL));
93 char bytes[MB_LEN_MAX]; local
95 memset(bytes, 0, sizeof(bytes));
96 EXPECT_EQ(1U, c16rtomb(bytes, L'h', NULL));
97 EXPECT_EQ('h', bytes[0]);
103 memset(bytes, 0, sizeof(bytes));
104 EXPECT_EQ(1U, c16rtomb(bytes,
124 char bytes[MB_LEN_MAX]; local
140 char bytes[MB_LEN_MAX]; local
282 char bytes[MB_LEN_MAX]; local
[all...]
H A Dwchar_test.cpp31 char bytes[] = { 'h', 'e', 'l', 'l', 'o', '\0' }; local
32 EXPECT_EQ(0U, mbrlen(&bytes[0], 0, NULL));
33 EXPECT_EQ(1U, mbrlen(&bytes[0], 1, NULL));
35 EXPECT_EQ(1U, mbrlen(&bytes[4], 1, NULL));
36 EXPECT_EQ(0U, mbrlen(&bytes[5], 1, NULL));
46 char bytes[MB_LEN_MAX]; local
49 EXPECT_EQ(1, wctomb(bytes, L'\0'));
50 EXPECT_EQ(1U, wcrtomb(bytes, L'\0', NULL));
53 memset(bytes, 0, sizeof(bytes));
117 char bytes[BUFSIZ]; local
[all...]
/bionic/libc/bionic/
H A Djemalloc_wrapper.cpp23 void* je_pvalloc(size_t bytes) { argument
25 size_t size = BIONIC_ALIGN(bytes, pagesize);
26 if (size < bytes) {
H A Dmalloc_debug_leak.cpp217 extern "C" void* fill_malloc(size_t bytes) { argument
218 void* buffer = g_malloc_dispatch->malloc(bytes);
220 memset(buffer, CHK_SENTINEL_VALUE, bytes);
226 size_t bytes = g_malloc_dispatch->malloc_usable_size(mem); local
227 memset(mem, CHK_FILL_FREE, bytes);
231 extern "C" void* fill_realloc(void* mem, size_t bytes) { argument
233 void* newMem = g_malloc_dispatch->realloc(mem, bytes);
244 extern "C" void* fill_memalign(size_t alignment, size_t bytes) { argument
245 void* buffer = g_malloc_dispatch->memalign(alignment, bytes);
247 memset(buffer, CHK_SENTINEL_VALUE, bytes);
273 fill_pvalloc(size_t bytes) argument
293 leak_malloc(size_t bytes) argument
418 leak_realloc(void* oldMem, size_t bytes) argument
450 leak_memalign(size_t alignment, size_t bytes) argument
514 leak_pvalloc(size_t bytes) argument
[all...]
H A Dmalloc_debug_qemu.cpp91 /* Number of bytes requested by the malloc's caller. */
683 * bytes (plus prefix, and suffix guards), and report allocation to the
686 extern "C" void* qemu_instrumented_malloc(size_t bytes) { argument
692 desc.requested_bytes = bytes;
695 if (size < bytes) { // Overflow
697 malloc_pid, getpid(), bytes);
704 malloc_pid, getpid(), bytes, size);
720 malloc_pid, getpid(), bytes);
774 // Just let go zero bytes allocation.
797 /* For the suffix we will use whatever bytes remai
854 qemu_instrumented_realloc(void* mem, size_t bytes) argument
[all...]
H A Dmalloc_debug_check.cpp338 extern "C" void* chk_malloc(size_t bytes) { argument
341 return g_malloc_dispatch->malloc(bytes);
344 size_t size = sizeof(hdr_t) + bytes + sizeof(ftr_t);
345 if (size < bytes) { // Overflow
353 add(hdr, bytes);
359 extern "C" void* chk_memalign(size_t alignment, size_t bytes) { argument
361 return g_malloc_dispatch->memalign(alignment, bytes);
365 return chk_malloc(bytes);
373 // here, alignment is at least MALLOC_ALIGNMENT<<1 bytes
374 // we will align by at least MALLOC_ALIGNMENT bytes
442 chk_realloc(void* ptr, size_t bytes) argument
524 chk_calloc(size_t nmemb, size_t bytes) argument
581 chk_pvalloc(size_t bytes) argument
[all...]
H A Dmalloc_debug_common.cpp258 extern "C" void* malloc(size_t bytes) { argument
259 return __libc_malloc_dispatch->malloc(bytes);
266 extern "C" void* memalign(size_t alignment, size_t bytes) { argument
267 return __libc_malloc_dispatch->memalign(alignment, bytes);
275 extern "C" void* pvalloc(size_t bytes) { argument
276 return __libc_malloc_dispatch->pvalloc(bytes);
280 extern "C" void* realloc(void* oldMem, size_t bytes) { argument
281 return __libc_malloc_dispatch->realloc(oldMem, bytes);
285 extern "C" void* valloc(size_t bytes) { argument
286 return __libc_malloc_dispatch->valloc(bytes);
[all...]
/bionic/libc/kernel/uapi/linux/netfilter/
H A Dxt_sctp.h51 #define bytes(type) (sizeof(type) * 8) macro
52 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { (chunkmap)[type / bytes(__u32)] |= 1 << (type % bytes(__u32)); } while (0)
54 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { (chunkmap)[type / bytes(__u32)] &= ~(1 << (type % bytes(__u32))); } while (0)
55 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ ((chunkmap)[type / bytes (__u32)] & (1 << (type % bytes (__u32)))) ? 1: 0; })
H A Dxt_set.h76 struct ip_set_counter_match bytes; member in struct:xt_set_info_match_v3
/bionic/libc/arch-x86/silvermont/string/
H A 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/
H A 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/
H A Dgen_stats.h36 __u64 bytes; member in struct:gnet_stats_basic
41 __u64 bytes; member in struct:gnet_stats_basic_packed
H A Dblktrace_api.h114 __u32 bytes; member in struct:blk_io_trace
/bionic/libc/upstream-netbsd/lib/libc/isc/
H A Dev_streams.c49 static void consume(evStream *str, size_t bytes);
233 consume(evStream *str, size_t bytes) { argument
234 while (bytes > 0U) {
235 if (bytes < (size_t)str->iovCur->iov_len) {
236 str->iovCur->iov_len -= bytes;
238 ((u_char *)str->iovCur->iov_base + bytes);
239 str->ioDone += bytes;
240 bytes = 0;
242 bytes -= str->iovCur->iov_len;
268 /* Dribble out some bytes o
272 int bytes; local
295 int bytes; local
[all...]
/bionic/libc/arch-x86/atom/string/
H A 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/kernel/uapi/mtd/
H A Dubi-user.h70 __s64 bytes; member in struct:ubi_mkvol_req
80 __s64 bytes; member in struct:ubi_rsvol_req
99 __s32 bytes; member in struct:ubi_leb_change_req
/bionic/linker/
H A Dlinker_allocator.cpp25 uint8_t bytes[PAGE_SIZE-sizeof(LinkerAllocatorPage*)]; member in struct:LinkerAllocatorPage
71 ssize_t offset = reinterpret_cast<uint8_t*>(block) - page->bytes;
106 FreeBlockInfo* first_block = reinterpret_cast<FreeBlockInfo*>(page->bytes);
/bionic/libc/upstream-dlmalloc/
H A Dmalloc.h102 Returns a pointer to a newly allocated chunk of at least n bytes, or
107 size is 16 bytes on most 32bit systems, and 32 bytes on 64bit
127 Returns a pointer to n_elements * element_size bytes, with all locations
135 as does chunk p up to the minimum of (n, p's size) bytes, or null
147 if n is for fewer bytes than already held by p, the newly unused
173 Returns a pointer to a newly allocated chunk of n bytes, aligned
187 Allocates a chunk of n bytes, aligned in accord with the alignment
227 Returns the number of bytes obtained from the system. The total
228 number of bytes allocate
[all...]
H A Dmalloc.c36 Supported pointer/size_t representation: 4 or 8 bytes
43 Alignment: 8 bytes (minimum)
46 if necessary (up to 128bytes), at the expense of using more space.
48 Minimum overhead per allocated chunk: 4 or 8 bytes (if 4byte sizes)
49 8 or 16 bytes (if 8byte sizes)
54 Minimum allocated size: 4-byte ptrs: 16 bytes (including overhead)
55 8-byte ptrs: 32 bytes (including overhead)
57 Even a request for zero bytes (i.e., malloc(0)) returns a
59 The maximum overhead wastage (i.e., number of extra bytes
63 32 bytes plu
4566 dlmalloc(size_t bytes) argument
4912 internal_memalign(mstate m, size_t alignment, size_t bytes) argument
5207 dlrealloc(void* oldmem, size_t bytes) argument
5252 dlrealloc_in_place(void* oldmem, size_t bytes) argument
5283 dlmemalign(size_t alignment, size_t bytes) argument
5290 dlposix_memalign(void** pp, size_t alignment, size_t bytes) argument
5313 dlvalloc(size_t bytes) argument
5321 dlpvalloc(size_t bytes) argument
5386 dlmalloc_set_footprint_limit(size_t bytes) argument
5531 mspace_malloc(mspace msp, size_t bytes) argument
5766 mspace_realloc(mspace msp, void* oldmem, size_t bytes) argument
5811 mspace_realloc_in_place(mspace msp, void* oldmem, size_t bytes) argument
5843 mspace_memalign(mspace msp, size_t alignment, size_t bytes) argument
5963 mspace_set_footprint_limit(mspace msp, size_t bytes) argument
[all...]
/bionic/libc/upstream-openbsd/lib/libc/crypt/
H A Dchacha_private.h89 chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes) argument
97 if (!bytes) return;
117 if (bytes < 64) {
118 for (i = 0;i < bytes;++i) tmp[i] = m[i];
188 /* stopping at 2^70 bytes per nonce is user's responsibility */
208 if (bytes <= 64) {
209 if (bytes < 64) {
210 for (i = 0;i < bytes;++i) ctarget[i] = c[i];
216 bytes -= 64;
/bionic/libc/arch-mips/string/
H A Dmemset.S108 slti t1,a2,4 # .Laligned for 4 or more bytes
129 DBG andi t2,a2,3 # a2 must be a multiple of 4 bytes
189 # Here a3 counts bytes in 16w chunks
193 # 96 bytes left. The value "96" is calculated as needed buffer for
204 # Here t5 counts bytes in 16w "safe" chunks
272 # the t7 is the reminder count past 32-bytes
289 subu a3,a2,t8 # a3 is the count of bytes in 1w chunks
298 # store last 0-3 bytes
H A Dmemcpy.S93 andi a3,a3,0x3 # we need to copy a3 bytes to make a0/a1 aligned
95 subu a2,a2,a3 # now a2 is the remining bytes count
110 # Here a3 counts bytes in 16w chunks
125 pref 30,32(a0) # safe, as we have at least 64 bytes ahead
184 # Here we have src and dest word-aligned but less than 64-bytes to go
189 # the t8 is the reminder count past 32-bytes
216 subu a3,t8,a2 # a3 is count of bytes in 1w chunks
227 # For the last (<8) bytes
250 subu a2,a2,a3 # bytes left after initial a3 bytes
[all...]
/bionic/libc/arch-mips64/string/
H A Dmemset.S108 slti t1,a2,4 # .Laligned for 4 or more bytes
129 DBG andi t2,a2,3 # a2 must be a multiple of 4 bytes
189 # Here a3 counts bytes in 16w chunks
193 # 96 bytes left. The value "96" is calculated as needed buffer for
204 # Here t5 counts bytes in 16w "safe" chunks
272 # the t7 is the reminder count past 32-bytes
289 subu a3,a2,t8 # a3 is the count of bytes in 1w chunks
298 # store last 0-3 bytes
H A Dmemcpy.S93 andi a3,a3,0x3 # we need to copy a3 bytes to make a0/a1 aligned
95 subu a2,a2,a3 # now a2 is the remining bytes count
110 # Here a3 counts bytes in 16w chunks
125 pref 30,32(a0) # safe, as we have at least 64 bytes ahead
184 # Here we have src and dest word-aligned but less than 64-bytes to go
189 # the t8 is the reminder count past 32-bytes
216 subu a3,t8,a2 # a3 is count of bytes in 1w chunks
227 # For the last (<8) bytes
250 subu a2,a2,a3 # bytes left after initial a3 bytes
[all...]
/bionic/libc/kernel/uapi/drm/
H A Domap_drm.h42 uint32_t bytes; member in union:omap_gem_size

Completed in 928 milliseconds

12