Home
last modified time | relevance | path

Searched refs:nsize (Results 1 – 23 of 23) sorted by relevance

/external/skia/third_party/lua/src/
Dlmem.c75 void *luaM_realloc_ (lua_State *L, void *block, size_t osize, size_t nsize) { in luaM_realloc_() argument
81 if (nsize > realosize && g->gcrunning) in luaM_realloc_()
84 newblock = (*g->frealloc)(g->ud, block, osize, nsize); in luaM_realloc_()
85 if (newblock == NULL && nsize > 0) { in luaM_realloc_()
86 api_check(L, nsize > realosize, in luaM_realloc_()
90 newblock = (*g->frealloc)(g->ud, block, osize, nsize); /* try again */ in luaM_realloc_()
95 lua_assert((nsize == 0) == (newblock == NULL)); in luaM_realloc_()
96 g->GCdebt = (g->GCdebt + nsize) - realosize; in luaM_realloc_()
Dloadlib.c171 DWORD nsize = sizeof(buff)/sizeof(char); in setprogdir() local
172 DWORD n = GetModuleFileNameA(NULL, buff, nsize); in setprogdir()
173 if (n == 0 || n == nsize || (lb = strrchr(buff, '\\')) == NULL) in setprogdir()
Dlauxlib.c919 static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) { in l_alloc() argument
921 if (nsize == 0) { in l_alloc()
926 return realloc(ptr, nsize); in l_alloc()
Dltable.c338 int nsize = isdummy(t->node) ? 0 : sizenode(t); in luaH_resizearray() local
339 luaH_resize(L, t, nasize, nsize); in luaH_resizearray()
Dlua.h70 typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize);
/external/syslinux/com32/lua/src/
Dlmem.c75 void *luaM_realloc_ (lua_State *L, void *block, size_t osize, size_t nsize) { in luaM_realloc_() argument
81 if (nsize > realosize && g->gcrunning) in luaM_realloc_()
84 newblock = (*g->frealloc)(g->ud, block, osize, nsize); in luaM_realloc_()
85 if (newblock == NULL && nsize > 0) { in luaM_realloc_()
86 api_check(L, nsize > realosize, in luaM_realloc_()
90 newblock = (*g->frealloc)(g->ud, block, osize, nsize); /* try again */ in luaM_realloc_()
95 lua_assert((nsize == 0) == (newblock == NULL)); in luaM_realloc_()
96 g->GCdebt = (g->GCdebt + nsize) - realosize; in luaM_realloc_()
Dloadlib.c175 DWORD nsize = sizeof(buff)/sizeof(char); in setprogdir() local
176 DWORD n = GetModuleFileNameA(NULL, buff, nsize); in setprogdir()
177 if (n == 0 || n == nsize || (lb = strrchr(buff, '\\')) == NULL) in setprogdir()
Dlauxlib.c921 static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) { in l_alloc() argument
923 if (nsize == 0) { in l_alloc()
928 return realloc(ptr, nsize); in l_alloc()
Dltable.c339 int nsize = isdummy(t->node) ? 0 : sizenode(t); in luaH_resizearray() local
340 luaH_resize(L, t, nasize, nsize); in luaH_resizearray()
Dlua.h75 typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize);
/external/jemalloc/src/
Dbase.c55 size_t csize, nsize; in base_chunk_alloc() local
62 nsize = (node == NULL) ? CACHELINE_CEILING(sizeof(extent_node_t)) : 0; in base_chunk_alloc()
63 csize = CHUNK_CEILING(minsize + nsize); in base_chunk_alloc()
73 addr = (void *)((uintptr_t)addr + nsize); in base_chunk_alloc()
74 csize -= nsize; in base_chunk_alloc()
76 base_allocated += nsize; in base_chunk_alloc()
77 base_resident += PAGE_CEILING(nsize); in base_chunk_alloc()
/external/valgrind/perf/
Dffbench.c242 static int nsize[] = {0, 0, 0}; in main() local
249 nsize[1] = nsize[2] = faedge; in main()
273 fourn(fdata, nsize, 2, 1); in main()
276 fourn(fdata, nsize, 2, -1); in main()
/external/minijail/
Dutil.c169 size_t i, multiplier = 1, nsize, size = 0; in parse_size() local
201 nsize = size * multiplier; in parse_size()
202 if (nsize / multiplier != size) in parse_size()
204 *result = nsize; in parse_size()
/external/eigen/bench/
Dbenchmark-blocking-sizes.cpp574 for (size_t nsize = minsize; nsize <= maxsize; nsize *= 2) { in run() local
577 for (size_t nblock = minsize; nblock <= nsize; nblock *= 2) { in run()
578 benchmarks.emplace_back(ksize, msize, nsize, kblock, mblock, nblock); in run()
605 for (size_t nsize = minsize; nsize <= maxsize; nsize *= 2) { in run() local
606 benchmarks.emplace_back(ksize, msize, nsize); in run()
/external/libcups/cups/
Ddest-options.c897 _cups_media_db_t *nsize; /* Size for N */ in cupsGetDestMediaByIndex() local
935 if ((nsize = (_cups_media_db_t *)cupsArrayIndex(dinfo->cached_db, n)) == NULL) in cupsGetDestMediaByIndex()
941 if (nsize->size_name) in cupsGetDestMediaByIndex()
942 strlcpy(size->media, nsize->size_name, sizeof(size->media)); in cupsGetDestMediaByIndex()
943 else if (nsize->key) in cupsGetDestMediaByIndex()
944 strlcpy(size->media, nsize->key, sizeof(size->media)); in cupsGetDestMediaByIndex()
945 else if ((pwg = pwgMediaForSize(nsize->width, nsize->length)) != NULL) in cupsGetDestMediaByIndex()
953 size->width = nsize->width; in cupsGetDestMediaByIndex()
954 size->length = nsize->length; in cupsGetDestMediaByIndex()
955 size->bottom = nsize->bottom; in cupsGetDestMediaByIndex()
[all …]
/external/kernel-headers/original/uapi/linux/
Djffs2.h126 __u8 nsize; member
/external/dlmalloc/
Dmalloc.c3983 size_t nsize = chunksize(oldfirst); in prepend_alloc() local
3984 unlink_chunk(m, oldfirst, nsize); in prepend_alloc()
3985 oldfirst = chunk_plus_offset(oldfirst, nsize); in prepend_alloc()
3986 qsize += nsize; in prepend_alloc()
4435 size_t nsize = chunksize(next); in dispose_chunk() local
4436 psize += nsize; in dispose_chunk()
4437 unlink_chunk(m, next, nsize); in dispose_chunk()
4777 size_t nsize = chunksize(next); in dlfree() local
4778 psize += nsize; in dlfree()
4779 unlink_chunk(fm, next, nsize); in dlfree()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/
Ddlmalloc.c3355 size_t nsize = chunksize(oldfirst); in prepend_alloc() local
3356 unlink_chunk(m, oldfirst, nsize); in prepend_alloc()
3357 oldfirst = chunk_plus_offset(oldfirst, nsize); in prepend_alloc()
3358 qsize += nsize; in prepend_alloc()
4332 size_t nsize = chunksize(next); in dlfree() local
4333 psize += nsize; in dlfree()
4334 unlink_chunk(fm, next, nsize); in dlfree()
4733 size_t nsize = chunksize(next); in mspace_free() local
4734 psize += nsize; in mspace_free()
4735 unlink_chunk(fm, next, nsize); in mspace_free()
/external/pcre/dist2/src/
Dpcre2test.c6111 PCRE2_SIZE rlen, nsize, erroroffset; in process_data() local
6144 nsize = REPLACE_BUFFSIZE/code_unit_size; in process_data()
6154 if (n > nsize) in process_data()
6157 "(max %lu)\n", (unsigned long int)n, (unsigned long int)nsize); in process_data()
6160 nsize = n; in process_data()
6225 rbuffer, rlen, nbuffer, &nsize); in process_data()
6231 if (rc != PCRE2_ERROR_NOMEMORY && nsize != PCRE2_UNSET) in process_data()
6232 fprintf(outfile, " at offset %ld in replacement", (long int)nsize); in process_data()
6238 fprintf(outfile, ": %ld code units are needed", (long int)nsize); in process_data()
6243 PCHARSV(nbuffer, 0, nsize, utf, outfile); in process_data()
/external/python/cpython2/Objects/
Dunicodeobject.c2441 Py_ssize_t nsize, bytesize; in PyUnicode_EncodeUTF32() local
2471 nsize = (size - pairs + (byteorder == 0)); in PyUnicode_EncodeUTF32()
2472 bytesize = nsize * 4; in PyUnicode_EncodeUTF32()
2473 if (bytesize / 4 != nsize) in PyUnicode_EncodeUTF32()
2718 Py_ssize_t nsize, bytesize; in PyUnicode_EncodeUTF16() local
2747 nsize = size + pairs + (byteorder == 0); in PyUnicode_EncodeUTF16()
2748 bytesize = nsize * 2; in PyUnicode_EncodeUTF16()
2749 if (bytesize / 2 != nsize) in PyUnicode_EncodeUTF16()
/external/v8/src/wasm/
Dwasm-interpreter.cc1684 size_t nsize = stack_.size() - n; in PopN() local
1685 DCHECK_GE(nsize, frames_.back().llimit()); // can't pop into locals in PopN()
1686 stack_.resize(nsize); in PopN()
/external/syslinux/gpxe/src/net/80211/
Dnet80211.c2579 int nsize = size - hdrsize * ( nfrags - 1 ); in net80211_accum_frags() local
2582 struct io_buffer *niob = alloc_iob ( nsize ); in net80211_accum_frags()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_encoder.c4295 size_t nsize = *size; local
4303 vp9_pack_bitstream(cpi, dest, &nsize);
4306 overhead = (int)*size - (int)nsize;