Searched defs:bytes (Results 1 - 23 of 23) sorted by relevance

/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_common.cpp104 extern "C" void* malloc(size_t bytes) { argument
107 return _malloc(bytes);
109 return Malloc(malloc)(bytes);
120 extern "C" void* memalign(size_t alignment, size_t bytes) { argument
123 return _memalign(alignment, bytes);
125 return Malloc(memalign)(alignment, bytes);
136 extern "C" void* realloc(void* old_mem, size_t bytes) { argument
139 return _realloc(old_mem, bytes);
141 return Malloc(realloc)(old_mem, bytes);
145 extern "C" void* pvalloc(size_t bytes) { argument
153 valloc(size_t bytes) argument
[all...]
/bionic/tests/
H A Duchar_test.cpp83 char bytes[MB_LEN_MAX]; local
84 EXPECT_EQ(1U, c16rtomb(bytes, L'\0', NULL));
92 char bytes[MB_LEN_MAX]; local
94 memset(bytes, 0, sizeof(bytes));
95 EXPECT_EQ(1U, c16rtomb(bytes, L'h', NULL));
96 EXPECT_EQ('h', bytes[0]);
102 memset(bytes, 0, sizeof(bytes));
103 EXPECT_EQ(1U, c16rtomb(bytes,
123 char bytes[MB_LEN_MAX]; local
139 char bytes[MB_LEN_MAX]; local
281 char bytes[MB_LEN_MAX]; local
[all...]
H A Dwchar_test.cpp33 char bytes[] = { 'h', 'e', 'l', 'l', 'o', '\0' }; local
34 EXPECT_EQ(0U, mbrlen(&bytes[0], 0, NULL));
35 EXPECT_EQ(1U, mbrlen(&bytes[0], 1, NULL));
37 EXPECT_EQ(1U, mbrlen(&bytes[4], 1, NULL));
38 EXPECT_EQ(0U, mbrlen(&bytes[5], 1, NULL));
48 char bytes[MB_LEN_MAX]; local
51 EXPECT_EQ(1, wctomb(bytes, L'\0'));
52 EXPECT_EQ(1U, wcrtomb(bytes, L'\0', NULL));
55 memset(bytes, 0, sizeof(bytes));
119 char bytes[BUFSIZ]; local
[all...]
/bionic/libc/malloc_debug/
H A DFreeTrackData.cpp76 size_t bytes = header->usable_size; local
77 bytes = (bytes < debug.config().fill_on_free_bytes) ? bytes : debug.config().fill_on_free_bytes;
78 while (bytes > 0) {
79 size_t bytes_to_cmp = (bytes < cmp_mem_.size()) ? bytes : cmp_mem_.size();
84 bytes -= bytes_to_cmp;
H A Dmalloc_debug.cpp75 void* debug_memalign(size_t alignment, size_t bytes);
76 void* debug_realloc(void* pointer, size_t bytes);
77 void* debug_calloc(size_t nmemb, size_t bytes);
86 void* debug_pvalloc(size_t bytes);
315 size_t bytes = debug_malloc_usable_size(pointer); local
317 bytes = (bytes < fill_bytes) ? bytes : fill_bytes;
318 memset(pointer, g_debug->config().fill_alloc_value, bytes);
329 size_t bytes; local
383 debug_memalign(size_t alignment, size_t bytes) argument
441 size_t bytes = debug_malloc_usable_size(pointer); local
449 debug_realloc(void* pointer, size_t bytes) argument
527 size_t bytes = debug_malloc_usable_size(new_pointer); local
540 debug_calloc(size_t nmemb, size_t bytes) argument
[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
H A Drds.h147 uint64_t bytes; member in struct:rds_iovec
H A Dtelephony.h185 unsigned int bytes; member in union:telephony_exception
H A Dxfrm.h82 __u64 bytes; member in struct:xfrm_lifetime_cur
H A Dpkt_sched.h32 __u64 bytes; member in struct:tc_stats
H A Dsoundcard.h424 int bytes; member in struct:audio_buf_info
449 int bytes; member in struct:count_info
/bionic/libc/kernel/uapi/linux/netfilter/
H A Dxt_set.h76 struct ip_set_counter_match0 bytes; member in struct:xt_set_info_match_v3
92 struct ip_set_counter_match bytes; member in struct:xt_set_info_match_v4
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)
56 ({ ((chunkmap)[type / bytes(__u32)] & (1 << (type % bytes(__u32)))) ? 1 : 0; \
/bionic/linker/
H A Dlinker_block_allocator.cpp32 uint8_t bytes[PAGE_SIZE - 16] __attribute__((aligned(16))); member in struct:LinkerBlockAllocatorPage
79 ssize_t offset = reinterpret_cast<uint8_t*>(block) - page->bytes;
118 FreeBlockInfo* first_block = reinterpret_cast<FreeBlockInfo*>(page->bytes);
/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/tools/relocation_packer/src/
H A Delf_file_unittest.cc52 size_t bytes; local
54 bytes = fread(buffer, 1, sizeof(buffer), testfile);
55 ASSERT_EQ(bytes, fwrite(buffer, 1, bytes, temporary));
56 } while (bytes > 0);
H A Delf_file.cc42 // Alignment to preserve, in bytes. This must be at least as large as the
572 size_t bytes = dynamics.size() * sizeof(dynamics[0]); local
573 RewriteSectionData(dynamic_section, section_data, bytes);
732 VLOG(1) << "Unpacked : " << initial_bytes << " bytes";
739 VLOG(1) << "Packed (no padding): " << packed_bytes_estimate << " bytes";
755 VLOG(1) << "Compaction : " << hole_size << " bytes";
787 const size_t bytes = packed.size() * sizeof(packed[0]); local
788 ResizeSection(elf_, relocations_section_, bytes,
790 RewriteSectionData(relocations_section_, packed_data, bytes);
838 // Convert data to a vector of bytes
[all...]
/bionic/libc/kernel/uapi/drm/
H A Domap_drm.h42 uint32_t bytes; member in union:omap_gem_size
/bionic/libc/kernel/uapi/mtd/
H A Dubi-user.h72 __s64 bytes; member in struct:ubi_mkvol_req
82 __s64 bytes; member in struct:ubi_rsvol_req
101 __s32 bytes; member in struct:ubi_leb_change_req
/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/kernel/uapi/sound/
H A Dasound.h937 } bytes; member in union:snd_ctl_elem_value::__anon993

Completed in 1911 milliseconds