Home
last modified time | relevance | path

Searched refs:new_offset (Results 1 – 25 of 38) sorted by relevance

12

/third_party/libsnd/ossfuzz/
Dsndfile_fuzzer.cc24 sf_count_t new_offset; in vfseek() local
29 new_offset = offset; in vfseek()
33 new_offset = vf->offset + offset; in vfseek()
37 new_offset = vf->length + offset; in vfseek()
45 if (new_offset > vf->length) in vfseek()
50 new_offset, vf->length, whence, vf->offset, offset); in vfseek()
51 new_offset = vf->length; in vfseek()
53 else if (new_offset < 0) in vfseek()
58 new_offset, whence, vf->offset, vf->length, offset); in vfseek()
59 new_offset = 0; in vfseek()
[all …]
/third_party/musl/src/misc/
Dioctl.c76 int new_offset = 0; in convert_ioctl_struct() local
91 if (dir==W) memcpy(old+old_offset, new+new_offset, len); in convert_ioctl_struct()
92 else memcpy(new+new_offset, old+old_offset, len); in convert_ioctl_struct()
93 new_offset += len; in convert_ioctl_struct()
98 new_offset += (align-1) & -new_offset; in convert_ioctl_struct()
100 memcpy(&new_ts, new+new_offset, sizeof new_ts); in convert_ioctl_struct()
106 memcpy(new+new_offset, &new_ts, sizeof new_ts); in convert_ioctl_struct()
108 new_offset += sizeof new_ts; in convert_ioctl_struct()
111 if (dir==W) memcpy(old+old_offset, new+new_offset, old_size-old_offset); in convert_ioctl_struct()
112 else memcpy(new+new_offset, old+old_offset, old_size-old_offset); in convert_ioctl_struct()
/third_party/mesa3d/src/freedreno/ir3/
Dir3_nir_lower_io_offsets.c133 nir_ssa_def *new_offset = NULL; in ir3_nir_try_propagate_bit_shift() local
145 new_offset = nir_ishl(b, src0, shift_ssa); in ir3_nir_try_propagate_bit_shift()
150 new_offset = nir_ishr(b, src0, shift_ssa); in ir3_nir_try_propagate_bit_shift()
155 new_offset = nir_ushr(b, src0, shift_ssa); in ir3_nir_try_propagate_bit_shift()
161 return new_offset; in ir3_nir_try_propagate_bit_shift()
201 nir_ssa_def *new_offset = ir3_nir_try_propagate_bit_shift(b, offset, -shift); in lower_offset_for_ssbo() local
227 if (new_offset) in lower_offset_for_ssbo()
228 offset = new_offset; in lower_offset_for_ssbo()
Dir3_nir_analyze_ubo_ranges.c307 nir_ssa_def *new_offset = ir3_nir_try_propagate_bit_shift(b, ubo_offset, -2); in lower_ubo_load_to_uniform() local
309 if (new_offset) { in lower_ubo_load_to_uniform()
310 uniform_offset = new_offset; in lower_ubo_load_to_uniform()
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/data/
Dfont_data.cc38 const int32_t new_offset = bound_offset_ + offset; in Bound() local
44 CHECK(new_offset <= array_->Size()); in Bound()
49 CHECK(new_offset <= array_->Size() - length); in Bound()
52 bound_offset_ = new_offset; in Bound()
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/data/
Dfont_data.cc38 const int32_t new_offset = bound_offset_ + offset; in Bound() local
44 CHECK(new_offset <= array_->Size()); in Bound()
49 CHECK(new_offset <= array_->Size() - length); in Bound()
52 bound_offset_ = new_offset; in Bound()
/third_party/boost/libs/numeric/ublas/test/
Dplacement_new.cpp38 int new_offset = int (udt::base_pointer - ap); in main() local
43 std::cout << new_offset <<','<< array_new_offset << std::endl; in main()
46 if (new_offset != 0) in main()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dscalar_analysis_simplification.cpp414 std::unique_ptr<SENode> new_offset{new SEAddNode(&analysis_)}; in FoldRecurrentAddExpressions() local
422 new_offset->AddChild(node->GetOffset()); in FoldRecurrentAddExpressions()
426 new_offset->AddChild(analysis_.CreateNegation(node->GetOffset())); in FoldRecurrentAddExpressions()
437 analysis_.SimplifyExpression(new_offset.get()); in FoldRecurrentAddExpressions()
502 std::unique_ptr<SENode> new_offset{ in SimplifyRecurrentAddExpression() local
504 new_offset->AddChild(recurrent_expr->GetOffset()); in SimplifyRecurrentAddExpression()
508 new_offset->AddChild(child); in SimplifyRecurrentAddExpression()
513 SENode* simplified_child = analysis_.SimplifyExpression(new_offset.get()); in SimplifyRecurrentAddExpression()
520 recurrent_expr->AddOffset(analysis_.GetCachedOrAdd(std::move(new_offset))); in SimplifyRecurrentAddExpression()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dscalar_analysis_simplification.cpp414 std::unique_ptr<SENode> new_offset{new SEAddNode(&analysis_)}; in FoldRecurrentAddExpressions() local
422 new_offset->AddChild(node->GetOffset()); in FoldRecurrentAddExpressions()
426 new_offset->AddChild(analysis_.CreateNegation(node->GetOffset())); in FoldRecurrentAddExpressions()
437 analysis_.SimplifyExpression(new_offset.get()); in FoldRecurrentAddExpressions()
502 std::unique_ptr<SENode> new_offset{ in SimplifyRecurrentAddExpression() local
504 new_offset->AddChild(recurrent_expr->GetOffset()); in SimplifyRecurrentAddExpression()
508 new_offset->AddChild(child); in SimplifyRecurrentAddExpression()
513 SENode* simplified_child = analysis_.SimplifyExpression(new_offset.get()); in SimplifyRecurrentAddExpression()
520 recurrent_expr->AddOffset(analysis_.GetCachedOrAdd(std::move(new_offset))); in SimplifyRecurrentAddExpression()
/third_party/spirv-tools/source/opt/
Dscalar_analysis_simplification.cpp414 std::unique_ptr<SENode> new_offset{new SEAddNode(&analysis_)}; in FoldRecurrentAddExpressions() local
422 new_offset->AddChild(node->GetOffset()); in FoldRecurrentAddExpressions()
426 new_offset->AddChild(analysis_.CreateNegation(node->GetOffset())); in FoldRecurrentAddExpressions()
437 analysis_.SimplifyExpression(new_offset.get()); in FoldRecurrentAddExpressions()
502 std::unique_ptr<SENode> new_offset{ in SimplifyRecurrentAddExpression() local
504 new_offset->AddChild(recurrent_expr->GetOffset()); in SimplifyRecurrentAddExpression()
508 new_offset->AddChild(child); in SimplifyRecurrentAddExpression()
513 SENode* simplified_child = analysis_.SimplifyExpression(new_offset.get()); in SimplifyRecurrentAddExpression()
520 recurrent_expr->AddOffset(analysis_.GetCachedOrAdd(std::move(new_offset))); in SimplifyRecurrentAddExpression()
/third_party/e2fsprogs/ext2ed/
Dgeneral_com.c206 long new_offset; in set_offset() local
248 new_offset=device_offset+atol (new_offset_buffer+1)*mult; in set_offset()
256 new_offset=device_offset-atol (new_offset_buffer+1)*mult; in set_offset()
257 if (new_offset<0) new_offset=0; in set_offset()
261 new_offset=atol (new_offset_buffer)*mult; in set_offset()
263 if ( (fseek (device_handle,new_offset,SEEK_SET))==-1) { in set_offset()
264 …wprintw (command_win,"Error - Failed to seek to offset %ld in device %s\n",new_offset,device_name); in set_offset()
268 device_offset=new_offset; in set_offset()
/third_party/ltp/testcases/kernel/fs/doio/
Dgrowfiles.c2358 int new_offset; in shrinkfile() local
2395 if ((new_offset = file_size(fd)) == -1) { in shrinkfile()
2400 if (new_offset < min_lseek) in shrinkfile()
2401 new_offset = min_lseek; in shrinkfile()
2403 new_offset = in shrinkfile()
2404 random_range(min_lseek, new_offset, 1, in shrinkfile()
2407 new_offset = in shrinkfile()
2412 if ((offset = lseek(fd, new_offset, SEEK_SET)) == -1) { in shrinkfile()
2416 new_offset, strerror(errno)); in shrinkfile()
2429 new_offset = cur_offset - trunc_incr; in shrinkfile()
[all …]
/third_party/gstreamer/gstreamer/plugins/elements/
Dgstfdsink.c135 static gboolean gst_fd_sink_do_seek (GstFdSink * fdsink, guint64 new_offset);
514 gst_fd_sink_do_seek (GstFdSink * fdsink, guint64 new_offset) in gst_fd_sink_do_seek() argument
518 result = lseek (fdsink->fd, new_offset, SEEK_SET); in gst_fd_sink_do_seek()
523 fdsink->current_pos = new_offset; in gst_fd_sink_do_seek()
534 "%" G_GUINT64_FORMAT, fdsink->fd, new_offset); in gst_fd_sink_do_seek()
Dgstfilesink.c185 guint64 new_offset);
556 gst_file_sink_do_seek (GstFileSink * filesink, guint64 new_offset) in gst_file_sink_do_seek() argument
559 " using " __GST_STDIO_SEEK_FUNCTION, new_offset); in gst_file_sink_do_seek()
565 if (fseeko (filesink->file, (off_t) new_offset, SEEK_SET) != 0) in gst_file_sink_do_seek()
568 if (lseek (fileno (filesink->file), (off_t) new_offset, in gst_file_sink_do_seek()
572 if (fseek (filesink->file, (long) new_offset, SEEK_SET) != 0) in gst_file_sink_do_seek()
/third_party/gstreamer/gstplugins_bad/gst/audiobuffersplit/
Dgstaudiobuffersplit.c489 guint64 new_offset; in gst_audio_buffer_split_handle_discont() local
552 new_offset = in gst_audio_buffer_split_handle_discont()
558 new_offset = in gst_audio_buffer_split_handle_discont()
561 drop_samples = self->current_offset + avail_samples + new_offset; in gst_audio_buffer_split_handle_discont()
568 } else if (new_offset > self->current_offset + avail_samples) { in gst_audio_buffer_split_handle_discont()
570 new_offset - (self->current_offset + avail_samples); in gst_audio_buffer_split_handle_discont()
610 } else if (new_offset < self->current_offset + avail_samples) { in gst_audio_buffer_split_handle_discont()
612 self->current_offset + avail_samples - new_offset; in gst_audio_buffer_split_handle_discont()
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/
Dascend_memory_manager.cc181 auto new_offset = dynamic_mem_offset_ + align_size; in MallocDynamicMem() local
182 if (new_offset >= device_mem_pool_offset) { in MallocDynamicMem()
190 dynamic_mem_offset_ = new_offset; in MallocDynamicMem()
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_variable_initializers.c189 nir_ssa_def *new_offset = nir_iadd_imm(&b, offset, chunk_size * local_count); in nir_zero_initialize_shared_memory() local
190 nir_store_var(&b, it, new_offset, 0x1); in nir_zero_initialize_shared_memory()
/third_party/boost/boost/gil/
Dbit_aligned_pixel_reference.hpp66 int new_offset = int(_bit_offset+num_bits); in bit_advance() local
67 _current_byte += new_offset / 8; in bit_advance()
68 _bit_offset = new_offset % 8; in bit_advance()
/third_party/ffmpeg/tools/
Dqt-faststart.c303 uint64_t new_offset; in upgrade_stco_atom() local
322 new_offset = (uint64_t)original_offset + context->new_moov_size; in upgrade_stco_atom()
323 AV_WB64(context->dest, new_offset); in upgrade_stco_atom()
/third_party/gn/src/base/containers/
Dcircular_deque.h285 difference_type new_offset = OffsetFromBegin() + delta; in Add() local
286 DCHECK(new_offset >= 0 && in Add()
287 new_offset <= static_cast<difference_type>(parent_deque_->size())); in Add()
288 index_ = (new_offset + parent_deque_->begin_) % in Add()
/third_party/pcre2/pcre2/src/sljit/
DsljitNativeARM_32.c2431 sljit_u32 new_offset, mask; in hardfloat_call_with_args() local
2438 new_offset = 0; in hardfloat_call_with_args()
2442 new_offset++; in hardfloat_call_with_args()
2447 if (offset != new_offset) in hardfloat_call_with_args()
2449 0, (new_offset >> 1) + 1, (offset >> 1) + 1, 0) | ((new_offset & 0x1) ? 0x400000 : 0))); in hardfloat_call_with_args()
2454 new_offset = 0; in hardfloat_call_with_args()
2458 new_offset += 2; in hardfloat_call_with_args()
2463 if (offset != new_offset) in hardfloat_call_with_args()
2464 …FAIL_IF(push_inst(compiler, EMIT_FPU_OPERATION(VMOV_F32, SLJIT_F32_OP, (new_offset >> 1) + 1, (off… in hardfloat_call_with_args()
DsljitNativeARM_T2_32.c2030 sljit_u32 new_offset, mask; in hardfloat_call_with_args() local
2037 new_offset = 0; in hardfloat_call_with_args()
2041 new_offset++; in hardfloat_call_with_args()
2046 if (offset != new_offset) in hardfloat_call_with_args()
2047 FAIL_IF(push_inst32(compiler, VMOV_F32 | DD4((new_offset >> 1) + 1) in hardfloat_call_with_args()
2048 | ((new_offset & 0x1) ? 0x400000 : 0) | DM4((offset >> 1) + 1))); in hardfloat_call_with_args()
2053 new_offset = 0; in hardfloat_call_with_args()
2057 new_offset += 2; in hardfloat_call_with_args()
2062 if (offset != new_offset) in hardfloat_call_with_args()
2063 …FAIL_IF(push_inst32(compiler, VMOV_F32 | SLJIT_F32_OP | DD4((new_offset >> 1) + 1) | DM4((offset >… in hardfloat_call_with_args()
/third_party/mesa3d/src/mesa/vbo/
Dvbo_exec_api.c386 GLint new_offset = exec->vtx.attrptr[j] - exec->vtx.vertex; in vbo_exec_wrap_upgrade_vertex() local
396 COPY_SZ_4V(dest + new_offset, newSize, tmp); in vbo_exec_wrap_upgrade_vertex()
399 COPY_SZ_4V(dest + new_offset, sz, current); in vbo_exec_wrap_upgrade_vertex()
403 COPY_SZ_4V(dest + new_offset, sz, data + old_offset); in vbo_exec_wrap_upgrade_vertex()
/third_party/gstreamer/gstplugins_good/gst/imagefreeze/
Dgstimagefreeze.c1036 guint64 new_offset = in gst_image_freeze_src_loop() local
1040 if (new_offset != offset) { in gst_image_freeze_src_loop()
1044 new_offset); in gst_image_freeze_src_loop()
1045 self->offset = offset = new_offset; in gst_image_freeze_src_loop()
/third_party/gstreamer/gstplugins_base/gst/typefind/
Dgsttypefindfunctions.c3580 guint64 new_offset; in qt_type_find() local
3677 new_offset = 12; in qt_type_find()
3678 while (new_offset + 4 <= size) { in qt_type_find()
3679 if (ftyp_brand_is (&data[new_offset], cmaf_brands, in qt_type_find()
3686 if (ftyp_brand_is (&data[new_offset], iso_brands, in qt_type_find()
3693 if (ftyp_brand_is (&data[new_offset], iso_fragmented_brands, in qt_type_find()
3700 if (ftyp_brand_is (&data[new_offset], heif_brands, in qt_type_find()
3707 new_offset += 4; in qt_type_find()
3722 new_offset = offset + size; in qt_type_find()
3723 if (new_offset <= offset) in qt_type_find()
[all …]

12