/l4re-core-master/lua/lib/contrib/src/ |
A D | lmem.c | 149 size_t osize, size_t nsize) { in tryagain() argument 153 return (*g->frealloc)(g->ud, block, osize, nsize); /* try again */ in tryagain() 162 void *luaM_realloc_ (lua_State *L, void *block, size_t osize, size_t nsize) { in luaM_realloc_() argument 166 newblock = firsttry(g, block, osize, nsize); in luaM_realloc_() 167 if (l_unlikely(newblock == NULL && nsize > 0)) { in luaM_realloc_() 168 newblock = tryagain(L, block, osize, nsize); in luaM_realloc_() 172 lua_assert((nsize == 0) == (newblock == NULL)); in luaM_realloc_() 173 g->GCdebt = (g->GCdebt + nsize) - osize; in luaM_realloc_() 179 size_t nsize) { in luaM_saferealloc_() argument 180 void *newblock = luaM_realloc_(L, block, osize, nsize); in luaM_saferealloc_() [all …]
|
A D | lstring.c | 62 static void tablerehash (TString **vect, int osize, int nsize) { in tablerehash() argument 64 for (i = osize; i < nsize; i++) /* clear new elements */ in tablerehash() 71 unsigned int h = lmod(p->hash, nsize); /* new position */ in tablerehash() 85 void luaS_resize (lua_State *L, int nsize) { in luaS_resize() argument 89 if (nsize < osize) /* shrinking table? */ in luaS_resize() 90 tablerehash(tb->hash, osize, nsize); /* depopulate shrinking part */ in luaS_resize() 91 newvect = luaM_reallocvector(L, tb->hash, osize, nsize, TString*); in luaS_resize() 93 if (nsize < osize) /* was it shrinking table? */ in luaS_resize() 99 tb->size = nsize; in luaS_resize() 100 if (nsize > osize) in luaS_resize() [all …]
|
A D | loadlib.c | 180 DWORD nsize = sizeof(buff)/sizeof(char); in setprogdir() local 181 DWORD n = GetModuleFileNameA(NULL, buff, nsize); /* get exec. name */ in setprogdir() 182 if (n == 0 || n == nsize || (lb = strrchr(buff, '\\')) == NULL) in setprogdir()
|
A D | ldo.c | 276 int nsize = inuse * 2; /* proposed new size */ in luaD_shrinkstack() local 280 if (nsize > LUAI_MAXSTACK) in luaD_shrinkstack() 281 nsize = LUAI_MAXSTACK; in luaD_shrinkstack() 286 luaD_reallocstack(L, nsize, 0); /* ok if that fails */ in luaD_shrinkstack()
|
A D | lauxlib.c | 1010 static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) { in l_alloc() argument 1012 if (nsize == 0) { in l_alloc() 1017 return realloc(ptr, nsize); in l_alloc()
|
A D | ltable.c | 580 int nsize = allocsizenode(t); in luaH_resizearray() local 581 luaH_resize(L, t, nasize, nsize); in luaH_resizearray()
|
A D | lgc.c | 480 unsigned int nsize = sizenode(h); in traverseephemeron() local 490 for (i = 0; i < nsize; i++) { in traverseephemeron() 491 Node *n = inv ? gnode(h, nsize - 1 - i) : gnode(h, i); in traverseephemeron()
|
A D | lua.h | 125 typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize);
|
/l4re-core-master/uclibc/lib/contrib/uclibc/ldso/include/ |
A D | inline-hashtab.h | 132 size_t nsize; in htab_expand() local 140 nsize = _dl_higher_prime_number (htab->n_elements * 2); in htab_expand() 142 nsize = htab->size; in htab_expand() 144 nentries = _dl_calloc (sizeof (void *), nsize); in htab_expand() 148 htab->size = nsize; in htab_expand()
|
/l4re-core-master/uclibc/lib/contrib/uclibc/ldso/ldso/fdpic/ |
A D | dl-inlines.h | 314 size_t nsize; in htab_expand() local 324 nsize = higher_prime_number(htab->n_elements * 2); in htab_expand() 326 nsize = htab->size; in htab_expand() 328 nentries = _dl_malloc(sizeof(*nentries) * nsize); in htab_expand() 329 _dl_memset(nentries, 0, sizeof(*nentries) * nsize); in htab_expand() 333 htab->size = nsize; in htab_expand()
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/misc/regex/ |
A D | regex_old.c | 304 # define REGEX_REALLOCATE(source, osize, nsize) realloc (source, nsize) argument 326 # define REGEX_REALLOCATE(source, osize, nsize) \ argument 327 (destination = (char *) alloca (nsize), \ 341 # define REGEX_REALLOCATE_STACK(source, osize, nsize) \ argument 342 r_re_alloc (&failure_stack_ptr, (nsize)) 351 # define REGEX_REALLOCATE_STACK(source, osize, nsize) realloc (source, nsize) argument 358 # define REGEX_REALLOCATE_STACK(source, osize, nsize) \ argument 359 REGEX_REALLOCATE (source, osize, nsize)
|