/l4re-core-master/uclibc/lib/contrib/uclibc/test/string/ |
A D | stratcliff.c | 63 mprotect(adr + 2 * size, size, PROT_NONE); in main() 64 adr += size; in main() 67 mprotect(dest + 2 * size, size, PROT_NONE); in main() 68 dest += size; in main() 73 for (outer = size - 1; outer >= MAX (0, size - 128); --outer) in main() 75 for (inner = MAX (outer, size - 64); inner < size; ++inner) in main() 91 for (outer = size - 1; outer >= MAX (0, size - 128); --outer) in main() 93 for (middle = MAX (outer, size - 64); middle < size; ++middle) in main() 127 for (outer = size - 1; outer >= MAX (0, size - 128); --outer) in main() 129 for (middle = MAX (outer, size - 64); middle < size; ++middle) in main() [all …]
|
/l4re-core-master/l4util/lib/src/ |
A D | list_alloc.c | 101 c->size += c->next->size; in __merge() 122 size = (size + ALIGN_MASK) & ~ALIGN_MASK; in l4la_free() 137 (*c)->size = size; in l4la_free() 156 size = (size + ALIGN_MASK) & ~ALIGN_MASK; in l4la_alloc() 164 if ((*c)->size < size) in l4la_alloc() 169 if ((*c)->size >= size) in l4la_alloc() 171 if ((*c)->size == size) in l4la_alloc() 181 m->size = (*c)->size - size; in l4la_alloc() 200 if (a_size == size) in l4la_alloc() 208 m->size = a_size - size; in l4la_alloc() [all …]
|
/l4re-core-master/cxx/lib/util/src/ |
A D | alloc_list.cc | 23 void Alloc_list::free(void *blk, unsigned long size) in free() argument 29 if (reinterpret_cast<char*>(*c) + (*c)->size == blk) in free() 31 (*c)->size += size; in free() 45 n->size = size; in free() 51 && reinterpret_cast<char *>(*c) + (*c)->size in free() 54 (*c)->size += (*c)->next->size; in free() 59 void *Alloc_list::alloc(unsigned long size) in alloc() argument 70 if ((*c)->size >= size && (!min || (*min)->size > (*c)->size)) in alloc() 80 if ((*min)->size > size) in alloc() 82 r = reinterpret_cast<char*>(*min) + ((*min)->size - size); in alloc() [all …]
|
/l4re-core-master/l4sys/include/ |
A D | vcon.h | 283 mr->mr[1] = size; in l4_vcon_send_u() 284 __builtin_memcpy(&mr->mr[2], buf, size); in l4_vcon_send_u() 302 if (size > L4_VCON_WRITE_SIZE) in l4_vcon_write_u() 303 size = L4_VCON_WRITE_SIZE; in l4_vcon_write_u() 305 t = l4_vcon_send_u(vcon, buf, size, utcb); in l4_vcon_write_u() 309 return (long) size; in l4_vcon_write_u() 327 mr->mr[0] = (size << 16) | L4_VCON_READ_OP; in l4_vcon_read_with_flags_u() 339 ret = size + 1; in l4_vcon_read_with_flags_u() 340 else if (r < size) in l4_vcon_read_with_flags_u() 343 ret = size; in l4_vcon_read_with_flags_u() [all …]
|
/l4re-core-master/uclibc/lib/contrib/uclibc/ldso/include/ |
A D | inline-hashtab.h | 36 size_t size; member 54 ht->size = 3; in htab_create() 96 size_t size = htab->size; in find_empty_slot_for_expand() local 108 if (index >= size) in find_empty_slot_for_expand() 109 index -= size; in find_empty_slot_for_expand() 142 nsize = htab->size; in htab_expand() 148 htab->size = nsize; in htab_expand() 194 size_t size; in htab_find_slot() local 203 size = htab->size; in htab_find_slot() 204 index = hash % size; in htab_find_slot() [all …]
|
/l4re-core-master/moe/server/src/ |
A D | dataspace_anon.cc | 22 Moe::Dataspace_anon::Dataspace_anon(long size, Flags w, in Dataspace_anon() argument 31 if (L4_UNLIKELY(size < 0)) in Dataspace_anon() 39 if (a <= (unsigned long)(-size)) in Dataspace_anon() 45 if (l <= (unsigned long)(-size)) in Dataspace_anon() 48 size = cxx::min(a + size, l + size); in Dataspace_anon() 49 size = l4_trunc_size(size, page_shift); in Dataspace_anon() 51 if (size == 0L) in Dataspace_anon() 54 unsigned long r_size = size; in Dataspace_anon() 63 size = r_size; in Dataspace_anon() 74 memset(m.get(), 0, m.size()); in Dataspace_anon() [all …]
|
/l4re-core-master/libstdc++-v3/contrib/libstdc++-v3-5/libsupc++/ |
A D | eh_alloc.cc | 92 std::size_t size; member 96 std::size_t size; member 146 size = ((size + __alignof__ (allocated_entry::data) - 1) in allocate() 151 *e && (*e)->size < size; in allocate() 157 if ((*e)->size - size >= sizeof (free_entry)) in allocate() 166 f->size = sz - size; in allocate() 169 x->size = size; in allocate() 179 x->size = sz; in allocate() 196 f->size = sz; in free() 207 f->size = sz + first_free_entry->size; in free() [all …]
|
/l4re-core-master/libstdc++-v3/contrib/libstdc++-v3-6/libsupc++/ |
A D | eh_alloc.cc | 96 std::size_t size; member 100 std::size_t size; member 152 size = ((size + __alignof__ (allocated_entry::data) - 1) in allocate() 157 *e && (*e)->size < size; in allocate() 163 if ((*e)->size - size >= sizeof (free_entry)) in allocate() 172 f->size = sz - size; in allocate() 175 x->size = size; in allocate() 185 x->size = sz; in allocate() 202 f->size = sz; in free() 213 f->size = sz + first_free_entry->size; in free() [all …]
|
/l4re-core-master/libstdc++-v3/contrib/libstdc++-v3-8/libsupc++/ |
A D | eh_alloc.cc | 96 std::size_t size; member 100 std::size_t size; member 152 size = ((size + __alignof__ (allocated_entry::data) - 1) in allocate() 157 *e && (*e)->size < size; in allocate() 163 if ((*e)->size - size >= sizeof (free_entry)) in allocate() 172 f->size = sz - size; in allocate() 175 x->size = size; in allocate() 185 x->size = sz; in allocate() 206 f->size = sz; in free() 217 f->size = sz + first_free_entry->size; in free() [all …]
|
/l4re-core-master/libstdc++-v3/contrib/libstdc++-v3-7/libsupc++/ |
A D | eh_alloc.cc | 96 std::size_t size; member 100 std::size_t size; member 152 size = ((size + __alignof__ (allocated_entry::data) - 1) in allocate() 157 *e && (*e)->size < size; in allocate() 163 if ((*e)->size - size >= sizeof (free_entry)) in allocate() 172 f->size = sz - size; in allocate() 175 x->size = size; in allocate() 185 x->size = sz; in allocate() 206 f->size = sz; in free() 217 f->size = sz + first_free_entry->size; in free() [all …]
|
/l4re-core-master/libstdc++-v3/contrib/libstdc++-v3-11/libsupc++/ |
A D | eh_alloc.cc | 96 std::size_t size; member 100 std::size_t size; member 152 size = ((size + __alignof__ (allocated_entry::data) - 1) in allocate() 157 *e && (*e)->size < size; in allocate() 163 if ((*e)->size - size >= sizeof (free_entry)) in allocate() 172 f->size = sz - size; in allocate() 175 x->size = size; in allocate() 185 x->size = sz; in allocate() 206 f->size = sz; in free() 217 f->size = sz + first_free_entry->size; in free() [all …]
|
/l4re-core-master/libstdc++-v3/contrib/libstdc++-v3-10/libsupc++/ |
A D | eh_alloc.cc | 96 std::size_t size; member 100 std::size_t size; member 152 size = ((size + __alignof__ (allocated_entry::data) - 1) in allocate() 157 *e && (*e)->size < size; in allocate() 163 if ((*e)->size - size >= sizeof (free_entry)) in allocate() 172 f->size = sz - size; in allocate() 175 x->size = size; in allocate() 185 x->size = sz; in allocate() 206 f->size = sz; in free() 217 f->size = sz + first_free_entry->size; in free() [all …]
|
/l4re-core-master/libstdc++-v3/contrib/libstdc++-v3-9/libsupc++/ |
A D | eh_alloc.cc | 96 std::size_t size; member 100 std::size_t size; member 152 size = ((size + __alignof__ (allocated_entry::data) - 1) in allocate() 157 *e && (*e)->size < size; in allocate() 163 if ((*e)->size - size >= sizeof (free_entry)) in allocate() 172 f->size = sz - size; in allocate() 175 x->size = size; in allocate() 185 x->size = sz; in allocate() 206 f->size = sz; in free() 217 f->size = sz + first_free_entry->size; in free() [all …]
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/stdlib/malloc-simple/ |
A D | alloc.c | 24 void *malloc(size_t size) in malloc() argument 28 if (unlikely(size == 0)) { in malloc() 30 size++; in malloc() 66 size_t size=lsize * nmemb; in calloc() local 74 result = malloc(size); in calloc() 79 memset(result, 0, size); in calloc() 92 return malloc(size); in realloc() 93 if (!size) { in realloc() 98 newptr = malloc(size); in realloc() 101 memcpy(newptr, ptr, (old_size < size ? old_size : size)); in realloc() [all …]
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/stdlib/malloc/ |
A D | heap.h | 43 size_t size; member 53 #define HEAP_FREE_AREA_SIZE(fa) ((fa)->size) 62 char space[HEAP_ADJUST_SIZE(size) \ 164 fa->size = size; in __heap_add_free_area() 176 struct heap_free_area *fa, size_t size) in __heap_free_area_alloc() argument 178 size_t fa_size = fa->size; in __heap_free_area_alloc() 180 if (fa_size < size + HEAP_MIN_FREE_AREA_SIZE) in __heap_free_area_alloc() 186 size = fa_size; in __heap_free_area_alloc() 190 fa->size = fa_size - size; in __heap_free_area_alloc() 192 return size; in __heap_free_area_alloc() [all …]
|
A D | malloc.c | 55 #define malloc_from_heap(size, heap, lck) __malloc_from_heap(size, heap, lck) argument 57 #define malloc_from_heap(size, heap, lck) __malloc_from_heap(size, heap) argument 71 size += MALLOC_HEADER_SIZE; in __malloc_from_heap() 76 mem = __heap_alloc (heap, &size); in __malloc_from_heap() 88 = (size < MALLOC_HEAP_EXTEND_SIZE in __malloc_from_heap() 150 mem = __heap_alloc (heap, &size); in __malloc_from_heap() 167 new_mmb->size = block_size; in __malloc_from_heap() 197 malloc (size_t size) in malloc() argument 212 if (unlikely (size == 0)) in malloc() 213 size++; in malloc() [all …]
|
/l4re-core-master/lua/lib/contrib/src/ |
A D | lmem.c | 82 int size = *psize; in luaM_growaux_() local 85 if (size >= limit / 2) { /* cannot double it? */ in luaM_growaux_() 91 size *= 2; in luaM_growaux_() 92 if (size < MINSIZEARRAY) in luaM_growaux_() 93 size = MINSIZEARRAY; /* minimum size */ in luaM_growaux_() 95 lua_assert(nelems + 1 <= size && size <= limit); in luaM_growaux_() 113 size_t oldsize = cast_sizet((*size) * size_elem); in luaM_shrinkvector_() 117 *size = final_n; in luaM_shrinkvector_() 188 if (size == 0) in luaM_malloc_() 194 newblock = tryagain(L, NULL, tag, size); in luaM_malloc_() [all …]
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/stdlib/malloc-standard/ |
A D | malloc.c | 231 size_t size; in __do_check_malloc_state() local 295 total += size; in __do_check_malloc_state() 298 idx = bin_index(size); in __do_check_malloc_state() 483 size -= old_size; in __malloc_alloc() 493 size = (size + pagemask) & ~pagemask; in __malloc_alloc() 501 if (size > 0) in __malloc_alloc() 517 size = (size + old_size + pagemask) & ~pagemask; in __malloc_alloc() 731 size = chunksize(p); in __malloc_alloc() 957 if (size == nb) { in malloc() 978 if ((unsigned long)(size) < (unsigned long)(bck->bk->size)) { in malloc() [all …]
|
A D | free.c | 181 size_t size; in __malloc_consolidate() local 217 size = p->size & ~PREV_INUSE; in __malloc_consolidate() 223 size += prevsize; in __malloc_consolidate() 233 size += nextsize; in __malloc_consolidate() 244 set_foot(p, size); in __malloc_consolidate() 248 size += nextsize; in __malloc_consolidate() 287 size = chunksize(p); in free() 324 size += prevsize; in free() 337 size += nextsize; in free() 354 set_foot(p, size); in free() [all …]
|
/l4re-core-master/cxx/lib/tl/include/ |
A D | list_alloc | 39 unsigned long size; 217 c->size += c->next->size; 237 size = (size - (nblock - (unsigned long)block)) & ~mb_align; 241 // blow up size to the minimum aligned size 242 size = (size + mb_align) & ~mb_align; 260 (*c)->size = size; 369 // blow up size to the minimum aligned size 370 size = (size + mb_align) & ~mb_align; 387 if ((*c)->size < size) 425 m->size = r_size - size; [all …]
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/common/ |
A D | getgroups.c | 16 _syscall2(int, getgroups, int, size, gid_t *, list) 19 _syscall2(int, getgroups, int, size, gid_t *, list) 29 _syscall2(int, __syscall_getgroups, int, size, __kernel_gid_t *, list) 31 int getgroups(int size, gid_t groups[]) 33 if (unlikely(size < 0)) { 41 size = MIN(size, sysconf(_SC_NGROUPS_MAX)); 42 kernel_groups = (__kernel_gid_t *)malloc(sizeof(*kernel_groups) * size); 43 if (size && kernel_groups == NULL) 46 ngids = __syscall_getgroups(size, kernel_groups); 47 if (size != 0 && ngids > 0) {
|
/l4re-core-master/uclibc/lib/uclibc/ARCH-mips/include/asm-generic/ |
A D | ioctl.h | 65 #define _IOC(dir,type,nr,size) \ argument 69 ((size) << _IOC_SIZESHIFT)) 75 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) argument 76 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument 77 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument 78 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) argument 79 #define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) argument 80 #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) argument
|
/l4re-core-master/libstdc++-v3/contrib/libstdc++-v3-5/include/ext/pb_ds/detail/hash_fn/ |
A D | ranged_hash_fn.hpp | 99 ranged_hash_fn(size_type size) in ranged_hash_fn() argument 100 { Comb_Hash_Fn::notify_resized(size); } in ranged_hash_fn() 106 { Comb_Hash_Fn::notify_resized(size); } in ranged_hash_fn() 127 notify_resized(size_type size) in notify_resized() argument 185 ranged_hash_fn(size_type size) in ranged_hash_fn() argument 186 { Comb_Hash_Fn::notify_resized(size); } in ranged_hash_fn() 192 { Comb_Hash_Fn::notify_resized(size); } in ranged_hash_fn() 213 notify_resized(size_type size) in notify_resized() argument 274 ranged_hash_fn(size_type size) in ranged_hash_fn() argument 275 { Comb_Hash_Fn::notify_resized(size); } in ranged_hash_fn() [all …]
|
/l4re-core-master/libstdc++-v3/contrib/libstdc++-v3-8/include/ext/pb_ds/detail/hash_fn/ |
A D | ranged_hash_fn.hpp | 99 ranged_hash_fn(size_type size) in ranged_hash_fn() argument 100 { Comb_Hash_Fn::notify_resized(size); } in ranged_hash_fn() 106 { Comb_Hash_Fn::notify_resized(size); } in ranged_hash_fn() 127 notify_resized(size_type size) in notify_resized() argument 185 ranged_hash_fn(size_type size) in ranged_hash_fn() argument 186 { Comb_Hash_Fn::notify_resized(size); } in ranged_hash_fn() 192 { Comb_Hash_Fn::notify_resized(size); } in ranged_hash_fn() 213 notify_resized(size_type size) in notify_resized() argument 274 ranged_hash_fn(size_type size) in ranged_hash_fn() argument 275 { Comb_Hash_Fn::notify_resized(size); } in ranged_hash_fn() [all …]
|
/l4re-core-master/libstdc++-v3/contrib/libstdc++-v3-6/include/ext/pb_ds/detail/hash_fn/ |
A D | ranged_hash_fn.hpp | 99 ranged_hash_fn(size_type size) in ranged_hash_fn() argument 100 { Comb_Hash_Fn::notify_resized(size); } in ranged_hash_fn() 106 { Comb_Hash_Fn::notify_resized(size); } in ranged_hash_fn() 127 notify_resized(size_type size) in notify_resized() argument 185 ranged_hash_fn(size_type size) in ranged_hash_fn() argument 186 { Comb_Hash_Fn::notify_resized(size); } in ranged_hash_fn() 192 { Comb_Hash_Fn::notify_resized(size); } in ranged_hash_fn() 213 notify_resized(size_type size) in notify_resized() argument 274 ranged_hash_fn(size_type size) in ranged_hash_fn() argument 275 { Comb_Hash_Fn::notify_resized(size); } in ranged_hash_fn() [all …]
|