Searched refs:old_size (Results 1 – 4 of 4) sorted by relevance
| /oneTBB/src/tbb/ |
| H A D | parallel_pipeline.cpp | 251 size_type old_size = array_size; in grow() local 252 size_type new_size = old_size ? 2*old_size : initial_buffer_size; in grow() 260 for( size_type i=0; i<old_size; ++i, ++t ) in grow() 261 new_array[t&(new_size-1)] = old_array[t&(old_size-1)]; in grow() 265 cache_aligned_allocator<task_info>().deallocate(old_array,old_size); in grow()
|
| /oneTBB/test/conformance/ |
| H A D | conformance_concurrent_vector.cpp | 245 for( int old_size=0; old_size<=0; NextSize( old_size ) ) { in TestResizeAndCopy() local 251 v.assign(old_size/2, move_support_tests::Foo() ); in TestResizeAndCopy() 252 REQUIRE( ((count+old_size/2) == move_support_tests::foo_count) ); in TestResizeAndCopy() 253 for( int j=0; j<old_size/2; ++j ){ in TestResizeAndCopy() 261 int expected = j<old_size ? j : 33; in TestResizeAndCopy() 272 CheckVector(cv,new_size,old_size); in TestResizeAndCopy() 280 CheckVector(v,new_size,old_size); in TestResizeAndCopy() 336 … for( std::size_t old_size=0; old_size<=11000; old_size=(old_size<5 ? old_size+1 : 3*old_size) ) { in TestCapacity() local 340 vector_t v; v.reserve(old_size); in TestCapacity() 341 REQUIRE( v.capacity()>=old_size ); in TestCapacity() [all …]
|
| /oneTBB/include/oneapi/tbb/ |
| H A D | concurrent_vector.h | 775 size_type old_size = this->my_size++; in internal_emplace_back() local 777 …nt_address = &base_type::template internal_subscript</*allow_out_of_range_access=*/true>(old_size); in internal_emplace_back() 787 return iterator(*this, old_size, element_address); in internal_emplace_back() 865 size_type old_size = this->my_size.load(std::memory_order_relaxed); in internal_grow_to_at_least() local 867 while (old_size < new_size && !this->my_size.compare_exchange_weak(old_size, new_size)) in internal_grow_to_at_least() 870 int delta = static_cast<int>(new_size) - static_cast<int>(old_size); in internal_grow_to_at_least() 872 return internal_grow(old_size, new_size, args...); in internal_grow_to_at_least() 907 size_type old_size = this->my_size.load(std::memory_order_acquire); in internal_resize() local 908 if (n > old_size) { in internal_resize() 912 if (old_size == n) { in internal_resize() [all …]
|
| /oneTBB/include/oneapi/tbb/detail/ |
| H A D | _concurrent_skip_list.h | 1030 size_type old_size = size(); in internal_erase() local 1032 return old_size - size(); in internal_erase()
|