/kernel/linux/linux-5.10/net/sctp/ |
H A D | auth.c | 151 int diff; in sctp_auth_compare_vectors() local 155 diff = vector1->len - vector2->len; in sctp_auth_compare_vectors() 156 if (diff) { in sctp_auth_compare_vectors() 157 longer = (diff > 0) ? vector1->data : vector2->data; in sctp_auth_compare_vectors() 163 for (i = 0; i < abs(diff); i++) { in sctp_auth_compare_vectors() 165 return diff; in sctp_auth_compare_vectors()
|
/kernel/linux/linux-5.10/drivers/gpu/ipu-v3/ |
H A D | ipu-di.c | 512 u32 diff; in ipu_di_adjust_videomode() local 517 diff = 2 - mode->vfront_porch; in ipu_di_adjust_videomode() 519 if (mode->vback_porch >= diff) { in ipu_di_adjust_videomode() 521 mode->vback_porch -= diff; in ipu_di_adjust_videomode() 522 } else if (mode->vsync_len > diff) { in ipu_di_adjust_videomode() 524 mode->vsync_len = mode->vsync_len - diff; in ipu_di_adjust_videomode()
|
/kernel/linux/linux-5.10/drivers/ptp/ |
H A D | ptp_qoriq.c | 179 u64 adj, diff; in ptp_qoriq_adjfine() local 193 * Calculate diff and round() to the nearest integer in ptp_qoriq_adjfine() 195 * diff = adj * (ppb / 1000000000) in ptp_qoriq_adjfine() 198 diff = mul_u64_u64_div_u64(adj, scaled_ppm, 32768000000); in ptp_qoriq_adjfine() 199 diff = DIV64_U64_ROUND_UP(diff, 2); in ptp_qoriq_adjfine() 201 tmr_add = neg_adj ? tmr_add - diff : tmr_add + diff; in ptp_qoriq_adjfine()
|
/kernel/linux/linux-6.6/fs/ntfs3/ |
H A D | record.c | 19 int diff = le32_to_cpu(left->type) - le32_to_cpu(type); in compare_attr() local 21 if (diff) in compare_attr() 22 return diff; in compare_attr() 483 int diff = compare_attr(attr, type, name, name_len, upcase); in mi_insert_attr() local 485 if (diff < 0) in mi_insert_attr() 488 if (!diff && !is_attr_indexed(attr)) in mi_insert_attr()
|
/kernel/linux/linux-6.6/drivers/ptp/ |
H A D | ptp_qoriq.c | 204 u64 adj, diff; in ptp_qoriq_adjfine() local 218 * Calculate diff and round() to the nearest integer in ptp_qoriq_adjfine() 220 * diff = adj * (ppb / 1000000000) in ptp_qoriq_adjfine() 223 diff = mul_u64_u64_div_u64(adj, scaled_ppm, 32768000000); in ptp_qoriq_adjfine() 224 diff = DIV64_U64_ROUND_UP(diff, 2); in ptp_qoriq_adjfine() 226 tmr_add = neg_adj ? tmr_add - diff : tmr_add + diff; in ptp_qoriq_adjfine()
|
/kernel/linux/linux-6.6/drivers/gpu/ipu-v3/ |
H A D | ipu-di.c | 508 u32 diff; in ipu_di_adjust_videomode() local 520 diff = 2 - mode->vfront_porch; in ipu_di_adjust_videomode() 522 if (mode->vback_porch >= diff) { in ipu_di_adjust_videomode() 524 mode->vback_porch -= diff; in ipu_di_adjust_videomode() 525 } else if (mode->vsync_len > diff) { in ipu_di_adjust_videomode() 527 mode->vsync_len = mode->vsync_len - diff; in ipu_di_adjust_videomode()
|
/kernel/linux/linux-6.6/drivers/iio/ |
H A D | industrialio-gts-helper.c | 783 int i, diff = 0; in iio_find_closest_gain_low() local 795 if (!diff) { in iio_find_closest_gain_low() 796 diff = gain - gts->hwgain_table[i].gain; in iio_find_closest_gain_low() 801 if (tmp < diff) { in iio_find_closest_gain_low() 802 diff = tmp; in iio_find_closest_gain_low() 816 if (!diff) { in iio_find_closest_gain_low()
|
/kernel/linux/linux-6.6/drivers/infiniband/sw/rxe/ |
H A D | rxe_comp.c | 185 s32 diff; in check_psn() local 190 diff = psn_compare(pkt->psn, wqe->last_psn); in check_psn() 191 if (diff > 0) { in check_psn() 204 diff = psn_compare(pkt->psn, qp->comp.psn); in check_psn() 205 if (diff < 0) { in check_psn() 217 } else if ((diff > 0) && (wqe->mask & WR_ATOMIC_OR_READ_MASK)) { in check_psn()
|
/kernel/linux/linux-6.6/net/sctp/ |
H A D | auth.c | 151 int diff; in sctp_auth_compare_vectors() local 155 diff = vector1->len - vector2->len; in sctp_auth_compare_vectors() 156 if (diff) { in sctp_auth_compare_vectors() 157 longer = (diff > 0) ? vector1->data : vector2->data; in sctp_auth_compare_vectors() 163 for (i = 0; i < abs(diff); i++) { in sctp_auth_compare_vectors() 165 return diff; in sctp_auth_compare_vectors()
|
/third_party/ffmpeg/libavfilter/ |
H A D | src_movie.c | 526 int64_t diff = frame->pts - st->last_pts; in movie_push_frame() local 527 if (diff < 0 || diff > st->discontinuity_threshold) { in movie_push_frame() 528 av_log(ctx, AV_LOG_VERBOSE, "Discontinuity in stream:%d diff:%"PRId64"\n", out_id, diff); in movie_push_frame() 529 movie->ts_offset += av_rescale_q_rnd(-diff, outlink->time_base, AV_TIME_BASE_Q, AV_ROUND_UP); in movie_push_frame() 530 frame->pts -= diff; in movie_push_frame()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | ICUBinary.java | 371 int diff = key.charAt(i) - c2; in compareKeys() 372 if (diff != 0) { in compareKeys() 373 return diff; in compareKeys() 390 int diff = key.charAt(i) - c2; in compareKeys() 391 if (diff != 0) { in compareKeys() 392 return diff; in compareKeys()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | ICUBinary.java | 375 int diff = key.charAt(i) - c2; in compareKeys() 376 if (diff != 0) { in compareKeys() 377 return diff; in compareKeys() 394 int diff = key.charAt(i) - c2; in compareKeys() 395 if (diff != 0) { in compareKeys() 396 return diff; in compareKeys()
|
/third_party/libabigail/tools/ |
H A D | abicompat.cc | 290 /// Create the context of a diff. 292 /// Create the diff context, initialize it and return a smart pointer 297 /// @return a smart pointer to the newly created diff context. 339 /// @param ctxt the context of the diff to be performed. 439 function_type_diff_sptr diff; member 448 diff(difference) in fn_change() 458 diff_sptr diff; member 467 diff(difference) in var_change() 591 i->diff->report(cout, " "); in perform_compat_check_in_weak_mode() 635 i->diff in perform_compat_check_in_weak_mode() [all...] |
/third_party/pulseaudio/sonic/ |
H A D | Sonic.java | 526 int diff = 0; in findPitchPeriodInRange() 530 diff += sVal >= pVal? sVal - pVal : pVal - sVal; in findPitchPeriodInRange() 532 /* Note that the highest number of samples we add into diff will be less in findPitchPeriodInRange() 533 than 256, since we skip samples. Thus, diff is a 24 bit number, and in findPitchPeriodInRange() 535 if(diff*bestPeriod < minDiff*period) { in findPitchPeriodInRange() 536 minDiff = diff; in findPitchPeriodInRange() 539 if(diff*worstPeriod > maxDiff*period) { in findPitchPeriodInRange() 540 maxDiff = diff; in findPitchPeriodInRange()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | angletypes_unittest.cpp | 119 const gl::DrawBufferMask diff = blendStateExt.compareColorMask(otherColorMask); in TEST() local 120 ASSERT_EQ(diff.to_ulong(), 23u); in TEST() 147 const gl::DrawBufferMask diff = in TEST() local 149 ASSERT_EQ(diff.to_ulong(), 40u); in TEST() 197 const gl::DrawBufferMask diff = in TEST() local 199 ASSERT_EQ(diff.to_ulong(), 169u); in TEST()
|
/third_party/skia/src/core/ |
H A D | SkImageFilterTypes.h | 145 LayerSpace<IVector> diff = *this; in operator -() local 146 diff -= v; in operator -() 147 return diff; in operator -() 193 LayerSpace<Vector> diff = *this; in operator -() local 194 diff -= v; in operator -() 195 return diff; in operator -()
|
/kernel/linux/linux-5.10/block/ |
H A D | blk-timeout.c | 154 unsigned long diff = q->timeout.expires - expiry; in blk_add_timer() local 163 if (!timer_pending(&q->timeout) || (diff >= HZ / 2)) in blk_add_timer()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
H A D | intel_llc.c | 84 const int diff = consts->max_gpu_freq - gpu_freq; in calc_ia_freq() local 115 ia_freq = consts->max_ia_freq - diff * scale / 2; in calc_ia_freq()
|
/kernel/linux/linux-6.6/block/ |
H A D | blk-timeout.c | 154 unsigned long diff = q->timeout.expires - expiry; in blk_add_timer() local 163 if (!timer_pending(&q->timeout) || (diff >= HZ / 2)) in blk_add_timer()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/ |
H A D | intel_llc.c | 79 const int diff = consts->max_gpu_freq - gpu_freq; in calc_ia_freq() local 110 ia_freq = consts->max_ia_freq - diff * scale / 2; in calc_ia_freq()
|
/third_party/ffmpeg/libavcodec/ |
H A D | huffyuvdsp.c | 42 static void add_hfyu_median_pred_int16_c(uint16_t *dst, const uint16_t *src, const uint16_t *diff, unsigned mask, int w, int *left, int *left_top){ in add_hfyu_median_pred_int16_c() argument 50 l = (mid_pred(l, src[i], (l + src[i] - lt) & mask) + diff[i]) & mask; in add_hfyu_median_pred_int16_c()
|
H A D | lossless_videodsp.c | 43 const uint8_t *diff, ptrdiff_t w, in add_median_pred_c() 53 l = mid_pred(l, src1[i], (l + src1[i] - lt) & 0xFF) + diff[i]; in add_median_pred_c() 42 add_median_pred_c(uint8_t *dst, const uint8_t *src1, const uint8_t *diff, ptrdiff_t w, int *left, int *left_top) add_median_pred_c() argument
|
/third_party/ltp/testcases/commands/gzip/ |
H A D | gzip_tests.sh | 94 diff -w -B tst_gzip.out tst_gzip.exp > tst_gzip.err 2>&1 140 diff -w -B tst_gzip.out tst_gzip.exp > tst_gzip.err 2>&1
|
/third_party/node/deps/npm/node_modules/diff/lib/patch/ |
H A D | parse.js | 22 list.push(index); // Parse diff metadata 25 var line = diffstr[i]; // File header found, end parsing diff metadata 32 var header = /^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(line); 39 } // Parse file headers if they are defined. Unified diff requires them, but 51 if (/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(_line)) {
|
/third_party/skia/tools/fonts/ |
H A D | generate_fir_coeff.py | 118 coeff_pkg = [IndexTracker(i, diff) for i, diff in enumerate(coeff_diff)]
|