/dports/graphics/djvulibre/djvulibre-3.5.28/libdjvu/ |
H A D | DjVuFileCache.cpp | 99 cur_size=calculate_size(); in set_max_size() 142 cur_size+=add_size; in add_file() 158 cur_size=0; in clear_to_size() 180 if (cur_size <= 0) in clear_to_size() 181 cur_size = calculate_size(); in clear_to_size() 199 if (cur_size <= 0) in clear_to_size() 200 cur_size = calculate_size(); in clear_to_size() 202 if (cur_size <= 0) in clear_to_size() 203 cur_size = calculate_size(); in clear_to_size() 231 cur_size-=list[pos]->get_size(); in del_file() [all …]
|
/dports/emulators/mtools/mtools-4.0.26/ |
H A D | buffer.c | 95 Buffer->cur_size = 0; in invalidate_buffer() 116 This->cur_size < This->size && in isInBuffer() 159 This->buf + This->cur_size, in buf_read() 164 This->cur_size += ret; in buf_read() 201 This->cur_size < This->size, in buf_write() 229 This->cur_size = ret; in buf_write() 231 if(!This->cur_size) { in buf_write() 233 This->cur_size = readSize; in buf_write() 246 This->cur_size += len; in buf_write() 273 This->cur_size = len + offset; in buf_write() [all …]
|
/dports/devel/cgdb/cgdb-0.8.0/lib/util/ |
H A D | clog.h | 418 size_t new_size = cur_size; in _clog_append_str() 423 if (new_size != cur_size) { in _clog_append_str() 441 return cur_size; in _clog_append_int() 448 const char *fmt, size_t cur_size) in _clog_append_time() argument 457 return cur_size; in _clog_append_time() 481 size_t cur_size = buf_size; in _clog_format() local 498 cur_size = _clog_append_str(&result, buf, str, cur_size); in _clog_format() 503 cur_size = _clog_append_str(&result, buf, "%", cur_size); in _clog_format() 514 cur_size = _clog_append_str(&result, buf, level, cur_size); in _clog_format() 517 cur_size = _clog_append_int(&result, buf, sline, cur_size); in _clog_format() [all …]
|
/dports/devel/nuitka/Nuitka-0.6.17/nuitka/build/static_src/ |
H A D | HelpersLists.c | 180 Py_ssize_t cur_size = PyList_GET_SIZE(list); in LIST_EXTEND() local 230 if (cur_size < list->allocated) { in LIST_EXTEND() 233 Py_SET_SIZE(list, cur_size + 1); in LIST_EXTEND() 235 assert(cur_size != PY_SSIZE_T_MAX); in LIST_EXTEND() 243 cur_size += 1; in LIST_EXTEND() 247 assert(cur_size == PyList_GET_SIZE(list)); in LIST_EXTEND() 249 if (cur_size < list->allocated) { in LIST_EXTEND() 291 assert(cur_size <= PY_SSIZE_T_MAX); in LIST_APPEND1() 297 PyList_SET_ITEM(list, cur_size, item); in LIST_APPEND1() 313 assert(cur_size <= PY_SSIZE_T_MAX); in LIST_APPEND0() [all …]
|
/dports/biology/avida/avida-2.12.4-src/avida-core/source/tools/ |
H A D | cOrderedWeightedIndex.cc | 45 int cur_size = item_value.GetSize(); in SetWeight() local 46 item_weight.Resize(cur_size + 1); in SetWeight() 47 cum_weight.Resize(cur_size + 1); in SetWeight() 48 item_value.Resize(cur_size + 1); in SetWeight() 50 item_value[cur_size] = value; in SetWeight() 51 item_weight[cur_size] = in_weight; in SetWeight() 52 cum_weight[cur_size] = (cur_size == 0) ? in_weight : cum_weight[cur_size-1] + in_weight; in SetWeight()
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/external/bsd/drm2/dist/drm/radeon/ |
H A D | r600_blit.c | 607 int cur_size = size_bytes; in r600_blit_copy() local 621 cur_size = max_bytes; in r600_blit_copy() 623 if (cur_size > max_bytes) in r600_blit_copy() 624 cur_size = max_bytes; in r600_blit_copy() 658 src_x + cur_size, h, src_x + cur_size, in r600_blit_copy() 666 dst_x + cur_size, h, in r600_blit_copy() 696 int cur_size = size_bytes; in r600_blit_copy() local 710 cur_size = max_bytes; in r600_blit_copy() 712 if (cur_size > max_bytes) in r600_blit_copy() 713 cur_size = max_bytes; in r600_blit_copy() [all …]
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/external/bsd/drm/dist/shared-core/ |
H A D | r600_blit.c | 1731 int cur_size = size_bytes; in r600_blit_copy() local 1745 cur_size = max_bytes; in r600_blit_copy() 1747 if (cur_size > max_bytes) in r600_blit_copy() 1748 cur_size = max_bytes; in r600_blit_copy() 1783 src_x + cur_size, h, src_x + cur_size, in r600_blit_copy() 1791 dst_x + cur_size, h, in r600_blit_copy() 1821 int cur_size = size_bytes; in r600_blit_copy() local 1835 cur_size = max_bytes; in r600_blit_copy() 1837 if (cur_size > max_bytes) in r600_blit_copy() 1838 cur_size = max_bytes; in r600_blit_copy() [all …]
|
/dports/net/mpich/mpich-3.4.3/modules/libfabric/prov/gni/src/ |
H A D | gnix_vector.c | 45 uint32_t new_size = vec->attr.cur_size; in __gnix_vec_get_new_size() 83 if (new_size <= vec->attr.cur_size) { in __gnix_vec_resize() 98 if (new_size > vec->attr.cur_size) { in __gnix_vec_resize() 103 vec->attr.cur_size = new_size; in __gnix_vec_resize() 123 attr->cur_size = attr->vec_initial_size; in __gnix_vec_create() 141 vec->attr.cur_size = 0; in __gnix_vec_close() 164 if (index >= vec->attr.cur_size) { in __gnix_vec_insert_at() 188 } else if (index >= vec->attr.cur_size) { in __gnix_vec_remove_at() 210 } else if (index >= vec->attr.cur_size) { in __gnix_vec_at() 300 iter->cur_idx = iter->vec->attr.cur_size; in __gnix_vec_lf_iter_next() [all …]
|
/dports/sysutils/conky-awesome/conky-1.12.2/src/ |
H A D | prioqueue.cc | 62 int cur_size; member 117 if (queue->cur_size == 0) { in insert_prio_elem() 118 queue->cur_size++; in insert_prio_elem() 125 if (queue->cur_size < queue->max_size) { in insert_prio_elem() 126 queue->cur_size++; in insert_prio_elem() 138 queue->cur_size++; in insert_prio_elem() 148 queue->cur_size++; in insert_prio_elem() 159 if (queue->cur_size > queue->max_size) { in insert_prio_elem() 160 queue->cur_size--; in insert_prio_elem() 171 if (queue->cur_size <= 0) { return nullptr; } in pop_prio_elem() [all …]
|
/dports/sysutils/conky/conky-1.12.2/src/ |
H A D | prioqueue.cc | 62 int cur_size; member 117 if (queue->cur_size == 0) { in insert_prio_elem() 118 queue->cur_size++; in insert_prio_elem() 125 if (queue->cur_size < queue->max_size) { in insert_prio_elem() 126 queue->cur_size++; in insert_prio_elem() 138 queue->cur_size++; in insert_prio_elem() 148 queue->cur_size++; in insert_prio_elem() 159 if (queue->cur_size > queue->max_size) { in insert_prio_elem() 160 queue->cur_size--; in insert_prio_elem() 171 if (queue->cur_size <= 0) { return nullptr; } in pop_prio_elem() [all …]
|
/dports/graphics/vapoursynth-fmtconv/fmtconv-r28/src/conc/ |
H A D | CellPool.hpp | 110 size_t cur_size = BASE_SIZE; in expand_to() local 119 allocate_zone (cur_size, zone_ptr_ref); in expand_to() 122 total_size += cur_size; in expand_to() 123 cur_size = compute_grown_size (cur_size); in expand_to() 188 void CellPool <T>::allocate_zone (size_t cur_size, AtomicPtr <CellType> & zone_ptr_ref) in allocate_zone() argument 192 CellType * zone_ptr = alloc_cells (cur_size); in allocate_zone() 205 for (size_t pos = 0; pos < cur_size; ++pos) in allocate_zone() 233 size_t cur_size = BASE_SIZE; in compute_total_size_for_zones() local 238 total_size += cur_size; in compute_total_size_for_zones() 239 cur_size = compute_grown_size (cur_size); in compute_total_size_for_zones()
|
/dports/games/lincity/lincity-1.13.1/tools/csippm/ |
H A D | parse_iconlist.pl | 12 $cur_size = 1; 27 $old_size = $cur_size; 28 $cur_size = $1; 29 print "Set size to $cur_size\n"; 45 $ci = $ci + $cur_size; 48 $old_size = $cur_size;
|
/dports/games/0ad/0ad-0.0.23b-alpha/source/lib/allocators/ |
H A D | dynarray.cpp | 40 const size_t cur_size = da->cur_size; in validate_da() local 50 if(cur_size > max_size_pa) in validate_da() 52 if(pos > cur_size || pos > max_size_pa) in validate_da() 72 da->cur_size = 0; in da_alloc() 98 const size_t cur_size_pa = Align<g_PageSize>(da->cur_size); in da_set_size() 123 da->cur_size = new_size; in da_set_size() 134 da->cur_size = std::max(da->cur_size, da->pos+size); in da_reserve()
|
/dports/www/slowhttptest/slowhttptest-1.8.2/src/ |
H A D | text_gen_test.cc | 15 const int cur_size = sizes[i]; in random_perf_test_in_place() local 17 for (int j = 0; j < cur_size; ++j) { in random_perf_test_in_place() 21 printf("Total time to generate %d strings of length %d was %ld\n", cur_size, 4096, end - start); in random_perf_test_in_place() 30 const int cur_size = sizes[i]; in random_perf_test() local 32 for (int j = 0; j < cur_size; ++j) { in random_perf_test() 36 printf("Total time to generate %d strings of length %d was %ld\n", cur_size, 4096, end - start); in random_perf_test()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/media/formats/webm/ |
H A D | webm_stream_parser.cc | 86 int cur_size = 0; in Parse() local 88 byte_queue_.Peek(&cur, &cur_size); in Parse() 89 while (cur_size > 0) { in Parse() 93 result = ParseInfoAndTracks(cur, cur_size); in Parse() 97 result = ParseCluster(cur, cur_size); in Parse() 115 cur_size -= result; in Parse() 134 int cur_size = size; in ParseInfoAndTracks() local 154 if (cur_size < (result + element_size)) { in ParseInfoAndTracks() 188 result = info_parser.Parse(cur, cur_size); in ParseInfoAndTracks() 194 cur_size -= result; in ParseInfoAndTracks() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/media/formats/webm/ |
H A D | webm_stream_parser.cc | 86 int cur_size = 0; in Parse() local 88 byte_queue_.Peek(&cur, &cur_size); in Parse() 89 while (cur_size > 0) { in Parse() 93 result = ParseInfoAndTracks(cur, cur_size); in Parse() 97 result = ParseCluster(cur, cur_size); in Parse() 115 cur_size -= result; in Parse() 134 int cur_size = size; in ParseInfoAndTracks() local 154 if (cur_size < (result + element_size)) { in ParseInfoAndTracks() 185 result = info_parser.Parse(cur, cur_size); in ParseInfoAndTracks() 191 cur_size -= result; in ParseInfoAndTracks() [all …]
|
/dports/science/hdf5-18/hdf5-1.8.21/tools/perform/ |
H A D | overhead.c | 192 hsize_t cur_size[1] = {1000}; /*current dataset size */ in test() local 214 if((fspace = H5Screate_simple(1, cur_size, max_size)) < 0) goto error; in test() 221 had = (int *)calloc((size_t)cur_size[0], sizeof(int)); in test() 223 for (i=1; i<=cur_size[0]; i++) { in test() 231 hs_start[0] = cur_size[0]-i; in test() 234 hs_start[0] = i%2 ? i/2 : cur_size[0]-i/2; in test() 237 k = (cur_size[0] - i) + 1; in test() 238 hs_start[0] = k % 2 ? (k / 2) : (hsize_t)((hssize_t)cur_size[0] - (hssize_t)(k / 2)); in test() 241 for (j=HDrand()%(int)cur_size[0]; had[j]; j=(j+1)%(int)cur_size[0]) in test() 312 (double)(sb.st_size - (HDoff_t)(cur_size[0] * sizeof(int))) / in test() [all …]
|
/dports/science/hdf5/hdf5-1.10.6/tools/test/perform/ |
H A D | overhead.c | 192 hsize_t cur_size[1] = {1000}; /*current dataset size */ in test() local 214 if((fspace = H5Screate_simple(1, cur_size, max_size)) < 0) goto error; in test() 221 had = (int *)calloc((size_t)cur_size[0], sizeof(int)); in test() 223 for (i=1; i<=cur_size[0]; i++) { in test() 231 hs_start[0] = cur_size[0]-i; in test() 234 hs_start[0] = i%2 ? i/2 : cur_size[0]-i/2; in test() 237 k = (cur_size[0] - i) + 1; in test() 238 hs_start[0] = k % 2 ? (k / 2) : (hsize_t)((hssize_t)cur_size[0] - (hssize_t)(k / 2)); in test() 241 for (j=HDrand()%(int)cur_size[0]; had[j]; j=(j+1)%(int)cur_size[0]) in test() 312 (double)(sb.st_size - (HDoff_t)(cur_size[0] * sizeof(int))) / in test() [all …]
|
/dports/devel/py-fs/fs-0.5.4/fs/wrapfs/ |
H A D | limitsizefs.py | 36 self.cur_size = self._get_cur_size() 49 self.cur_size = self._get_cur_size() 78 self.cur_size -= size 125 cur_size = self.getsize(path) 127 cur_size = 0 129 diff = size - cur_size 133 self.cur_size += diff 137 self.cur_size += diff 141 return cur_size 181 self.cur_size -= dst_size [all …]
|
/dports/devel/R-cran-vctrs/vctrs/src/ |
H A D | arg.c | 11 r_ssize cur_size, 59 r_ssize cur_size, in fill_arg_buffer() argument 62 cur_size = fill_arg_buffer(arg->parent, buf, cur_size, tot_size); in fill_arg_buffer() 64 if (cur_size < 0) { in fill_arg_buffer() 65 return cur_size; in fill_arg_buffer() 69 r_ssize written = arg->fill(arg->data, buf + cur_size, tot_size - cur_size); in fill_arg_buffer() 74 return cur_size + written; in fill_arg_buffer()
|
/dports/science/hdf5-18/hdf5-1.8.21/test/ |
H A D | external.c | 232 cur_size[0] = max_size[0] = 100; in test_non_extendible() local 332 cur_size[0] = max_size[0] = 100; in test_too_small() local 389 cur_size[0] = 100; in test_large_enough_current_eventual() local 442 cur_size[0] = 100; in test_large_enough_current_not_eventual() local 505 cur_size[0] = 100; in test_unlimited() local 779 cur_size = TOTAL_SIZE; in test_read_file_set() 906 for(i = 0; i < cur_size; i++) in test_write_file_set() 1015 cur_size = TOTAL_SIZE; in test_path_absolute() 1105 cur_size = TOTAL_SIZE; in test_path_relative() 1200 cur_size = TOTAL_SIZE; in test_path_relative_cwd() [all …]
|
/dports/net/pjsip/pjproject-2.11.1/pjlib/src/pj/ |
H A D | timer.c | 132 pj_size_t cur_size; member 312 ht->cur_size--; in remove_node() 341 if (slot < ht->cur_size) in remove_node() 482 reheap_up(ht, timer_copy, ht->cur_size, HEAP_PARENT(ht->cur_size)); in insert_node() 506 ht->cur_size++; in insert_node() 605 ht->cur_size = 0; in pj_timer_heap_create() 865 if (ht->cur_size) { in pj_timer_heap_poll() 922 if (ht->cur_size) { in pj_timer_heap_poll() 946 return ht->cur_size; in pj_timer_heap_count() 953 if (ht->cur_size == 0) in pj_timer_heap_earliest_time() [all …]
|
/dports/net/gstreamer1-plugins-srtp/gst-plugins-bad-1.16.2/gst/aiff/ |
H A D | aiffmux.c | 134 guint64 cur_size; in gst_aiff_mux_write_form_header() local 141 cur_size = AIFF_HEADER_LEN - 8 + audio_data_size; in gst_aiff_mux_write_form_header() 142 if ((cur_size & 1) && cur_size + 1 < G_MAXUINT32) { in gst_aiff_mux_write_form_header() 143 cur_size += 1; in gst_aiff_mux_write_form_header() 146 gst_byte_writer_put_uint32_be_unchecked (writer, cur_size); in gst_aiff_mux_write_form_header() 290 guint64 cur_size; in gst_aiff_mux_chain() local 313 cur_size = aiffmux->length + AIFF_HEADER_LEN - 8; in gst_aiff_mux_chain() 316 if (G_UNLIKELY (cur_size + buf_size >= G_MAXUINT32)) { in gst_aiff_mux_chain() 404 guint64 cur_size; in gst_aiff_mux_event() local 407 cur_size = aiffmux->length + AIFF_HEADER_LEN - 8; in gst_aiff_mux_event() [all …]
|
/dports/multimedia/gstreamer1-plugins-msdk/gst-plugins-bad-1.16.2/gst/aiff/ |
H A D | aiffmux.c | 134 guint64 cur_size; in gst_aiff_mux_write_form_header() local 141 cur_size = AIFF_HEADER_LEN - 8 + audio_data_size; in gst_aiff_mux_write_form_header() 142 if ((cur_size & 1) && cur_size + 1 < G_MAXUINT32) { in gst_aiff_mux_write_form_header() 143 cur_size += 1; in gst_aiff_mux_write_form_header() 146 gst_byte_writer_put_uint32_be_unchecked (writer, cur_size); in gst_aiff_mux_write_form_header() 290 guint64 cur_size; in gst_aiff_mux_chain() local 313 cur_size = aiffmux->length + AIFF_HEADER_LEN - 8; in gst_aiff_mux_chain() 316 if (G_UNLIKELY (cur_size + buf_size >= G_MAXUINT32)) { in gst_aiff_mux_chain() 404 guint64 cur_size; in gst_aiff_mux_event() local 407 cur_size = aiffmux->length + AIFF_HEADER_LEN - 8; in gst_aiff_mux_event() [all …]
|
/dports/multimedia/gstreamer1-plugins-openh264/gst-plugins-bad-1.16.2/gst/aiff/ |
H A D | aiffmux.c | 134 guint64 cur_size; in gst_aiff_mux_write_form_header() local 141 cur_size = AIFF_HEADER_LEN - 8 + audio_data_size; in gst_aiff_mux_write_form_header() 142 if ((cur_size & 1) && cur_size + 1 < G_MAXUINT32) { in gst_aiff_mux_write_form_header() 143 cur_size += 1; in gst_aiff_mux_write_form_header() 146 gst_byte_writer_put_uint32_be_unchecked (writer, cur_size); in gst_aiff_mux_write_form_header() 290 guint64 cur_size; in gst_aiff_mux_chain() local 313 cur_size = aiffmux->length + AIFF_HEADER_LEN - 8; in gst_aiff_mux_chain() 316 if (G_UNLIKELY (cur_size + buf_size >= G_MAXUINT32)) { in gst_aiff_mux_chain() 404 guint64 cur_size; in gst_aiff_mux_event() local 407 cur_size = aiffmux->length + AIFF_HEADER_LEN - 8; in gst_aiff_mux_event() [all …]
|