Home
last modified time | relevance | path

Searched refs:new_count (Results 1 – 25 of 30) sorted by relevance

12

/external/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_remove_constants.c72 unsigned new_count; in rc_remove_unused_constants() local
103 new_count = 0; in rc_remove_unused_constants()
107 remap_table[new_count] = i; in rc_remove_unused_constants()
108 inv_remap_table[i] = new_count; in rc_remove_unused_constants()
110 if (i != new_count) { in rc_remove_unused_constants()
114 constants[new_count] = constants[i]; in rc_remove_unused_constants()
117 new_count++; in rc_remove_unused_constants()
123 assert( is_identity || new_count < c->Program.Constants.Count); in rc_remove_unused_constants()
137 c->Program.Constants.Count = new_count; in rc_remove_unused_constants()
/external/freetype/src/base/
Dftutil.c94 FT_Long new_count, in ft_mem_realloc() argument
102 cur_count, new_count, block, &error ); in ft_mem_realloc()
103 if ( !error && block && new_count > cur_count ) in ft_mem_realloc()
105 ( new_count - cur_count ) * item_size ); in ft_mem_realloc()
116 FT_Long new_count, in ft_mem_qrealloc() argument
127 if ( cur_count < 0 || new_count < 0 || item_size < 0 ) in ft_mem_qrealloc()
132 else if ( new_count == 0 || item_size == 0 ) in ft_mem_qrealloc()
137 else if ( new_count > FT_INT_MAX / item_size ) in ft_mem_qrealloc()
145 block = memory->alloc( memory, new_count * item_size ); in ft_mem_qrealloc()
153 FT_Long new_size = new_count * item_size; in ft_mem_qrealloc()
/external/ltp/testcases/kernel/containers/pidns/
Dpidns05.c155 int orig_count, new_count, status = 0, i; in kill_nested_containers() local
164 new_count = find_cinit_pids(pids_new); in kill_nested_containers()
167 if (orig_count - 2 != new_count) in kill_nested_containers()
170 for (i = 0; i < new_count; i++) { in kill_nested_containers()
177 orig_count - new_count); in kill_nested_containers()
/external/perfetto/src/trace_processor/containers/
Dbit_vector_iterators.cc56 int32_t new_count = in OnBlockChange() local
58 PERFETTO_DCHECK(new_count >= 0); in OnBlockChange()
60 bv_->counts_[i] = static_cast<uint32_t>(new_count); in OnBlockChange()
/external/mesa3d/src/util/
Dralloc.h216 #define rerzalloc(ctx, ptr, type, old_count, new_count) \ argument
217 ((type *) rerzalloc_array_size(ctx, ptr, sizeof(type), old_count, new_count))
281 unsigned old_count, unsigned new_count);
Dralloc.c260 unsigned old_count, unsigned new_count) in rerzalloc_array_size() argument
262 if (new_count > SIZE_MAX/size) in rerzalloc_array_size()
265 return rerzalloc_size(ctx, ptr, size * old_count, size * new_count); in rerzalloc_array_size()
/external/libchrome/base/metrics/
Dhistogram_samples.cc145 CheckedNumeric<uint16_t> new_count(single_sample.as_parts.count); in Accumulate() local
147 new_count -= count16; in Accumulate()
149 new_count += count16; in Accumulate()
150 if (!new_count.AssignIfValid(&single_sample.as_parts.count)) in Accumulate()
/external/rust/crates/rayon/src/iter/
Dpar_bridge.rs130 Some(new_count) if !done => { in split()
133 .compare_and_swap(count, new_count, Ordering::SeqCst); in split()
/external/sfntly/cpp/src/sfntly/port/
Drefcount.h145 size_t new_count = AtomicIncrement(&ref_count_); in AddRef() local
147 return new_count; in AddRef()
/external/openscreen/cast/streaming/
Dcompound_rtcp_builder.cc303 const int new_count = num_ack_bitvector_octets + num_additional; in AppendCastFeedbackAckFields() local
304 if (new_count > kRtcpMaxAckBitVectorOctets) { in AppendCastFeedbackAckFields()
310 num_ack_bitvector_octets = new_count; in AppendCastFeedbackAckFields()
/external/tinyalsa_new/src/
Dmixer.c183 unsigned int new_count; in add_controls() local
207 new_count = elist.count; in add_controls()
208 elist.space = new_count - old_count; /* controls we haven't seen before */ in add_controls()
220 for (n = old_count; n < new_count; n++) { in add_controls()
229 grp->count = new_count; in add_controls()
230 mixer->total_count += (new_count - old_count); in add_controls()
/external/one-true-awk/
Db.c111 int i, new_count; in resize_state() local
116 new_count = state + 10; /* needs to be tuned */ in resize_state()
118 p = (unsigned int **) realloc(f->gototab, new_count * sizeof(f->gototab[0])); in resize_state()
123 p2 = (uschar *) realloc(f->out, new_count * sizeof(f->out[0])); in resize_state()
128 p3 = (int **) realloc(f->posns, new_count * sizeof(f->posns[0])); in resize_state()
133 for (i = f->state_count; i < new_count; ++i) { in resize_state()
140 f->state_count = new_count; in resize_state()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/
Dallocate_shared.pass.cpp32 int new_count = 0; variable
/external/freetype/include/freetype/internal/
Dftmemory.h140 FT_Long new_count,
148 FT_Long new_count,
/external/pcre/dist2/src/
Dpcre2_dfa_match.c501 if (new_count++ < wscount) \
510 if (new_count++ < wscount) \
540 int active_count, new_count, match_count; in internal_dfa_match() local
574 new_count = 0; in internal_dfa_match()
663 new_count = workspace[1]; in internal_dfa_match()
665 memcpy(new_states, active_states, (size_t)new_count * sizeof(stateblock)); in internal_dfa_match()
709 active_count = new_count; in internal_dfa_match()
710 new_count = 0; in internal_dfa_match()
3009 if (i + 1 >= active_count && new_count == 0) in internal_dfa_match()
3096 else if (i + 1 >= active_count && new_count == 0) in internal_dfa_match()
[all …]
/external/python/cpython3/Python/
Dhamt.c1467 Py_ssize_t new_count = hamt_node_collision_count(self) - 1; in hamt_node_collision_without() local
1469 if (new_count == 0) { in hamt_node_collision_without()
1477 if (new_count == 1) { in hamt_node_collision_without()
1816 Py_ssize_t new_count = self->a_count - 1; in hamt_node_array_without() local
1818 if (new_count == 0) { in hamt_node_array_without()
1822 if (new_count >= 16) { in hamt_node_array_without()
1834 new->a_count = new_count; in hamt_node_array_without()
1844 Py_ssize_t bitmap_size = new_count * 2; in hamt_node_array_without()
/external/llvm-project/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/
Dallocate_shared.pass.cpp30 int new_count = 0; variable
/external/libpng/contrib/libtests/
Dpngunknown.c1215 int count = display_rc(&d, strict), new_count; in main() local
1224 new_count = display_rc(&d, strict); in main()
1226 if (new_count == count) in main()
/external/blktrace/
Dblkparse.c325 int new_count = cpu + 1; in resize_cpu_info() local
329 size = new_count * sizeof(struct per_cpu_info); in resize_cpu_info()
339 new_space = (new_count - ncpus) * sizeof(struct per_cpu_info); in resize_cpu_info()
342 pdi->ncpus = new_count; in resize_cpu_info()
345 for (new_count = 0; new_count < pdi->ncpus; new_count++) { in resize_cpu_info()
346 struct per_cpu_info *pci = &pdi->cpus[new_count]; in resize_cpu_info()
/external/mesa3d/src/amd/vulkan/winsys/amdgpu/
Dradv_amdgpu_bo.c134 uint32_t new_count = MAX2(bo->bo_capacity * 2, bo->range_count); in radv_amdgpu_winsys_rebuild_bo_list() local
136 realloc(bo->bos, new_count * sizeof(struct radv_amdgpu_winsys_bo *)); in radv_amdgpu_winsys_rebuild_bo_list()
140 bo->bo_capacity = new_count; in radv_amdgpu_winsys_rebuild_bo_list()
/external/e2fsprogs/lib/ext2fs/
Dblkmap64_rb.c501 __u64 new_start, new_count; in rb_remove_extent() local
522 new_count = (ext->start + ext->count) - new_start; in rb_remove_extent()
526 rb_insert_extent(new_start, new_count, bp); in rb_remove_extent()
/external/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/
DSymbolFileNativePDB.cpp928 size_t new_count = comp_unit.GetNumFunctions(); in ParseFunctions() local
929 lldbassert(new_count >= count); in ParseFunctions()
930 return new_count - count; in ParseFunctions()
1295 const size_t new_count = GetTypeList().GetSize(); in ParseTypes() local
1299 return new_count - old_count; in ParseTypes()
/external/llvm-project/lldb/include/lldb/Core/
DValueObject.h802 void Clear(size_t new_count = 0) {
804 m_children_count = new_count;
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DCppAssetManager2.java1477 int new_count = entry_idx + 1; in ApplyStyle() local
1481 type.entries = new ThemeEntry[new_count]; in ApplyStyle()
1487 type.entry_count = new_count; in ApplyStyle()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_device.cc2009 uint64 new_count = timing_counter_->next(); in MaybeQueueProgressEvent() local
2010 RecordQueued(new_count, 1); in MaybeQueueProgressEvent()
2012 [this, new_count]() { RecordTerminated(new_count); }); in MaybeQueueProgressEvent()

12