Home
last modified time | relevance | path

Searched refs:slice_len (Results 1 – 14 of 14) sorted by relevance

/third_party/grpc/src/core/lib/slice/
Dslice_buffer.cc281 size_t slice_len = GRPC_SLICE_LENGTH(slice); in slice_buffer_move_first_maybe_ref() local
282 if (n > slice_len) { in slice_buffer_move_first_maybe_ref()
284 n -= slice_len; in slice_buffer_move_first_maybe_ref()
285 } else if (n == slice_len) { in slice_buffer_move_first_maybe_ref()
324 size_t slice_len = GRPC_SLICE_LENGTH(slice); in grpc_slice_buffer_move_first_into_buffer() local
325 if (slice_len > n) { in grpc_slice_buffer_move_first_into_buffer()
328 src, grpc_slice_sub_no_ref(slice, n, slice_len)); in grpc_slice_buffer_move_first_into_buffer()
330 } else if (slice_len == n) { in grpc_slice_buffer_move_first_into_buffer()
335 memcpy(dstp, GRPC_SLICE_START_PTR(slice), slice_len); in grpc_slice_buffer_move_first_into_buffer()
336 dstp += slice_len; in grpc_slice_buffer_move_first_into_buffer()
[all …]
/third_party/skia/third_party/externals/brotli/research/
Ddurchschlag.h20 size_t dictionary_size_limit, size_t slice_len, size_t block_len,
39 DurchschlagContext durchschlag_prepare(size_t slice_len,
64 DurchschlagContext durchschlag_prepare(size_t slice_len,
82 void durchschlag_distill(size_t slice_len, size_t minimum_population,
96 void durchschlag_purify(size_t slice_len, size_t minimum_population,
Ddurchschlag.cc247 size_t dictionary_size_limit, size_t slice_len, size_t block_len, in durchschlag_generate() argument
250 slice_len, sample_sizes, sample_data); in durchschlag_generate()
255 DurchschlagContext durchschlag_prepare(size_t slice_len, in durchschlag_prepare() argument
258 TextIdx sliceLen = static_cast<TextIdx>(slice_len); in durchschlag_prepare()
259 if (sliceLen != slice_len) fatal("slice_len is too large"); in durchschlag_prepare()
334 DurchschlagContext durchschlag_prepare(size_t slice_len, in durchschlag_prepare() argument
337 TextIdx sliceLen = static_cast<TextIdx>(slice_len); in durchschlag_prepare()
338 if (sliceLen != slice_len) fatal("slice_len is too large"); in durchschlag_prepare()
653 void durchschlag_distill(size_t slice_len, size_t minimum_population, in durchschlag_distill() argument
660 slice_len, *sample_sizes, data); in durchschlag_distill()
[all …]
Dsieve.h18 std::string sieve_generate(size_t dictionary_size_limit, size_t slice_len,
Dsieve.cc79 std::string sieve_generate(size_t dictionary_size_limit, size_t slice_len, in sieve_generate() argument
87 TextIdx sliceLen = static_cast<TextIdx>(slice_len); in sieve_generate()
88 if (sliceLen != slice_len) { in sieve_generate()
/third_party/mindspore/mindspore/core/ops/
Dstrided_slice.cc66 size_t slice_len = begin_v.size(); in EllipsisInferShape() local
72 SizeToLong(slice_len), primitive->name()); in EllipsisInferShape()
75 for (size_t n = j + 1; n < slice_len; n++) { in EllipsisInferShape()
81 size_t ellipsis_occupied_dims = x_rank - i - (slice_len - (j + 1)) + num; in EllipsisInferShape()
87 while (i < x_rank || j < slice_len) { in EllipsisInferShape()
92 if (j < begin_pos.size() || j < slice_len) { in EllipsisInferShape()
146 size_t slice_len = begin_v.size(); in ComputeInferShape() local
148 …rtUtils::CheckInteger("end_v size", SizeToLong(end_v.size()), kGreaterEqual, SizeToLong(slice_len), in ComputeInferShape()
151 SizeToLong(slice_len), primitive->name()); in ComputeInferShape()
152 while (i < x_rank || j < slice_len) { in ComputeInferShape()
[all …]
/third_party/ffmpeg/libavcodec/
Dutvideoenc.c420 uint32_t offset = 0, slice_len = 0; in encode_plane() local
521 slice_len = offset - slice_len; in encode_plane()
526 slice_len >> 2); in encode_plane()
533 offset - slice_len, SEEK_CUR); in encode_plane()
536 bytestream2_put_buffer(pb, c->slice_bits, slice_len); in encode_plane()
542 slice_len = offset; in encode_plane()
Dspeedhqenc.c152 int slice_len; in ff_speedhq_end_slice() local
155 slice_len = s->pb.buf_ptr - (s->pb.buf + s->slice_start); in ff_speedhq_end_slice()
156 AV_WL24(s->pb.buf + s->slice_start, slice_len); in ff_speedhq_end_slice()
Dspeedhq.c369 uint32_t last_offset, slice_len; in decode_speedhq_field() local
372 slice_len = AV_RL24(buf + last_offset); in decode_speedhq_field()
373 slice_offsets[slice_number] = last_offset + slice_len; in decode_speedhq_field()
375 if (slice_len < 3 || slice_offsets[slice_number] > end - 3) in decode_speedhq_field()
/third_party/grpc/test/core/compression/
Dstream_compression_test.cc46 size_t slice_len = GRPC_SLICE_LENGTH(buf->slices[i]); in slice_buffer_equals_string() local
50 slice_len)) { in slice_buffer_equals_string()
53 pointer += slice_len; in slice_buffer_equals_string()
/third_party/grpc/src/core/lib/iomgr/
Dendpoint_cfstream.cc206 size_t slice_len = GRPC_SLICE_LENGTH(slice); in WriteAction() local
208 ep->write_stream, GRPC_SLICE_START_PTR(slice), slice_len); in WriteAction()
224 ep->write_slices, grpc_slice_sub(slice, write_size, slice_len)); in WriteAction()
/third_party/grpc/src/csharp/ext/
Dgrpc_csharp_ext.c294 grpcsharp_batch_context* ctx, size_t* slice_len, uint8_t** slice_data_ptr) { in grpcsharp_batch_context_recv_message_next_slice_peek() argument
295 *slice_len = 0; in grpcsharp_batch_context_recv_message_next_slice_peek()
314 *slice_len = GRPC_SLICE_LENGTH(*slice_ptr); in grpcsharp_batch_context_recv_message_next_slice_peek()
1256 size_t* slice_len, uint8_t** slice_data_ptr) { in grpcsharp_slice_buffer_slice_peek() argument
1259 *slice_len = GRPC_SLICE_LENGTH(*slice_ptr); in grpcsharp_slice_buffer_slice_peek()
/third_party/mindspore/mindspore/ops/operations/
Darray_ops.py3276 slice_len = len(begin_v)
3288 while i < x_rank or j < slice_len:
3289 if j < slice_len:
3323 ellipsis_occupied_dims = x_rank - i - (slice_len - (j + 1)) + \
3324 … len(tuple(filter(lambda x: x == '1', new_axis_pos[j + 1:slice_len])))
3329 while i < x_rank or j < slice_len:
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/core/
Dtensor.cc1081 dsize_t slice_len = slice_options_.size(); in Slice() local
1084 if (i < slice_len) { in Slice()