/bionic/libc/bionic/ |
H A D | jemalloc_wrapper.cpp | 23 void* je_pvalloc(size_t bytes) { argument 25 size_t size = BIONIC_ALIGN(bytes, pagesize); 26 if (size < bytes) {
|
H A D | malloc_common.cpp | 104 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 D | uchar_test.cpp | 83 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 D | wchar_test.cpp | 33 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 D | FreeTrackData.cpp | 76 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 D | malloc_debug.cpp | 75 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 D | gen_stats.h | 36 __u64 bytes; member in struct:gnet_stats_basic 41 __u64 bytes; member in struct:gnet_stats_basic_packed
|
H A D | blktrace_api.h | 114 __u32 bytes; member in struct:blk_io_trace
|
H A D | rds.h | 147 uint64_t bytes; member in struct:rds_iovec
|
H A D | telephony.h | 185 unsigned int bytes; member in union:telephony_exception
|
H A D | xfrm.h | 82 __u64 bytes; member in struct:xfrm_lifetime_cur
|
H A D | pkt_sched.h | 32 __u64 bytes; member in struct:tc_stats
|
H A D | soundcard.h | 424 int bytes; member in struct:audio_buf_info 449 int bytes; member in struct:count_info
|
/bionic/libc/kernel/uapi/linux/netfilter/ |
H A D | xt_set.h | 76 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 D | xt_sctp.h | 51 #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 D | linker_block_allocator.cpp | 32 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 D | ev_streams.c | 49 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 D | elf_file_unittest.cc | 52 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 D | elf_file.cc | 42 // 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 D | omap_drm.h | 42 uint32_t bytes; member in union:omap_gem_size
|
/bionic/libc/kernel/uapi/mtd/ |
H A D | ubi-user.h | 72 __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 D | chacha_private.h | 89 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 D | asound.h | 937 } bytes; member in union:snd_ctl_elem_value::__anon993
|