/third_party/ffmpeg/libavcodec/ |
D | mjpegenc_huffman.c | 89 to->nitems = 0; in ff_mjpegenc_huffman_compute_bits() 90 from->nitems = 0; in ff_mjpegenc_huffman_compute_bits() 96 to->nitems = 0; in ff_mjpegenc_huffman_compute_bits() 105 while (i < size || j + 1 < from->nitems) { in ff_mjpegenc_huffman_compute_bits() 106 to->nitems++; in ff_mjpegenc_huffman_compute_bits() 107 to->item_idx[to->nitems] = to->item_idx[to->nitems - 1]; in ff_mjpegenc_huffman_compute_bits() 109 (j + 1 >= from->nitems || in ff_mjpegenc_huffman_compute_bits() 112 to->items[to->item_idx[to->nitems]++] = prob_table[i].value; in ff_mjpegenc_huffman_compute_bits() 113 to->probability[to->nitems - 1] = prob_table[i].prob; in ff_mjpegenc_huffman_compute_bits() 117 to->items[to->item_idx[to->nitems]++] = from->items[k]; in ff_mjpegenc_huffman_compute_bits() [all …]
|
D | magicyuvenc.c | 280 int nitems; ///< number of items in the list and probability ex. 4 member 304 to->nitems = 0; in magy_huffman_compute_bits() 305 from->nitems = 0; in magy_huffman_compute_bits() 311 to->nitems = 0; in magy_huffman_compute_bits() 320 while (i < size || j + 1 < from->nitems) { in magy_huffman_compute_bits() 321 to->nitems++; in magy_huffman_compute_bits() 322 to->item_idx[to->nitems] = to->item_idx[to->nitems - 1]; in magy_huffman_compute_bits() 324 (j + 1 >= from->nitems || in magy_huffman_compute_bits() 327 to->items[to->item_idx[to->nitems]++] = prob_table[i].value; in magy_huffman_compute_bits() 328 to->probability[to->nitems - 1] = prob_table[i].prob; in magy_huffman_compute_bits() [all …]
|
/third_party/curl/tests/libtest/ |
D | lib537.c | 126 rlim_t nitems, i; local 219 for(nitems = i = 1; nitems <= i; i *= 2) 220 nitems = i; 221 if(nitems > 0x7fff) 222 nitems = 0x40000; 224 num_open.rlim_max = sizeof(*memchunk) * nitems; 227 memchunk = malloc(sizeof(*memchunk) * (size_t)nitems); 230 nitems /= 2; 232 } while(nitems && !memchunk); 243 for(i = 0; i < nitems; i++) [all …]
|
D | lib2301.c | 94 static size_t writecb(char *b, size_t size, size_t nitems, void *p) in writecb() argument 103 size_t incoming = nitems; in writecb() 105 (int)nitems); in writecb() 106 for(i = 0; i < nitems; i++) in writecb() 115 nitems = 0; in writecb() 117 if(nitems != incoming) in writecb() 119 return nitems; in writecb()
|
D | lib518.c | 125 rlim_t nitems, i; in rlimit() local 246 for(nitems = i = 1; nitems <= i; i *= 2) in rlimit() 247 nitems = i; in rlimit() 248 if(nitems > 0x7fff) in rlimit() 249 nitems = 0x40000; in rlimit() 251 num_open.rlim_max = sizeof(*memchunk) * nitems; in rlimit() 254 memchunk = malloc(sizeof(*memchunk) * (size_t)nitems); in rlimit() 257 nitems /= 2; in rlimit() 259 } while(nitems && !memchunk); in rlimit() 270 for(i = 0; i < nitems; i++) in rlimit()
|
D | lib2302.c | 79 static size_t writecb(char *buffer, size_t size, size_t nitems, void *p) in writecb() argument 82 size_t incoming = nitems; in writecb() 89 if(nitems != incoming) in writecb() 91 return nitems; in writecb()
|
D | lib1975.c | 28 static size_t read_callback(char *buffer, size_t size, size_t nitems, in read_callback() argument 33 (void)nitems; /* unused */ in read_callback()
|
D | lib1971.c | 28 static size_t read_callback(char *buffer, size_t size, size_t nitems, in read_callback() argument 33 (void)nitems; /* unused */ in read_callback()
|
/third_party/elfutils/libdwfl/ |
D | linux-core-attach.c | 138 size_t nitems; in core_next_thread() local 141 ®s_offset, &nregloc, ®locs, &nitems, &items)) in core_next_thread() 149 for (item = items; item < items + nitems; item++) in core_next_thread() 152 if (item == items + nitems) in core_next_thread() 193 size_t nitems; in core_set_initial_registers() local 197 &nitems, &items); in core_set_initial_registers() 202 for (item = items; item < items + nitems; item++) in core_set_initial_registers() 205 assert (item < items + nitems); in core_set_initial_registers() 216 for (item = items; item < items + nitems; item++) in core_set_initial_registers() 219 if (item < items + nitems) in core_set_initial_registers() [all …]
|
/third_party/curl/docs/examples/ |
D | websocket-cb.c | 31 static size_t writecb(char *b, size_t size, size_t nitems, void *p) in writecb() argument 38 fprintf(stderr, "Bytes: %u", (unsigned int)(nitems * size)); in writecb() 39 for(i = 0; i < nitems; i++) in writecb() 41 return nitems; in writecb()
|
/third_party/musl/porting/uniproton/kernel/src/malloc/ |
D | malloc.c | 6 void *calloc(size_t nitems, size_t size) in calloc() argument 11 if ((nitems == 0) || (size == 0) || (nitems > (UINT32_MAX / size))) { in calloc() 15 real_size = (size_t)(nitems * size); in calloc()
|
/third_party/toybox/toys/net/ |
D | netstat.c | 126 unsigned lport, rport, state, txq, rxq, num, uid, nitems; in show_ip() local 130 nitems = sscanf(toybuf, in show_ip() 137 if (nitems!=16) { in show_ip() 138 nitems = sscanf(toybuf, in show_ip() 143 if (nitems!=10) continue; in show_ip() 144 nitems = AF_INET; in show_ip() 145 } else nitems = AF_INET6; in show_ip() 152 addr2str(nitems, &laddr, lport, lip, TT.wpad, label); in show_ip() 153 addr2str(nitems, &raddr, rport, rip, TT.wpad, label); in show_ip()
|
/third_party/FreeBSD/lib/libc/gen/ |
D | fts.c | 122 size_t len, nitems; in fts_open() local 163 for (root = NULL, nitems = 0; *argv != NULL; ++argv, ++nitems) { in fts_open() 193 if (compar && nitems > 1) in fts_open() 194 root = fts_sort(sp, root, nitems); in fts_open() 639 size_t dnamlen, len, maxlen, nitems; in fts_build() local 742 for (head = tail = NULL, nitems = 0; dirp && (dp = readdir(dirp));) { in fts_build() 826 ++nitems; in fts_build() 852 if (descend && (type == BCHILD || !nitems) && in fts_build() 863 if (!nitems) { in fts_build() 870 if (sp->fts_compar && nitems > 1) in fts_build() [all …]
|
/third_party/python/Modules/_sqlite/ |
D | row.c | 128 Py_ssize_t nitems, i; in pysqlite_row_subscript() local 140 nitems = PyTuple_Size(self->description); in pysqlite_row_subscript() 142 for (i = 0; i < nitems; i++) { in pysqlite_row_subscript() 186 Py_ssize_t nitems, i; in pysqlite_row_keys_impl() local 192 nitems = PyTuple_Size(self->description); in pysqlite_row_keys_impl() 194 for (i = 0; i < nitems; i++) { in pysqlite_row_keys_impl()
|
/third_party/elfutils/backends/ |
D | linux-core-note.c | 216 size_t *nitems, const Ebl_Core_Item **items) in EBLHOOK() 242 *nitems = 1; in EBLHOOK() 258 *nitems = sizeof prstatus_items / sizeof prstatus_items[0]; in EBLHOOK() 268 *nitems = sizeof prpsinfo_items / sizeof prpsinfo_items[0]; in EBLHOOK() 279 *nitems = 0; \ in EBLHOOK() 290 *nitems = sizeof extra_items / sizeof extra_items[0]; \ in EBLHOOK() 301 *nitems = sizeof extra_items / sizeof extra_items[0]; \ in EBLHOOK()
|
D | x86_corenote.c | 32 regs_offset, nregloc, reglocs, nitems, items); 37 size_t *nitems, const Ebl_Core_Item **items) in ioperm_info() argument 48 *nitems = 1; in ioperm_info()
|
D | i386_corenote.c | 110 nitems, items); \ 124 size_t *nitems, const Ebl_Core_Item **items) in tls_info() argument 132 *nitems = sizeof tls_items / sizeof tls_items[0]; in tls_info()
|
/third_party/elfutils/libebl/ |
D | eblcorenote.c | 47 const Ebl_Register_Location **reglocs, size_t *nitems, in ebl_core_note() argument 51 regs_offset, nregloc, reglocs, nitems, items); in ebl_core_note() 73 *nitems = 1; in ebl_core_note()
|
/third_party/musl/porting/liteos_a_newlib/kernel/src/ |
D | malloc.c | 82 void *__wrap__calloc_r(struct _reent *reent, size_t nitems, size_t size) in __wrap__calloc_r() argument 87 if (nitems == 0 || size == 0) { in __wrap__calloc_r() 91 real_size = (size_t)(nitems * size); in __wrap__calloc_r()
|
/third_party/curl/src/ |
D | tool_formparse.c | 181 size_t size, size_t nitems, void *arg) in tool_mime_stdin_read() argument 191 if(curlx_uztoso(nitems) > bytesleft) in tool_mime_stdin_read() 192 nitems = curlx_sotouz(bytesleft); in tool_mime_stdin_read() 194 if(nitems) { in tool_mime_stdin_read() 197 memcpy(buffer, sip->data + curlx_sotouz(sip->curpos), nitems); in tool_mime_stdin_read() 201 nitems = fread(buffer, 1, nitems, stdin); in tool_mime_stdin_read() 211 sip->curpos += curlx_uztoso(nitems); in tool_mime_stdin_read() 213 return nitems; in tool_mime_stdin_read()
|
/third_party/curl/lib/ |
D | mime.c | 62 static size_t mime_subparts_read(char *buffer, size_t size, size_t nitems, 659 static size_t mime_mem_read(char *buffer, size_t size, size_t nitems, in mime_mem_read() argument 666 if(!nitems) in mime_mem_read() 669 if(sz > nitems) in mime_mem_read() 670 sz = nitems; in mime_mem_read() 716 static size_t mime_file_read(char *buffer, size_t size, size_t nitems, in mime_file_read() argument 721 if(!nitems) in mime_file_read() 727 return fread(buffer, size, nitems, part->fp); in mime_file_read() 998 static size_t mime_subparts_read(char *buffer, size_t size, size_t nitems, in mime_subparts_read() argument 1005 while(nitems) { in mime_subparts_read() [all …]
|
/third_party/python/Modules/ |
D | _operator.c | 953 Py_ssize_t nitems; member 964 Py_ssize_t nitems; in itemgetter_new() local 970 nitems = PyTuple_GET_SIZE(args); in itemgetter_new() 971 if (nitems <= 1) { in itemgetter_new() 986 ig->nitems = nitems; in itemgetter_new() 1036 Py_ssize_t i, nitems=ig->nitems; in itemgetter_call() local 1045 if (nitems == 1) { in itemgetter_call() 1058 assert(PyTuple_GET_SIZE(ig->item) == nitems); in itemgetter_call() 1060 result = PyTuple_New(nitems); in itemgetter_call() 1064 for (i=0 ; i < nitems ; i++) { in itemgetter_call() [all …]
|
/third_party/curl/docs/libcurl/ |
D | curl_mime_data_cb.md | 23 size_t readfunc(char *buffer, size_t size, size_t nitems, void *arg); 60 should be filled up with at most *size* multiplied with *nitems* number 112 size_t read_callback(char *buffer, size_t size, size_t nitems, void *arg) 117 nitems *= size; 118 if(sz > nitems) 119 sz = nitems;
|
/third_party/curl/docs/libcurl/opts/ |
D | CURLOPT_HEADERFUNCTION.md | 24 size_t nitems, 40 size of that data is *nitems*; *size* is always 1. The provide header 106 size_t nitems, void *userdata) 108 /* received header is nitems * size long in 'buffer' NOT ZERO TERMINATED */ 110 return nitems * size;
|
/third_party/python/Include/cpython/ |
D | objimpl.h | 21 #define _PyObject_VAR_SIZE(typeobj, nitems) \ argument 23 (nitems)*(typeobj)->tp_itemsize, \
|