Home
last modified time | relevance | path

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

12

/bionic/libc/malloc_hooks/
Dmalloc_hooks.cpp81 static void* default_malloc_hook(size_t bytes, const void*) { in default_malloc_hook()
85 static void* default_realloc_hook(void* pointer, size_t bytes, const void*) { in default_realloc_hook()
93 static void* default_memalign_hook(size_t alignment, size_t bytes, const void*) { in default_memalign_hook()
142 void* hooks_memalign(size_t alignment, size_t bytes) { in hooks_memalign()
149 void* hooks_realloc(void* pointer, size_t bytes) { in hooks_realloc()
156 void* hooks_calloc(size_t nmemb, size_t bytes) { in hooks_calloc()
231 void* hooks_pvalloc(size_t bytes) { in hooks_pvalloc()
/bionic/libc/bionic/
Dmalloc_limit.cpp96 static inline bool CheckLimit(size_t bytes) { in CheckLimit()
137 void* LimitMalloc(size_t bytes) { in LimitMalloc()
149 static void* LimitMemalign(size_t alignment, size_t bytes) { in LimitMemalign()
195 static void* LimitRealloc(void* old_mem, size_t bytes) { in LimitRealloc()
231 static void* LimitPvalloc(size_t bytes) { in LimitPvalloc()
243 static void* LimitValloc(size_t bytes) { in LimitValloc()
Dmalloc_common.cpp106 extern "C" void* malloc(size_t bytes) { in malloc()
126 extern "C" void* memalign(size_t alignment, size_t bytes) { in memalign()
158 extern "C" __attribute__((__noinline__)) void* realloc(void* old_mem, size_t bytes) { in realloc()
182 extern "C" void* pvalloc(size_t bytes) { in pvalloc()
194 extern "C" void* valloc(size_t bytes) { in valloc()
Djemalloc_wrapper.cpp26 void* je_pvalloc(size_t bytes) { in je_pvalloc()
Dmalloc_heapprofd.cpp303 extern "C" void* MallocInitHeapprofdHook(size_t bytes) { in MallocInitHeapprofdHook()
Dbionic_elf_tls.cpp217 size_t bytes = dtv_size_in_bytes(MAX(1, loaded_cnt)); in calculate_new_dtv_count() local
/bionic/tests/
Duchar_test.cpp61 char bytes[MB_LEN_MAX]; in TEST() local
66 char bytes[MB_LEN_MAX]; in TEST() local
93 char bytes[MB_LEN_MAX]; in TEST() local
105 char bytes[MB_LEN_MAX]; in TEST() local
213 char bytes[MB_LEN_MAX]; in TEST() local
Dmalloc_test.cpp756 EXPECT_EXIT(CheckAllocationFunction([](size_t bytes) { return calloc(bytes, 1) != nullptr; }), in TEST()
758 EXPECT_EXIT(CheckAllocationFunction([](size_t bytes) { return calloc(1, bytes) != nullptr; }), in TEST()
760 EXPECT_EXIT(CheckAllocationFunction([](size_t bytes) { return malloc(bytes) != nullptr; }), in TEST()
763 [](size_t bytes) { return memalign(sizeof(void*), bytes) != nullptr; }), in TEST()
765 EXPECT_EXIT(CheckAllocationFunction([](size_t bytes) { in TEST()
771 [](size_t bytes) { return aligned_alloc(sizeof(void*), bytes) != nullptr; }), in TEST()
773 EXPECT_EXIT(CheckAllocationFunction([](size_t bytes) { in TEST()
779 EXPECT_EXIT(CheckAllocationFunction([](size_t bytes) { return pvalloc(bytes) != nullptr; }), in TEST()
781 EXPECT_EXIT(CheckAllocationFunction([](size_t bytes) { return valloc(bytes) != nullptr; }), in TEST()
Dwchar_test.cpp37 char bytes[] = { 'h', 'e', 'l', 'l', 'o', '\0' }; in TEST() local
52 char bytes[MB_LEN_MAX]; in TEST() local
123 char bytes[BUFSIZ]; in TEST() local
/bionic/libc/arch-mips/string/
Dmemmove.c186 unsigned long words, unsigned long bytes, void *ret) in unaligned_words_forward()
225 unsigned long words, unsigned long bytes, void *ret) in unaligned_words_backward()
266 unsigned long words, unsigned long bytes, void *ret) in unaligned_words_forward()
273 unsigned long words, unsigned long bytes, void *ret) in unaligned_words_backward()
308 unsigned long words, unsigned long bytes, void *ret) in aligned_words_forward()
348 unsigned long words, unsigned long bytes, void *ret) in aligned_words_backward()
388 unsigned long bytes, words; in memmove() local
Dmemcpy.c148 unsigned long words, unsigned long bytes, void *ret) in unaligned_words()
201 unsigned long words, unsigned long bytes, void *ret) in unaligned_words()
238 unsigned long words, unsigned long bytes, void *ret) in aligned_words()
291 unsigned long bytes, words; in memcpy() local
Dmemcmp.c140 unsigned long words, unsigned long bytes) in unaligned_words()
217 unsigned long words, unsigned long bytes) in unaligned_words()
226 unsigned long words, unsigned long bytes) in aligned_words()
314 unsigned long bytes, words; in memcmp() local
/bionic/libc/malloc_debug/
Dmalloc_debug.cpp414 size_t bytes = InternalMallocUsableSize(pointer); in InternalMalloc() local
447 size_t bytes; in InternalFree() local
517 void* debug_memalign(size_t alignment, size_t bytes) { in debug_memalign()
582 size_t bytes = InternalMallocUsableSize(pointer); in debug_memalign() local
596 void* debug_realloc(void* pointer, size_t bytes) { in debug_realloc()
698 size_t bytes = InternalMallocUsableSize(new_pointer); in debug_realloc() local
715 void* debug_calloc(size_t nmemb, size_t bytes) { in debug_calloc()
876 void* debug_pvalloc(size_t bytes) { in debug_pvalloc()
DRecordData.cpp142 ssize_t bytes = write(dump_fd, line.c_str(), line.length()); in Dump() local
/bionic/libc/upstream-netbsd/lib/libc/isc/
Dev_streams.c233 consume(evStream *str, size_t bytes) { in consume()
272 int bytes; in writable() local
295 int bytes; in readable() local
/bionic/libc/kernel/uapi/linux/
Dgen_stats.h35 __u64 bytes; member
39 __u64 bytes; member
/bionic/libc/stdio/
Dvfscanf.cpp344 size_t bytes = 0; in __svfscanf() local
433 size_t bytes = 0; in __svfscanf() local
/bionic/libc/kernel/uapi/mtd/
Dubi-user.h66 __s64 bytes; member
74 __s64 bytes; member
89 __s32 bytes; member
/bionic/libc/bionic/scudo/
Dscudo.cpp46 static inline bool AllocTooBig(size_t bytes) {
/bionic/libc/kernel/uapi/linux/netfilter/
Dxt_set.h65 struct ip_set_counter_match0 bytes; member
78 struct ip_set_counter_match bytes; member
Dxt_sctp.h45 #define bytes(type) (sizeof(type) * 8) macro
/bionic/linker/
Dlinker_block_allocator.cpp46 uint8_t bytes[kAllocateSize - 16] __attribute__((aligned(16))); member
/bionic/libc/kernel/uapi/drm/
Domap_drm.h41 __u32 bytes; member
/bionic/benchmarks/tests/
Dinterface_test.cpp127 ssize_t bytes = TEMP_FAILURE_RETRY(read(fd_, buffer, sizeof(buffer) - 1)); in RunTest() local
/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()

12