/third_party/libsnd/ossfuzz/ |
D | sndfile_fuzzer.cc | 24 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/ |
D | ioctl.c | 76 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/ |
D | ir3_nir_lower_io_offsets.c | 133 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()
|
D | ir3_nir_analyze_ubo_ranges.c | 307 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/ |
D | font_data.cc | 38 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/ |
D | font_data.cc | 38 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/ |
D | placement_new.cpp | 38 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/ |
D | scalar_analysis_simplification.cpp | 414 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/ |
D | scalar_analysis_simplification.cpp | 414 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/ |
D | scalar_analysis_simplification.cpp | 414 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/ |
D | general_com.c | 206 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/ |
D | growfiles.c | 2358 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/ |
D | gstfdsink.c | 135 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()
|
D | gstfilesink.c | 185 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/ |
D | gstaudiobuffersplit.c | 489 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/ |
D | ascend_memory_manager.cc | 181 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/ |
D | nir_lower_variable_initializers.c | 189 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/ |
D | bit_aligned_pixel_reference.hpp | 66 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/ |
D | qt-faststart.c | 303 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/ |
D | circular_deque.h | 285 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/ |
D | sljitNativeARM_32.c | 2431 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()
|
D | sljitNativeARM_T2_32.c | 2030 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/ |
D | vbo_exec_api.c | 386 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/ |
D | gstimagefreeze.c | 1036 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/ |
D | gsttypefindfunctions.c | 3580 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 …]
|