/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 | 85 int new_offset = 0; in convert_ioctl_struct() local 104 if (dir==W) memcpy(old+old_offset, new+new_offset, len); in convert_ioctl_struct() 105 else memcpy(new+new_offset, old+old_offset, len); in convert_ioctl_struct() 106 new_offset += len; in convert_ioctl_struct() 111 new_offset += (align-1) & -new_offset; in convert_ioctl_struct() 113 memcpy(&new_ts, new+new_offset, sizeof new_ts); in convert_ioctl_struct() 119 memcpy(new+new_offset, &new_ts, sizeof new_ts); in convert_ioctl_struct() 121 new_offset += sizeof new_ts; in convert_ioctl_struct() 124 if (dir==W) memcpy(old+old_offset, new+new_offset, old_size-old_offset); in convert_ioctl_struct() 125 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() 175 nir_ssa_def *new_offset = intrinsic->src[2].ssa; in scalarize_load() local 181 nir_iadd(b, new_offset, nir_imm_int(b, i)), in scalarize_load() 231 nir_ssa_def *new_offset = ir3_nir_try_propagate_bit_shift(b, offset, -shift); in lower_offset_for_ssbo() local 257 if (new_offset) in lower_offset_for_ssbo() 258 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/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/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/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/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/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/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/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/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/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/mesa3d/src/mesa/vbo/ |
D | vbo_exec_api.c | 378 GLint new_offset = exec->vtx.attrptr[j] - exec->vtx.vertex; in vbo_exec_wrap_upgrade_vertex() local 388 COPY_SZ_4V(dest + new_offset, newSize, tmp); in vbo_exec_wrap_upgrade_vertex() 391 COPY_SZ_4V(dest + new_offset, sz, current); in vbo_exec_wrap_upgrade_vertex() 395 COPY_SZ_4V(dest + new_offset, sz, data + old_offset); in vbo_exec_wrap_upgrade_vertex()
|
/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 …]
|
/third_party/pcre2/pcre2/src/sljit/ |
D | sljitNativeARM_T2_32.c | 2244 sljit_u32 new_offset = SLJIT_FR0; in hardfloat_call_with_args() local 2253 if (offset != new_offset) in hardfloat_call_with_args() 2254 FAIL_IF(push_inst32(compiler, VMOV_F32 | SLJIT_32 | DD4(new_offset) | DM4(offset))); in hardfloat_call_with_args() 2256 new_offset++; in hardfloat_call_with_args() 2264 if (offset != new_offset) in hardfloat_call_with_args() 2265 FAIL_IF(push_inst32(compiler, VMOV_F32 | 0x400000 | DD4(new_offset) | DM4(offset))); in hardfloat_call_with_args() 2266 f32_offset = new_offset; in hardfloat_call_with_args() 2267 new_offset++; in hardfloat_call_with_args()
|
D | sljitNativeARM_32.c | 2668 sljit_u32 new_offset = SLJIT_FR0; in hardfloat_call_with_args() local 2677 if (offset != new_offset) in hardfloat_call_with_args() 2679 SLJIT_32, new_offset, offset, 0))); in hardfloat_call_with_args() 2681 new_offset++; in hardfloat_call_with_args() 2690 if (offset != new_offset) in hardfloat_call_with_args() 2692 0, new_offset, offset, 0))); in hardfloat_call_with_args() 2693 f32_offset = new_offset; in hardfloat_call_with_args() 2694 new_offset++; in hardfloat_call_with_args()
|
/third_party/gstreamer/gstplugins_bad/gst/mxf/ |
D | mxfdemux.c | 4871 guint64 new_offset = -1; local 4894 new_offset = MIN (off, new_offset); 4898 if (new_offset == -1) 4901 new_offset += demux->run_in; 4904 G_GUINT64_FORMAT, new_offset); 4907 new_offset, GST_SEEK_TYPE_NONE, 0); 5261 guint64 new_offset = -1; local 5283 new_offset = MIN (off, new_offset); 5305 if (new_offset == -1) { 5309 demux->offset = new_offset + demux->run_in;
|
/third_party/gstreamer/gstplugins_good/gst/rtpmanager/ |
D | gstrtpjitterbuffer.c | 2101 GstClockTimeDiff new_offset = timeout_offset (jitterbuffer); in update_timer_offsets() local 2106 if (safe_add (&test->timeout, pts, new_offset)) { in update_timer_offsets() 2107 test->offset = new_offset; in update_timer_offsets() 4623 gint64 new_offset = g_value_get_int64 (value); in gst_rtp_jitter_buffer_set_property() local 4625 if (new_offset > priv->ts_offset) { in gst_rtp_jitter_buffer_set_property() 4626 priv->ts_offset_remainder = new_offset - priv->ts_offset; in gst_rtp_jitter_buffer_set_property() 4628 priv->ts_offset_remainder = -(priv->ts_offset - new_offset); in gst_rtp_jitter_buffer_set_property()
|
/third_party/flutter/skia/third_party/externals/harfbuzz/src/ |
D | hb-ot-layout-common.hh | 600 OffsetTo<FeatureParams> new_offset; in sanitize() local 602 new_offset = new_offset_int; in sanitize() 603 if (new_offset == new_offset_int && in sanitize()
|
/third_party/skia/third_party/externals/dng_sdk/source/ |
D | dng_info.cpp | 1567 uint64 new_offset = fShared->fDNGPrivateDataOffset + section_offset + 14; in ParseDNGPrivateData() local 1575 new_offset); in ParseDNGPrivateData()
|