Home
last modified time | relevance | path

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

/external/lua/src/
Dlmem.c147 size_t osize, size_t nsize) { in tryagain() argument
151 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 (unlikely(newblock == NULL && nsize > 0)) { in luaM_realloc_()
168 if (nsize > osize) /* not shrinking a block? */ in luaM_realloc_()
169 newblock = tryagain(L, block, osize, nsize); in luaM_realloc_()
173 lua_assert((nsize == 0) == (newblock == NULL)); in luaM_realloc_()
174 g->GCdebt = (g->GCdebt + nsize) - osize; in luaM_realloc_()
180 size_t nsize) { in luaM_saferealloc_() argument
[all …]
Dlstring.c74 static void tablerehash (TString **vect, int osize, int nsize) { in tablerehash() argument
76 for (i = osize; i < nsize; i++) /* clear new elements */ in tablerehash()
83 unsigned int h = lmod(p->hash, nsize); /* new position */ in tablerehash()
97 void luaS_resize (lua_State *L, int nsize) { in luaS_resize() argument
101 if (nsize < osize) /* shrinking table? */ in luaS_resize()
102 tablerehash(tb->hash, osize, nsize); /* depopulate shrinking part */ in luaS_resize()
103 newvect = luaM_reallocvector(L, tb->hash, osize, nsize, TString*); in luaS_resize()
105 if (nsize < osize) /* was it shrinking table? */ in luaS_resize()
106 tablerehash(tb->hash, nsize, osize); /* restore to original size */ in luaS_resize()
111 tb->size = nsize; in luaS_resize()
[all …]
Dloadlib.c178 DWORD nsize = sizeof(buff)/sizeof(char); in setprogdir() local
179 DWORD n = GetModuleFileNameA(NULL, buff, nsize); /* get exec. name */ in setprogdir()
180 if (n == 0 || n == nsize || (lb = strrchr(buff, '\\')) == NULL) in setprogdir()
Dlauxlib.c988 static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) { in l_alloc() argument
990 if (nsize == 0) { in l_alloc()
995 return realloc(ptr, nsize); in l_alloc()
Dltable.c547 int nsize = allocsizenode(t); in luaH_resizearray() local
548 luaH_resize(L, t, nasize, nsize); in luaH_resizearray()
Dlgc.c481 unsigned int nsize = sizenode(h); in traverseephemeron() local
491 for (i = 0; i < nsize; i++) { in traverseephemeron()
492 Node *n = inv ? gnode(h, nsize - 1 - i) : gnode(h, i); in traverseephemeron()
Dlua.h125 typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize);
/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/minijail/
Dutil.c354 size_t i, multiplier = 1, nsize, size = 0; in parse_size() local
386 nsize = size * multiplier; in parse_size()
387 if (nsize / multiplier != size) in parse_size()
389 *result = nsize; in parse_size()
/external/wayland/cursor/
Dxcursor.c528 int nsize; in XcursorXcFileLoadImages() local
538 bestSize = _XcursorFindBestSize (fileHeader, (XcursorDim) size, &nsize); in XcursorXcFileLoadImages()
544 images = XcursorImagesCreate (nsize); in XcursorXcFileLoadImages()
550 for (n = 0; n < nsize; n++) in XcursorXcFileLoadImages()
562 if (images->nimage != nsize) in XcursorXcFileLoadImages()
/external/libcups/cups/
Ddest-options.c1030 _cups_media_db_t *nsize; /* Size for N */ in cupsGetDestMediaByIndex() local
1068 if ((nsize = (_cups_media_db_t *)cupsArrayIndex(dinfo->cached_db, n)) == NULL) in cupsGetDestMediaByIndex()
1074 if (nsize->key) in cupsGetDestMediaByIndex()
1075 strlcpy(size->media, nsize->key, sizeof(size->media)); in cupsGetDestMediaByIndex()
1076 else if (nsize->size_name) in cupsGetDestMediaByIndex()
1077 strlcpy(size->media, nsize->size_name, sizeof(size->media)); in cupsGetDestMediaByIndex()
1078 else if ((pwg = pwgMediaForSize(nsize->width, nsize->length)) != NULL) in cupsGetDestMediaByIndex()
1086 size->width = nsize->width; in cupsGetDestMediaByIndex()
1087 size->length = nsize->length; in cupsGetDestMediaByIndex()
1088 size->bottom = nsize->bottom; in cupsGetDestMediaByIndex()
[all …]
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_sslproto.py187 def buffer_updated(self, nsize): argument
189 self.data += self.mv[:nsize]
191 self.data += self.buf[:nsize]
384 def buffer_updated(self, nsize): argument
385 assert nsize == 1
386 self.on_data.set_result(bytes(self.buf[:nsize]))
/external/kernel-headers/original/uapi/linux/
Djffs2.h121 __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/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/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/llvm-project/polly/lib/External/isl/imath/
Dimath.c1986 STATIC mp_digit *s_realloc(mp_digit *old, mp_size osize, mp_size nsize) in s_realloc() argument
1989 mp_digit *new = s_alloc(nsize); in s_realloc()
1992 for (ix = 0; ix < nsize; ++ix) in s_realloc()
1997 mp_digit *new = realloc(old, nsize * sizeof(mp_digit)); in s_realloc()
2012 mp_size nsize = ROUND_PREC(min); in s_pad() local
2016 if ((tmp = s_alloc(nsize)) == NULL) in s_pad()
2021 else if ((tmp = s_realloc(MP_DIGITS(z), MP_ALLOC(z), nsize)) == NULL) in s_pad()
2025 MP_ALLOC(z) = nsize; in s_pad()
/external/iperf3/src/
Diperf_api.c2290 uint32_t hsize, nsize; in JSON_write() local
2299 nsize = htonl(hsize); in JSON_write()
2300 if (Nwrite(fd, (char*) &nsize, sizeof(nsize), Ptcp) < 0) in JSON_write()
2316 uint32_t hsize, nsize; in JSON_read() local
2326 if (Nread(fd, (char*) &nsize, sizeof(nsize), Ptcp) >= 0) { in JSON_read()
2327 hsize = ntohl(nsize); in JSON_read()
/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/pcre/dist2/src/
Dpcre2test.c7295 PCRE2_SIZE j, rlen, nsize, erroroffset; in process_data() local
7354 nsize = REPLACE_BUFFSIZE/code_unit_size; in process_data()
7364 if (n > nsize) in process_data()
7367 "large (max %" SIZ_FORM ")\n", SIZ_CAST n, SIZ_CAST nsize); in process_data()
7370 nsize = n; in process_data()
7445 rbuffer, rlen, nbuffer, &nsize); in process_data()
7450 if (rc != PCRE2_ERROR_NOMEMORY && nsize != PCRE2_UNSET) in process_data()
7451 fprintf(outfile, " at offset %ld in replacement", (long int)nsize); in process_data()
7456 fprintf(outfile, ": %ld code units are needed", (long int)nsize); in process_data()
7461 PCHARSV(nbuffer, 0, nsize, utf, outfile); in process_data()
/external/llvm-project/compiler-rt/include/sanitizer/
Dnetbsd_syscall_hooks.h119 #define __sanitizer_syscall_pre_break(nsize) \ argument
120 __sanitizer_syscall_pre_impl_break((long long)(nsize))
121 #define __sanitizer_syscall_post_break(res, nsize) \ argument
122 __sanitizer_syscall_post_impl_break(res, (long long)(nsize))
2933 void __sanitizer_syscall_pre_impl_break(long long nsize);
2934 void __sanitizer_syscall_post_impl_break(long long res, long long nsize);
/external/python/cpython3/Objects/
Dunicodeobject.c5720 Py_ssize_t nsize, pos; in _PyUnicode_EncodeUTF32() local
5737 nsize = len + (byteorder == 0); in _PyUnicode_EncodeUTF32()
5738 v = PyBytes_FromStringAndSize(NULL, nsize * 4); in _PyUnicode_EncodeUTF32()
5836 nsize = (unsigned char*) out - (unsigned char*) PyBytes_AS_STRING(v); in _PyUnicode_EncodeUTF32()
5837 if (nsize != PyBytes_GET_SIZE(v)) in _PyUnicode_EncodeUTF32()
5838 _PyBytes_Resize(&v, nsize); in _PyUnicode_EncodeUTF32()
6055 Py_ssize_t nsize, pos; in _PyUnicode_EncodeUTF16() local
6083 nsize = len + pairs + (byteorder == 0); in _PyUnicode_EncodeUTF16()
6084 v = PyBytes_FromStringAndSize(NULL, nsize * 2); in _PyUnicode_EncodeUTF16()
6188 nsize = (unsigned char*) out - (unsigned char*) PyBytes_AS_STRING(v); in _PyUnicode_EncodeUTF16()
[all …]
/external/capstone/
Dcs.c353 extern void* kern_os_realloc(void* addr, size_t nsize);
/external/libvpx/libvpx/vp9/encoder/
Dvp9_encoder.c4855 size_t nsize = *size; local
4863 vp9_pack_bitstream(cpi, dest, &nsize);
4866 overhead = (int)*size - (int)nsize;