Searched refs:size (Results 1 - 25 of 783) sorted by relevance

1234567891011>>

/fuchsia/zircon/third_party/ulib/jemalloc/test/src/
H A Dbtalloc.c4 btalloc(size_t size, unsigned bits) argument
6 return (btalloc_0(size, bits));
/fuchsia/zircon/third_party/ulib/musl/pthread/
H A Dpthread_attr_setguardsize.c3 int pthread_attr_setguardsize(pthread_attr_t* a, size_t size) { argument
4 if (size > SIZE_MAX / 8)
6 a->_a_guardsize = size;
H A Dpthread_attr_setstacksize.c3 int pthread_attr_setstacksize(pthread_attr_t* a, size_t size) { argument
4 if (size - PTHREAD_STACK_MIN > SIZE_MAX / 4)
7 a->_a_stacksize = size;
/fuchsia/zircon/third_party/ulib/jemalloc/include/jemalloc/internal/
H A Dpages_externs.h21 void *pages_map(void *addr, size_t size, bool *commit);
22 void pages_unmap(void *addr, size_t size);
24 size_t size, bool *commit);
25 bool pages_commit(void *addr, size_t size);
26 bool pages_decommit(void *addr, size_t size);
27 bool pages_purge_lazy(void *addr, size_t size);
28 bool pages_purge_forced(void *addr, size_t size);
29 bool pages_huge(void *addr, size_t size);
30 bool pages_nohuge(void *addr, size_t size);
/fuchsia/zircon/kernel/lib/libc/string/
H A Dmemscan.c11 void *memscan(void *addr, int c, size_t size) argument
15 while (size) {
19 size--;
/fuchsia/zircon/system/core/userboot/
H A Dvdso-syms.ld.h14 #define FUNCTION(name, address, size) \
17 #define WEAK_FUNCTION(name, address, size) FUNCTION(name, address, size)
/fuchsia/zircon/third_party/ulib/jemalloc/test/include/test/
H A Dbtalloc.h2 void *btalloc(size_t size, unsigned bits);
5 void *btalloc_##n(size_t size, unsigned bits);
11 btalloc_##n(size_t size, unsigned bits) \
16 p = mallocx(size, 0); \
20 p = (btalloc_0(size, bits >> 1)); \
23 p = (btalloc_1(size, bits >> 1)); \
/fuchsia/zircon/third_party/ulib/backtrace/
H A Dalloc.c52 size_t size, backtrace_error_callback error_callback,
57 ret = malloc (size);
70 void *p, size_t size ATTRIBUTE_UNUSED,
81 size_t size, backtrace_error_callback error_callback,
86 if (size > vec->alc)
91 if (vec->size == 0)
92 alc = 32 * size;
93 else if (vec->size >= 4096)
94 alc = vec->size + 4096;
96 alc = 2 * vec->size;
51 backtrace_alloc(struct backtrace_state *state ATTRIBUTE_UNUSED, size_t size, backtrace_error_callback error_callback, void *data) argument
80 backtrace_vector_grow(struct backtrace_state *state ATTRIBUTE_UNUSED, size_t size, backtrace_error_callback error_callback, void *data, struct backtrace_vector *vec) argument
[all...]
H A Dsort.c46 swap (char *a, char *b, size_t size) argument
50 for (i = 0; i < size; i++, a++, b++)
61 backtrace_qsort (void *basearg, size_t count, size_t size, argument
76 swap (base, base + (count / 2) * size, size);
81 if ((*compar) (base, base + i * size) > 0)
85 swap (base + mid * size, base + i * size, size);
90 swap (base, base + mid * size, siz
[all...]
H A Dmmap.c64 size_t size; member in struct:backtrace_freelist_struct
70 backtrace_free_locked (struct backtrace_state *state, void *addr, size_t size) argument
73 if (size >= sizeof (struct backtrace_freelist_struct))
79 p->size = size;
89 size_t size, backtrace_error_callback error_callback,
115 if ((*pp)->size >= size)
124 size = (size
88 backtrace_alloc(struct backtrace_state *state, size_t size, backtrace_error_callback error_callback, void *data) argument
126 backtrace_free_locked (state, (char *) p + size, local
156 backtrace_free (state, (char *) page + size, asksize - size, local
169 backtrace_free(struct backtrace_state *state, void *addr, size_t size, backtrace_error_callback error_callback ATTRIBUTE_UNUSED, void *data ATTRIBUTE_UNUSED) argument
217 backtrace_vector_grow(struct backtrace_state *state,size_t size, backtrace_error_callback error_callback, void *data, struct backtrace_vector *vec) argument
288 size_t size; local
[all...]
/fuchsia/zircon/third_party/ulib/jemalloc/src/
H A Djemalloc_cpp.cpp18 void *operator new(std::size_t size);
19 void *operator new[](std::size_t size);
20 void *operator new(std::size_t size, const std::nothrow_t &) noexcept;
21 void *operator new[](std::size_t size, const std::nothrow_t &) noexcept;
29 void operator delete(void *ptr, std::size_t size) noexcept;
30 void operator delete[](void *ptr, std::size_t size) noexcept;
36 newImpl(std::size_t size) noexcept(IsNoExcept)
38 void *ptr = je_malloc(size);
61 ptr = je_malloc(size);
70 operator new(std::size_t size) argument
76 operator new[](std::size_t size) argument
[all...]
H A Dextent_mmap.c7 extent_alloc_mmap_slow(size_t size, size_t alignment, bool *zero, bool *commit) argument
12 alloc_size = size + alignment - PAGE;
14 if (alloc_size < size)
24 ret = pages_trim(pages, alloc_size, leadsize, size, commit);
33 extent_alloc_mmap(void *new_addr, size_t size, size_t alignment, bool *zero, argument
54 ret = pages_map(new_addr, size, commit);
60 pages_unmap(ret, size);
61 return (extent_alloc_mmap_slow(size, alignment, zero, commit));
70 extent_dalloc_mmap(void *addr, size_t size) argument
73 pages_unmap(addr, size);
[all...]
/fuchsia/zircon/system/ulib/fbl/
H A Dalloc_checker.cpp32 void* checked(size_t size, AllocChecker* ac, void* mem) { argument
33 ac->arm(size, mem != nullptr);
47 void AllocChecker::arm(size_t size, bool result) { argument
50 ((size == 0u) ? alloc_ok : (result ? alloc_ok : 0u));
74 void* operator new(size_t size, fbl::AllocChecker* ac) noexcept {
75 return fbl::checked(size, ac, operator new(size, std::nothrow_t()));
78 void* operator new[](size_t size, fbl::AllocChecker* ac) noexcept {
79 return fbl::checked(size, ac, operator new[](size, st
[all...]
/fuchsia/zircon/system/utest/core/echo/
H A Dstruct.c11 bool mojo_validate_struct_header(const void* data, size_t size) { argument
12 if (size < sizeof(mojo_struct_header_t) || size > UINT32_MAX) {
18 if (header->num_bytes < sizeof(mojo_struct_header_t) || header->num_bytes > size) {
/fuchsia/zircon/system/ulib/fidl/include/lib/fidl/cpp/
H A Dstring_view.h15 uint64_t size() const { return fidl_string_t::size; } function in class:fidl::StringView
16 void set_size(uint64_t size) { fidl_string_t::size = size; } member in class:fidl::StringView::fidl_string_t
24 bool empty() const { return fidl_string_t::size == 0; }
36 char* end() { return mutable_data() + size(); }
37 const char* end() const { return data() + size(); }
38 const char* cend() const { return data() + size(); }
/fuchsia/zircon/system/utest/perftest/
H A Dmemcpy-test.cpp13 // Test performance of memcpy() on a block of the given size.
14 bool MemcpyTest(perftest::RepeatState* state, size_t size) { argument
15 state->SetBytesProcessedPerRun(size);
17 fbl::unique_ptr<char[]> src(new char[size]);
18 fbl::unique_ptr<char[]> dest(new char[size]);
20 memset(src.get(), 0, size);
23 memcpy(dest.get(), src.get(), size);
36 for (auto size : kSizesBytes) {
37 auto name = fbl::StringPrintf("Memcpy/%zubytes", size);
38 perftest::RegisterTest(name.c_str(), MemcpyTest, size);
[all...]
/fuchsia/zircon/system/ulib/fbl/include/fbl/
H A Dnew.h21 void* operator new(size_t size, void* ptr) noexcept;
22 void* operator new[](size_t size, void* ptr) noexcept;
32 void* operator new(size_t size, const std::nothrow_t&) noexcept;
33 void* operator new[](size_t size, const std::nothrow_t&) noexcept;
37 void* operator new(size_t size, void* caller, const std::nothrow_t&) noexcept;
38 void* operator new[](size_t size, void* caller, const std::nothrow_t&) noexcept;
/fuchsia/zircon/system/host/fidl/include/fidl/
H A Dstring_view.h19 constexpr StringView(const std::string& string) : StringView(string.data(), string.size()) {}
20 constexpr StringView(const char* data, size_t size) : data_(data), size_(size) {} argument
23 operator std::string() const { return std::string(data(), size()); }
30 constexpr size_t size() const { return size_; } function in class:fidl::StringView
33 if (size() != other.size())
35 return !memcmp(data(), other.data(), size());
41 if (size() < other.size())
[all...]
/fuchsia/zircon/kernel/lib/heap/include/lib/
H A Dheap.h20 void *malloc(size_t size) __MALLOC;
21 void *memalign(size_t boundary, size_t size) __MALLOC;
22 void *calloc(size_t count, size_t size) __MALLOC;
23 void *realloc(void *ptr, size_t size);
27 void *malloc_debug_caller_(size_t size, void *caller);
30 __MALLOC static inline void *malloc_debug_caller(size_t size, void *caller) { argument
32 return malloc_debug_caller_(size, caller);
34 return malloc(size);
46 // |size_bytes| is the total size of the heap, |free_bytes| is the free portion.
/fuchsia/zircon/third_party/ulib/musl/src/passwd/
H A Dfgetpwent.c7 size_t size = 0; local
9 __getpwent_a(f, &pw, &line, &size, &res);
/fuchsia/zircon/third_party/ulib/musl/src/stdio/
H A Dsetbuffer.c4 void setbuffer(FILE* f, char* buf, size_t size) { argument
5 setvbuf(f, buf, buf ? _IOFBF : _IONBF, size);
/fuchsia/zircon/third_party/ulib/musl/src/sched/
H A Daffinity.c6 int sched_setaffinity(pid_t tid, size_t size, const cpu_set_t* set) { argument
11 int pthread_setaffinity_np(pthread_t td, size_t size, const cpu_set_t* set) { argument
15 int sched_getaffinity(pid_t tid, size_t size, cpu_set_t* set) { argument
20 int pthread_getaffinity_np(pthread_t td, size_t size, cpu_set_t* set) { argument
/fuchsia/zircon/kernel/lib/mtrace/
H A Dmtrace.cpp18 user_inout_ptr<void> arg, size_t size) {
22 return mtrace_cpuperf_control(action, options, arg, size);
24 return mtrace_insntrace_control(action, options, arg, size);
17 mtrace_control(uint32_t kind, uint32_t action, uint32_t options, user_inout_ptr<void> arg, size_t size) argument
/fuchsia/zircon/third_party/ulib/jemalloc/test/integration/
H A Dposix_memalign.c39 size_t alignment, size; local
44 size = UINT64_C(0x8000000000000000);
47 size = 0x80000000LU;
49 assert_d_ne(posix_memalign(&p, alignment, size), 0,
51 alignment, size); local
55 size = UINT64_C(0xc000000000000001);
58 size = 0xc0000001LU;
60 assert_d_ne(posix_memalign(&p, alignment, size), 0,
62 alignment, size); local
66 size
72 alignment, size); local
79 size_t alignment, size, total; local
[all...]
H A Daligned_alloc.c41 size_t alignment, size; local
46 size = UINT64_C(0x8000000000000000);
49 size = 0x80000000LU;
52 p = aligned_alloc(alignment, size);
55 alignment, size);
59 size = UINT64_C(0xc000000000000001);
62 size = 0xc0000001LU;
65 p = aligned_alloc(alignment, size);
68 alignment, size);
72 size
87 size_t alignment, size, total; local
[all...]

Completed in 201 milliseconds

1234567891011>>