Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 25 of 540) sorted by relevance

12345678910>>...22

/external/eigen/Eigen/src/StlSupport/
DStdVector.h80 void resize(size_type new_size) in resize() argument
81 { resize(new_size, T()); } in resize()
85 void resize(size_type new_size, const value_type& x) in resize() argument
87 if (vector_base::size() < new_size) in resize()
88 vector_base::_Insert_n(vector_base::end(), new_size - vector_base::size(), x); in resize()
89 else if (new_size < vector_base::size()) in resize()
90 vector_base::erase(vector_base::begin() + new_size, vector_base::end()); in resize()
97 void insert(const_iterator position, size_type new_size, const value_type& x) in insert() argument
98 { vector_base::insert(position, new_size, x); } in insert()
102 void resize(size_type new_size, const value_type& x) in resize() argument
[all …]
DStdDeque.h80 void resize(size_type new_size) in resize() argument
81 { resize(new_size, T()); } in resize()
85 void resize(size_type new_size, const value_type& x) in resize() argument
87 if (deque_base::size() < new_size) in resize()
88 deque_base::_Insert_n(deque_base::end(), new_size - deque_base::size(), x); in resize()
89 else if (new_size < deque_base::size()) in resize()
90 deque_base::erase(deque_base::begin() + new_size, deque_base::end()); in resize()
99 void insert(const_iterator position, size_type new_size, const value_type& x) in insert() argument
100 { deque_base::insert(position, new_size, x); } in insert()
103 void resize(size_type new_size, const value_type& x) in resize() argument
[all …]
/external/angle/third_party/abseil-cpp/absl/strings/internal/
Dresize_uninitialized.h38 static void Resize(string_type* s, size_t new_size) { s->resize(new_size); } in Resize()
47 static void Resize(string_type* s, size_t new_size) {
48 s->__resize_default_init(new_size);
67 inline void STLStringResizeUninitialized(string_type* s, size_t new_size) {
68 ResizeUninitializedTraits<string_type>::Resize(s, new_size);
75 void STLStringReserveAmortized(string_type* s, size_t new_size) {
77 if (new_size > cap) {
79 s->reserve((std::max)(new_size, 2 * cap));
106 void STLStringResizeUninitializedAmortized(string_type* s, size_t new_size) {
108 if (new_size > size) {
[all …]
/external/tensorflow/third_party/absl/abseil-cpp/absl/strings/internal/
Dresize_uninitialized.h38 static void Resize(string_type* s, size_t new_size) { s->resize(new_size); } in Resize()
47 static void Resize(string_type* s, size_t new_size) {
48 s->__resize_default_init(new_size);
67 inline void STLStringResizeUninitialized(string_type* s, size_t new_size) {
68 ResizeUninitializedTraits<string_type>::Resize(s, new_size);
75 void STLStringReserveAmortized(string_type* s, size_t new_size) {
77 if (new_size > cap) {
79 s->reserve((std::max)(new_size, 2 * cap));
106 void STLStringResizeUninitializedAmortized(string_type* s, size_t new_size) {
108 if (new_size > size) {
[all …]
/external/abseil-cpp/absl/strings/internal/
Dresize_uninitialized.h38 static void Resize(string_type* s, size_t new_size) { s->resize(new_size); } in Resize()
47 static void Resize(string_type* s, size_t new_size) {
48 s->__resize_default_init(new_size);
67 inline void STLStringResizeUninitialized(string_type* s, size_t new_size) {
68 ResizeUninitializedTraits<string_type>::Resize(s, new_size);
75 void STLStringReserveAmortized(string_type* s, size_t new_size) {
77 if (new_size > cap) {
79 s->reserve((std::max)(new_size, 2 * cap));
106 void STLStringResizeUninitializedAmortized(string_type* s, size_t new_size) {
108 if (new_size > size) {
[all …]
/external/webrtc/third_party/abseil-cpp/absl/strings/internal/
Dresize_uninitialized.h38 static void Resize(string_type* s, size_t new_size) { s->resize(new_size); } in Resize()
47 static void Resize(string_type* s, size_t new_size) {
48 s->__resize_default_init(new_size);
67 inline void STLStringResizeUninitialized(string_type* s, size_t new_size) {
68 ResizeUninitializedTraits<string_type>::Resize(s, new_size);
75 void STLStringReserveAmortized(string_type* s, size_t new_size) {
77 if (new_size > cap) {
79 s->reserve((std::max)(new_size, 2 * cap));
106 void STLStringResizeUninitializedAmortized(string_type* s, size_t new_size) {
108 if (new_size > size) {
[all …]
/external/cronet/third_party/abseil-cpp/absl/strings/internal/
Dresize_uninitialized.h38 static void Resize(string_type* s, size_t new_size) { s->resize(new_size); } in Resize()
47 static void Resize(string_type* s, size_t new_size) {
48 s->__resize_default_init(new_size);
67 inline void STLStringResizeUninitialized(string_type* s, size_t new_size) {
68 ResizeUninitializedTraits<string_type>::Resize(s, new_size);
75 void STLStringReserveAmortized(string_type* s, size_t new_size) {
77 if (new_size > cap) {
79 s->reserve((std::max)(new_size, 2 * cap));
106 void STLStringResizeUninitializedAmortized(string_type* s, size_t new_size) {
108 if (new_size > size) {
[all …]
/external/e2fsprogs/resize/
Dmain.c260 blk64_t new_size = 0; in main() local
516 new_size = min_size; in main()
518 new_size = parse_num_blocks2(new_size_str, in main()
520 if (new_size == 0) { in main()
526 new_size = max_size; in main()
529 new_size &= ~((blk64_t)((sys_page_size / blocksize)-1)); in main()
533 new_size = ext2fs_blocks_count(fs->super); in main()
537 if (new_size == (1ULL << 32)) in main()
538 new_size--; in main()
539 else if (new_size > (1ULL << 32)) { in main()
[all …]
/external/ltp/testcases/kernel/tracing/ftrace_test/ftrace_stress/
Dftrace_buffer_size_kb.sh30 new_size=1
33 echo $new_size > "$TRACING_PATH"/buffer_size_kb
34 new_size=$(( $new_size + $step ))
40 new_size=$(( $new_size - $step ))
41 echo $new_size > "$TRACING_PATH"/buffer_size_kb
/external/ltp/testcases/kernel/syscalls/mremap/
Dmremap05.c52 size_t new_size; /* in pages */ member
75 .new_size = 1,
84 .new_size = 1,
93 .new_size = 1,
102 .new_size = 1,
109 .new_size = 1,
138 t->ret = mremap(t->old_address, t->old_size, t->new_size, t->flags, in test_mremap()
163 t->new_address = get_test_area(t->new_size * pagesize, 1); in setup0()
169 t->new_address = get_test_area((t->new_size + 1) * pagesize, 1) + 1; in setup1()
181 t->new_address = get_test_area(t->new_size * pagesize, 1); in setup3()
[all …]
/external/python/cpython3/Lib/ctypes/test/
Dtest_varsize_struct.py17 new_size = sizeof(X) + sizeof(c_int) * 1
18 resize(x, new_size)
19 self.assertEqual(sizeof(x), new_size)
23 new_size = sizeof(X) + sizeof(c_int) * 9
24 resize(x, new_size)
25 self.assertEqual(sizeof(x), new_size)
29 new_size = sizeof(X) + sizeof(c_int) * 1
30 resize(x, new_size)
31 self.assertEqual(sizeof(x), new_size)
/external/python/cpython2/Lib/ctypes/test/
Dtest_varsize_struct.py17 new_size = sizeof(X) + sizeof(c_int) * 1
18 resize(x, new_size)
19 self.assertEqual(sizeof(x), new_size)
23 new_size = sizeof(X) + sizeof(c_int) * 9
24 resize(x, new_size)
25 self.assertEqual(sizeof(x), new_size)
29 new_size = sizeof(X) + sizeof(c_int) * 1
30 resize(x, new_size)
31 self.assertEqual(sizeof(x), new_size)
/external/cronet/third_party/protobuf/src/google/protobuf/
Drepeated_ptr_field.cc52 int new_size = current_size_ + extend_amount; in InternalExtend() local
53 if (total_size_ >= new_size) { in InternalExtend()
60 new_size = internal::CalculateReserveSize<void*, kRepHeaderSize>(total_size_, in InternalExtend()
61 new_size); in InternalExtend()
62 GOOGLE_CHECK_LE(static_cast<int64_t>(new_size), in InternalExtend()
67 size_t bytes = kRepHeaderSize + sizeof(old_rep->elements[0]) * new_size; in InternalExtend()
74 total_size_ = new_size; in InternalExtend()
95 void RepeatedPtrFieldBase::Reserve(int new_size) { in Reserve() argument
96 if (new_size > current_size_) { in Reserve()
97 InternalExtend(new_size - current_size_); in Reserve()
/external/protobuf/src/google/protobuf/
Drepeated_ptr_field.cc52 int new_size = current_size_ + extend_amount; in InternalExtend() local
53 if (total_size_ >= new_size) { in InternalExtend()
60 new_size = internal::CalculateReserveSize<void*, kRepHeaderSize>(total_size_, in InternalExtend()
61 new_size); in InternalExtend()
62 GOOGLE_CHECK_LE(static_cast<int64_t>(new_size), in InternalExtend()
67 size_t bytes = kRepHeaderSize + sizeof(old_rep->elements[0]) * new_size; in InternalExtend()
74 total_size_ = new_size; in InternalExtend()
95 void RepeatedPtrFieldBase::Reserve(int new_size) { in Reserve() argument
96 if (new_size > current_size_) { in Reserve()
97 InternalExtend(new_size - current_size_); in Reserve()
/external/freetype/src/lzw/
Dftzopen.c126 FT_Offset new_size = old_size; in ft_lzwstate_stack_grow() local
128 new_size = new_size + ( new_size >> 1 ) + 4; in ft_lzwstate_stack_grow()
139 if ( new_size > ( 1 << LZW_MAX_BITS ) ) in ft_lzwstate_stack_grow()
141 new_size = 1 << LZW_MAX_BITS; in ft_lzwstate_stack_grow()
142 if ( new_size == old_size ) in ft_lzwstate_stack_grow()
146 if ( FT_QREALLOC( state->stack, old_size, new_size ) ) in ft_lzwstate_stack_grow()
153 state->stack_size = new_size; in ft_lzwstate_stack_grow()
164 FT_UInt new_size = old_size; in ft_lzwstate_prefix_grow() local
169 if ( new_size == 0 ) /* first allocation -> 9 bits */ in ft_lzwstate_prefix_grow()
170 new_size = 512; in ft_lzwstate_prefix_grow()
[all …]
/external/protobuf/src/google/protobuf/stubs/
Dstl_util.h52 inline void STLStringResizeUninitialized(std::string* s, size_t new_size) { in STLStringResizeUninitialized() argument
53 s->resize(new_size); in STLStringResizeUninitialized()
59 size_t new_size) { in STLStringResizeUninitializedAmortized() argument
61 if (new_size > cap) { in STLStringResizeUninitializedAmortized()
63 s->reserve(std::max<size_t>(new_size, 2 * cap)); in STLStringResizeUninitializedAmortized()
65 STLStringResizeUninitialized(s, new_size); in STLStringResizeUninitializedAmortized()
/external/cronet/third_party/protobuf/src/google/protobuf/stubs/
Dstl_util.h52 inline void STLStringResizeUninitialized(std::string* s, size_t new_size) { in STLStringResizeUninitialized() argument
53 s->resize(new_size); in STLStringResizeUninitialized()
59 size_t new_size) { in STLStringResizeUninitializedAmortized() argument
61 if (new_size > cap) { in STLStringResizeUninitializedAmortized()
63 s->reserve(std::max<size_t>(new_size, 2 * cap)); in STLStringResizeUninitializedAmortized()
65 STLStringResizeUninitialized(s, new_size); in STLStringResizeUninitializedAmortized()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/
Dresize_uninitialized.h36 static void Resize(string_type* s, size_t new_size) { s->resize(new_size); } in Resize()
45 static void Resize(string_type* s, size_t new_size) {
46 s->__resize_default_init(new_size);
65 inline void STLStringResizeUninitialized(string_type* s, size_t new_size) {
66 ResizeUninitializedTraits<string_type>::Resize(s, new_size);
/external/openscreen/third_party/abseil/src/absl/strings/internal/
Dresize_uninitialized.h36 static void Resize(string_type* s, size_t new_size) { s->resize(new_size); } in Resize()
45 static void Resize(string_type* s, size_t new_size) {
46 s->__resize_default_init(new_size);
65 inline void STLStringResizeUninitialized(string_type* s, size_t new_size) {
66 ResizeUninitializedTraits<string_type>::Resize(s, new_size);
/external/libtextclassifier/abseil-cpp/absl/strings/internal/
Dresize_uninitialized.h36 static void Resize(string_type* s, size_t new_size) { s->resize(new_size); } in Resize()
45 static void Resize(string_type* s, size_t new_size) {
46 s->__resize_default_init(new_size);
65 inline void STLStringResizeUninitialized(string_type* s, size_t new_size) {
66 ResizeUninitializedTraits<string_type>::Resize(s, new_size);
/external/flatbuffers/include/flatbuffers/
Dallocator.h42 size_t new_size, size_t in_use_back, in reallocate_downward() argument
44 FLATBUFFERS_ASSERT(new_size > old_size); // vector_downward only grows in reallocate_downward()
45 uint8_t *new_p = allocate(new_size); in reallocate_downward()
46 memcpy_downward(old_p, old_size, new_p, new_size, in_use_back, in reallocate_downward()
58 size_t new_size, size_t in_use_back, in memcpy_downward() argument
60 memcpy(new_p + new_size - in_use_back, old_p + old_size - in_use_back, in memcpy_downward()
/external/perfetto/include/perfetto/ext/base/
Dcontainer_annotations.h28 #define ANNOTATE_NEW_BUFFER(buffer, capacity, new_size) \ argument
32 (buffer) + (new_size)); \
40 #define ANNOTATE_CHANGE_SIZE(buffer, capacity, old_size, new_size) \ argument
44 (buffer) + (new_size)); \
52 #define ANNOTATE_NEW_BUFFER(buffer, capacity, new_size) argument
54 #define ANNOTATE_CHANGE_SIZE(buffer, capacity, old_size, new_size) argument
/external/webrtc/modules/remote_bitrate_estimator/
Dpacket_arrival_map.cc42 int64_t new_size = end_sequence_number() - sequence_number; in AddPacket() local
43 if (new_size > kMaxNumberOfPackets) { in AddPacket()
48 AdjustToSize(new_size); in AddPacket()
157 void PacketArrivalTimeMap::AdjustToSize(int new_size) { in AdjustToSize() argument
158 if (new_size > capacity()) { in AdjustToSize()
160 while (new_capacity < new_size) in AdjustToSize()
164 if (capacity() > std::max(kMinCapacity, 4 * new_size)) { in AdjustToSize()
166 while (new_capacity > 2 * std::max(new_size, kMinCapacity)) { in AdjustToSize()
171 RTC_DCHECK_LE(new_size, capacity()); in AdjustToSize()
/external/pdfium/core/fxcrt/
Dcfx_memorystream.cpp86 FX_SAFE_SIZE_T new_size = new_pos; in WriteBlockAtOffset() local
87 new_size *= 2; in WriteBlockAtOffset()
88 new_size += (kBlockSize - 1); in WriteBlockAtOffset()
89 new_size /= kBlockSize; in WriteBlockAtOffset()
90 new_size *= kBlockSize; in WriteBlockAtOffset()
91 if (!new_size.IsValid()) in WriteBlockAtOffset()
94 m_data.resize(new_size.ValueOrDie()); in WriteBlockAtOffset()
/external/webrtc/rtc_base/
Dbounded_inline_vector.h115 void resize(int new_size) { in resize() argument
116 RTC_DCHECK_GE(new_size, 0); in resize()
117 RTC_DCHECK_LE(new_size, fixed_capacity); in resize()
118 if (new_size > storage_.size) { in resize()
120 storage_.data + storage_.size, new_size - storage_.size); in resize()
121 } else if (new_size < storage_.size) { in resize()
122 bounded_inline_vector_impl::DestroyElements(storage_.data + new_size, in resize()
123 storage_.size - new_size); in resize()
125 storage_.size = new_size; in resize()

12345678910>>...22