Home
last modified time | relevance | path

Searched refs:initial_size (Results 1 – 25 of 51) sorted by relevance

123

/external/rust/crates/grpcio-sys/grpc/src/core/lib/gprpp/
Darena.cc36 void* ArenaStorage(size_t initial_size) { in ArenaStorage() argument
39 initial_size = GPR_ROUND_UP_TO_ALIGNMENT_SIZE(initial_size); in ArenaStorage()
40 size_t alloc_size = base_size + initial_size; in ArenaStorage()
63 Arena* Arena::Create(size_t initial_size) { in Create() argument
64 return new (ArenaStorage(initial_size)) Arena(initial_size); in Create()
67 std::pair<Arena*, void*> Arena::CreateWithAlloc(size_t initial_size, in CreateWithAlloc() argument
72 new (ArenaStorage(initial_size)) Arena(initial_size, alloc_size); in CreateWithAlloc()
Darena.h47 static Arena* Create(size_t initial_size);
52 static std::pair<Arena*, void*> CreateWithAlloc(size_t initial_size,
98 explicit Arena(size_t initial_size, size_t initial_alloc = 0)
100 initial_zone_size_(initial_size) {} in total_used_()
/external/mesa3d/src/intel/vulkan/tests/
Dblock_pool_grow_first.c41 const uint32_t initial_size = block_size / 2; in main() local
45 anv_block_pool_init(&pool, &device, 4096, initial_size); in main()
46 ASSERT(pool.size == initial_size); in main()
52 ASSERT(pool.size > initial_size); in main()
53 ASSERT(pool.size >= initial_size + block_size); in main()
58 ASSERT(padding == initial_size); in main()
59 ASSERT(offset == initial_size); in main()
/external/perfetto/src/protozero/
Dfield.cc33 size_t initial_size = dst->size(); in SerializeAndAppendToInternal() local
34 dst->resize(initial_size + pu::kMaxSimpleFieldEncodedSize + size_); in SerializeAndAppendToInternal()
35 uint8_t* start = reinterpret_cast<uint8_t*>(&(*dst)[initial_size]); in SerializeAndAppendToInternal()
69 PERFETTO_DCHECK(initial_size + written_size <= dst->size()); in SerializeAndAppendToInternal()
70 dst->resize(initial_size + written_size); in SerializeAndAppendToInternal()
/external/curl/src/
Dtool_cb_prg.c141 if(bar->initial_size < 0 || in tool_progress_cb()
142 ((CURL_OFF_T_MAX - bar->initial_size) < (dltotal + ultotal))) in tool_progress_cb()
145 total = dltotal + ultotal + bar->initial_size; in tool_progress_cb()
149 if(bar->initial_size < 0 || in tool_progress_cb()
150 ((CURL_OFF_T_MAX - bar->initial_size) < (dlnow + ulnow))) in tool_progress_cb()
153 point = dlnow + ulnow + bar->initial_size; in tool_progress_cb()
222 bar->initial_size = config->resume_from; in progressbarinit()
Dtool_cb_prg.h35 curl_off_t initial_size; member
/external/grpc-grpc/src/core/lib/gpr/
Darena.cc99 gpr_arena* gpr_arena_create(size_t initial_size) { in gpr_arena_create() argument
100 initial_size = GPR_ROUND_UP_TO_ALIGNMENT_SIZE(initial_size); in gpr_arena_create()
102 GPR_ROUND_UP_TO_ALIGNMENT_SIZE(sizeof(gpr_arena)) + initial_size)); in gpr_arena_create()
103 a->initial_zone_size = initial_size; in gpr_arena_create()
Darena.h35 gpr_arena* gpr_arena_create(size_t initial_size);
/external/llvm-project/lldb/source/Symbol/
DVariableList.cpp104 const size_t initial_size = var_list.GetSize(); in AppendVariablesIfUnique() local
108 return var_list.GetSize() - initial_size; in AppendVariablesIfUnique()
114 const size_t initial_size = var_list.GetSize(); in AppendVariablesIfUnique() local
125 return var_list.GetSize() - initial_size; in AppendVariablesIfUnique()
131 const size_t initial_size = var_list.GetSize(); in AppendVariablesWithScope() local
142 return var_list.GetSize() - initial_size; in AppendVariablesWithScope()
/external/flatbuffers/grpc/tests/
Dmessage_builder_test.cpp232 for (size_t initial_size = 4; initial_size <= 2048; initial_size *= 2) { in builder_move_ctor_conversion_before_finish_half_n_half_table_test() local
233 flatbuffers::FlatBufferBuilder fbb(initial_size); in builder_move_ctor_conversion_before_finish_half_n_half_table_test()
250 for (size_t initial_size = 1; initial_size <= 2048; initial_size += 1) { in builder_move_ctor_conversion_before_finish_test() local
251 flatbuffers::FlatBufferBuilder fbb(initial_size); in builder_move_ctor_conversion_before_finish_test()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/gpr/
Darena.h37 inline gpr_arena* gpr_arena_create(size_t initial_size) { in gpr_arena_create() argument
38 return grpc_core::Arena::Create(initial_size); in gpr_arena_create()
/external/flatbuffers/java/com/google/flatbuffers/
DFlatBufferBuilder.java58 public FlatBufferBuilder(int initial_size, ByteBufferFactory bb_factory) { in FlatBufferBuilder() argument
59 this(initial_size, bb_factory, null, Utf8.getDefault()); in FlatBufferBuilder()
70 public FlatBufferBuilder(int initial_size, ByteBufferFactory bb_factory, in FlatBufferBuilder() argument
72 if (initial_size <= 0) { in FlatBufferBuilder()
73 initial_size = 1; in FlatBufferBuilder()
81 bb = bb_factory.newByteBuffer(initial_size); in FlatBufferBuilder()
92 public FlatBufferBuilder(int initial_size) { in FlatBufferBuilder() argument
93 this(initial_size, HeapByteBufferFactory.INSTANCE, null, Utf8.getDefault()); in FlatBufferBuilder()
/external/tensorflow/tensorflow/lite/kernels/parse_example/
Dexample_proto_fast_parsing.h226 const size_t initial_size = float_list->size(); in ParseFloatList() local
227 float_list->resize(initial_size + packed_length / kNumFloatBytes); in ParseFloatList()
237 std::min(static_cast<uint32>((float_list->size() - initial_size) * in ParseFloatList()
240 if (!stream.ReadRaw(float_list->data() + initial_size, bytes_to_copy)) in ParseFloatList()
243 int64 index = initial_size; in ParseFloatList()
256 const size_t initial_size = float_list->size(); in ParseFloatList() local
261 float_list->resize(initial_size + num_elements); in ParseFloatList()
262 int64 index = initial_size; in ParseFloatList()
/external/virglrenderer/src/
Dvrend_strbuf.h67 static inline bool strbuf_alloc(struct vrend_strbuf *sb, int initial_size) in strbuf_alloc() argument
69 sb->buf = malloc(initial_size); in strbuf_alloc()
72 sb->alloc_size = initial_size; in strbuf_alloc()
/external/perfetto/src/trace_processor/rpc/
Dproto_ring_buffer_unittest.cc73 size_t initial_size = last_msg_.size(); in MakeProtoMessage() local
76 last_msg_.resize(initial_size + len + 20); in MakeProtoMessage()
77 uint8_t* wptr = &last_msg_[initial_size]; in MakeProtoMessage()
/external/flatbuffers/php/
DFlatbufferBuilder.php89 public function __construct($initial_size) argument
91 if ($initial_size <= 0) {
92 $initial_size = 1;
94 $this->space = $initial_size;
95 $this->bb = $this->newByteBuffer($initial_size);
/external/webrtc/modules/audio_coding/neteq/
Daudio_multi_vector_unittest.cc71 size_t initial_size = 17; in TEST_P() local
72 AudioMultiVector vec2(num_channels_, initial_size); in TEST_P()
75 EXPECT_EQ(initial_size, vec2.Size()); in TEST_P()
Daudio_multi_vector.cc31 AudioMultiVector::AudioMultiVector(size_t N, size_t initial_size) { in AudioMultiVector() argument
36 channels_.push_back(new AudioVector(initial_size)); in AudioMultiVector()
Daudio_vector_unittest.cc43 size_t initial_size = 17; in TEST_F() local
44 AudioVector vec2(initial_size); in TEST_F()
46 EXPECT_EQ(initial_size, vec2.Size()); in TEST_F()
Daudio_vector.cc26 AudioVector::AudioVector(size_t initial_size) in AudioVector() argument
27 : array_(new int16_t[initial_size + 1]), in AudioVector()
28 capacity_(initial_size + 1), in AudioVector()
Daudio_multi_vector.h33 AudioMultiVector(size_t N, size_t initial_size);
/external/python/cpython3/Parser/
Dparsetok.c28 growable_comment_array_init(growable_comment_array *arr, size_t initial_size) { in growable_comment_array_init() argument
29 assert(initial_size > 0); in growable_comment_array_init()
30 arr->items = malloc(initial_size * sizeof(*arr->items)); in growable_comment_array_init()
31 arr->size = initial_size; in growable_comment_array_init()
/external/google-breakpad/src/processor/
Dfast_source_line_resolver.cc244 MemAddr initial_base, initial_size; in FindCFIFrameInfo() local
252 &initial_base, &initial_size)) { in FindCFIFrameInfo()
/external/flatbuffers/js/
Dflatbuffers.js151 var initial_size = 1024;
153 var initial_size = opt_initial_size;
160 this.bb = flatbuffers.ByteBuffer.allocate(initial_size);
168 this.space = initial_size;
/external/flatbuffers/include/flatbuffers/
Dgrpc.h165 explicit MessageBuilder(uoffset_t initial_size = 1024)
166 : FlatBufferBuilder(initial_size, &slice_allocator_, false) {}

123