/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-snvs.c | 67 s64 diff; in rtc_read_lp_counter() local 78 diff = read1 - read2; in rtc_read_lp_counter() 79 } while (((diff < 0) || (diff > MAX_RTC_READ_DIFF_CYCLES)) && --timeout); in rtc_read_lp_counter() 91 s32 diff; in rtc_read_lp_counter_lsb() local 98 diff = count1 - count2; in rtc_read_lp_counter_lsb() 99 } while (((diff < 0) || (diff > MAX_RTC_READ_DIFF_CYCLES)) && --timeout); in rtc_read_lp_counter_lsb()
|
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_alloc_btree.c | 251 int64_t diff; in xfs_cntbt_key_diff() local 253 diff = (int64_t)be32_to_cpu(kp->ar_blockcount) - rec->ar_blockcount; in xfs_cntbt_key_diff() 254 if (diff) in xfs_cntbt_key_diff() 255 return diff; in xfs_cntbt_key_diff() 276 int64_t diff; in xfs_cntbt_diff_two_keys() local 278 diff = be32_to_cpu(k1->alloc.ar_blockcount) - in xfs_cntbt_diff_two_keys() 280 if (diff) in xfs_cntbt_diff_two_keys() 281 return diff; in xfs_cntbt_diff_two_keys()
|
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-snvs.c | 67 s64 diff; in rtc_read_lp_counter() local 78 diff = read1 - read2; in rtc_read_lp_counter() 79 } while (((diff < 0) || (diff > MAX_RTC_READ_DIFF_CYCLES)) && --timeout); in rtc_read_lp_counter() 91 s32 diff; in rtc_read_lp_counter_lsb() local 98 diff = count1 - count2; in rtc_read_lp_counter_lsb() 99 } while (((diff < 0) || (diff > MAX_RTC_READ_DIFF_CYCLES)) && --timeout); in rtc_read_lp_counter_lsb()
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_bwdif.c | 76 int diff = FFMAX3(temporal_diff0 >> 1, temporal_diff1, temporal_diff2); \ 78 if (!diff) { \ 89 diff = FFMAX3(diff, min, -max); 109 if (interpol > d + diff) \ 110 interpol = d + diff; \ 111 else if (interpol < d - diff) \ 112 interpol = d - diff; \
|
/third_party/libabigail/include/ |
H A D | abg-suppression.h | 39 /// how to drop reports about a particular diff node on the floor, if 107 suppresses_diff(const diff*) const = 0; 145 /// Specifies under which condition reports about a type diff node 171 /// The different ways through which the type diff has been reached. 174 /// The type diff has been reached (from a function or variable 178 /// The type diff has been reached (from a function or variable 182 /// The type diff has been reached (from a function or variable 186 /// The type diff has been reached (from a function or variable 277 suppresses_diff(const diff* diff) cons [all...] |
/third_party/python/Lib/test/ |
H A D | double_const.py | 23 diff = abs(x - x2) 24 # If diff is no larger than 3 ULP (wrt x2), then diff/8 is no larger 25 # than 0.375 ULP, so adding diff/8 to x2 should have no effect. 26 if x2 + (diff / 8.) != x2:
|
/third_party/jerryscript/jerry-core/parser/js/ |
H A D | js-scanner-util.c | 614 intptr_t diff = (intptr_t) (literal_p->char_p - prev_source_p); in scanner_pop_literal_pool() local 616 if (diff >= 1 && diff <= UINT8_MAX) in scanner_pop_literal_pool() 620 else if (diff >= -UINT8_MAX && diff <= UINT16_MAX) in scanner_pop_literal_pool() 876 intptr_t diff = (intptr_t) (literal_p->char_p - prev_source_p); in scanner_pop_literal_pool() local 878 if (diff >= 1 && diff <= UINT8_MAX) in scanner_pop_literal_pool() 880 data_p[-1] = (uint8_t) diff; in scanner_pop_literal_pool() 882 else if (diff > in scanner_pop_literal_pool() 1932 int32_t diff = ((int32_t) data_p[2]) | ((int32_t) data_p[3]) << 8; scanner_check_variables() local 2079 int32_t diff = ((int32_t) data_p[2]) | ((int32_t) data_p[3]) << 8; scanner_create_variables() local [all...] |
/third_party/node/deps/icu-small/source/tools/genrb/ |
H A D | reslist.cpp | 209 int diff; in add() local 215 diff = uprv_strcmp(currentKeyString, resKeyString); in add() 217 diff = uprv_compareInvCharsAsAscii(currentKeyString, resKeyString); in add() 219 if (diff < 0) { in add() 222 } else if (diff > 0) { in add() 1320 int32_t diff; in compareKeySuffixes() local 1325 diff = (int32_t)(uint8_t)*--lLimit - (int32_t)(uint8_t)*--rLimit; in compareKeySuffixes() 1326 if (diff != 0) { in compareKeySuffixes() 1327 return diff; in compareKeySuffixes() 1331 diff in compareKeySuffixes() 1513 int32_t diff; compareStringSuffixes() local 1529 int32_t diff; compareStringLengths() local [all...] |
/third_party/icu/icu4c/source/tools/genrb/ |
H A D | reslist.cpp | 209 int diff; in add() local 215 diff = uprv_strcmp(currentKeyString, resKeyString); in add() 217 diff = uprv_compareInvCharsAsAscii(currentKeyString, resKeyString); in add() 219 if (diff < 0) { in add() 222 } else if (diff > 0) { in add() 1320 int32_t diff; in compareKeySuffixes() local 1325 diff = (int32_t)(uint8_t)*--lLimit - (int32_t)(uint8_t)*--rLimit; in compareKeySuffixes() 1326 if (diff != 0) { in compareKeySuffixes() 1327 return diff; in compareKeySuffixes() 1331 diff in compareKeySuffixes() 1513 int32_t diff; compareStringSuffixes() local 1529 int32_t diff; compareStringLengths() local [all...] |
/third_party/skia/third_party/externals/icu/source/tools/genrb/ |
H A D | reslist.cpp | 209 int diff; in add() local 215 diff = uprv_strcmp(currentKeyString, resKeyString); in add() 217 diff = uprv_compareInvCharsAsAscii(currentKeyString, resKeyString); in add() 219 if (diff < 0) { in add() 222 } else if (diff > 0) { in add() 1328 int32_t diff; in compareKeySuffixes() local 1333 diff = (int32_t)(uint8_t)*--lLimit - (int32_t)(uint8_t)*--rLimit; in compareKeySuffixes() 1334 if (diff != 0) { in compareKeySuffixes() 1335 return diff; in compareKeySuffixes() 1339 diff in compareKeySuffixes() 1521 int32_t diff; compareStringSuffixes() local 1537 int32_t diff; compareStringLengths() local [all...] |
/third_party/libabigail/src/ |
H A D | abg-leaf-reporter.cc | 23 /// Test if a diff node is to be reported by the current instance of 30 leaf_reporter::diff_to_be_reported(const diff *d) const in diff_to_be_reported() 568 diff_sptr diff = *i; in report() local 569 if (!diff_to_be_reported(diff.get())) in report() 575 diff->report(out, indent + " "); in report() 748 diff_sptr diff = d.compatible_child_diff(); in report() local 750 string compatible = diff ? " to compatible type '": " to '"; in report() 1134 diff_sptr diff = *i; in report() local 1135 if (!diff) in report() 1138 if (diff_to_be_reported(diff in report() 1279 diff_sptr diff = *i; report() local [all...] |
/third_party/littlefs/ |
H A D | lfs.c | 55 lfs_size_t diff = size; in lfs_bd_read() local 61 diff = lfs_min(diff, pcache->size - (off-pcache->off)); in lfs_bd_read() 62 memcpy(data, &pcache->buffer[off-pcache->off], diff); in lfs_bd_read() 64 data += diff; in lfs_bd_read() 65 off += diff; in lfs_bd_read() 66 size -= diff; in lfs_bd_read() 71 diff = lfs_min(diff, pcache->off-off); in lfs_bd_read() 78 diff in lfs_bd_read() 132 lfs_size_t diff = 0; lfs_bd_cmp() local 157 lfs_size_t diff = 0; lfs_bd_crc() local 180 lfs_size_t diff = lfs_alignup(pcache->size, lfs->cfg->prog_size); lfs_bd_flush() local 240 lfs_size_t diff = lfs_min(size, lfs_bd_prog() local 731 lfs_size_t diff = lfs_min(lfs_tag_size(tag), gsize); lfs_dir_getslice() local 765 lfs_size_t diff = size; lfs_dir_getread() local 867 int16_t diff; global() member 877 lfs_dir_traverse(lfs_t *lfs, const lfs_mdir_t *dir, lfs_off_t off, lfs_tag_t ptag, const struct lfs_mattr *attrs, int attrcount, lfs_tag_t tmask, lfs_tag_t ttag, uint16_t begin, uint16_t end, int16_t diff, int (*cb)(void *data, lfs_tag_t tag, const void *buffer), void *data) lfs_dir_traverse() argument 1424 lfs_size_t diff = lfs_min(name->size, lfs_tag_size(tag)); lfs_dir_find_match() local 2787 int diff = lfs_min(dir->m.count - dir->id, off); lfs_dir_rawseek() local 3452 lfs_size_t diff = lfs_min(nsize, lfs->cfg->block_size - file->off); global() local 3555 lfs_size_t diff = lfs_min(nsize, lfs->cfg->block_size - file->off); global() local [all...] |
/third_party/cJSON/ |
H A D | cJSON_Utils.c | 1244 int diff; in create_patches() local 1247 diff = 1; in create_patches() 1251 diff = -1; in create_patches() 1255 diff = compare_strings((unsigned char*)from_child->string, (unsigned char*)to_child->string, case_sensitive); in create_patches() 1258 if (diff == 0) in create_patches() 1275 else if (diff < 0) in create_patches() 1435 int diff; in generate_merge_patch() local 1440 diff = strcmp(from_child->string, to_child->string); in generate_merge_patch() 1444 diff = -1; in generate_merge_patch() 1449 diff in generate_merge_patch() [all...] |
/third_party/cJSON/tests/unity/src/ |
H A D | unity.c | 680 #define UNITY_FLOAT_OR_DOUBLE_WITHIN(delta, expected, actual, diff) \ 683 diff = actual - expected; \ 684 if (diff < 0) diff = -diff; \ 686 return !(isnan(diff) || isinf(diff) || (diff > delta)) 708 UNITY_FLOAT diff; in UnityFloatsWithin() local 709 UNITY_FLOAT_OR_DOUBLE_WITHIN(delta, expected, actual, diff); in UnityFloatsWithin() 838 UNITY_DOUBLE diff; UnityDoublesWithin() local [all...] |
/kernel/linux/linux-5.10/include/linux/iio/ |
H A D | events.h | 15 * @diff: Whether the event is for an differential channel or not. 24 #define IIO_EVENT_CODE(chan_type, diff, modifier, direction, \ 26 (((u64)type << 56) | ((u64)diff << 55) | \
|
/kernel/linux/linux-6.6/include/linux/iio/ |
H A D | events.h | 15 * @diff: Whether the event is for an differential channel or not. 24 #define IIO_EVENT_CODE(chan_type, diff, modifier, direction, \ 26 (((u64)type << 56) | ((u64)diff << 55) | \
|
/third_party/ffmpeg/libavcodec/tests/ |
H A D | celp_math.c | 24 float diff = fabsf(A - B); in IsAlmostEqual() local 28 av_assert0(diff <= largest * epsilon); in IsAlmostEqual()
|
/third_party/node/deps/v8/tools/testrunner/outproc/ |
H A D | mkgrokdump.py | 20 diff = difflib.unified_diff(expected_lines, actual_lines, lineterm="", 22 diffstring = '\n'.join(diff)
|
/third_party/node/test/parallel/ |
H A D | test-process-hrtime.js | 73 const diff = process.hrtime([0, 1e9 - 1]); 74 assert(diff[1] >= 0); // https://github.com/nodejs/node/issues/4751
|
/kernel/linux/linux-5.10/drivers/gpu/drm/via/ |
H A D | via_dma.c | 414 uint32_t diff; in via_hook_segment() local 437 diff = (uint32_t) (ptr - reader) - dev_priv->dma_diff; in via_hook_segment() 439 while (diff == 0 && count--) { in via_hook_segment() 444 diff = (uint32_t) (ptr - reader) - dev_priv->dma_diff; in via_hook_segment() 451 diff = (uint32_t) (ptr - reader) - dev_priv->dma_diff; in via_hook_segment() 452 diff &= (dev_priv->dma_high - 1); in via_hook_segment() 453 if (diff != 0 && diff < (dev_priv->dma_high >> 1)) { in via_hook_segment() 457 } else if (diff == 0) { in via_hook_segment()
|
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/ |
H A D | davinci_nand.c | 141 uint32_t diff = eccCalc ^ eccNand; in nand_davinci_correct_1bit() local 143 if (diff) { in nand_davinci_correct_1bit() 144 if ((((diff >> 12) ^ diff) & 0xfff) == 0xfff) { in nand_davinci_correct_1bit() 146 if ((diff >> (12 + 3)) < chip->ecc.size) { in nand_davinci_correct_1bit() 147 dat[diff >> (12 + 3)] ^= BIT((diff >> 12) & 7); in nand_davinci_correct_1bit() 152 } else if (!(diff & (diff - 1))) { in nand_davinci_correct_1bit()
|
/third_party/astc-encoder/Source/ |
H A D | astcenc_find_best_partitioning.cpp | 83 vfloat4 diff = color - center_color; in kmeans_init() local 84 float distance = dot_s(diff * diff, blk.channel_weight); in kmeans_init() 128 vfloat4 diff = color - center_color; in kmeans_init() local 129 float distance = dot_s(diff * diff, blk.channel_weight); in kmeans_init() 167 vfloat4 diff = color - cluster_centers[j]; in kmeans_assign() local 168 float distance = dot_s(diff * diff, blk.channel_weight); in kmeans_assign()
|
/third_party/mbedtls/library/ |
H A D | nist_kw.c | 327 int diff; in mbedtls_nist_kw_unwrap() local 354 diff = mbedtls_ct_memcmp(NIST_KW_ICV1, A, KW_SEMIBLOCK_LENGTH); in mbedtls_nist_kw_unwrap() 356 if (diff != 0) { in mbedtls_nist_kw_unwrap() 398 diff = mbedtls_ct_memcmp(NIST_KW_ICV2, A, KW_SEMIBLOCK_LENGTH / 2); in mbedtls_nist_kw_unwrap() 400 if (diff != 0) { in mbedtls_nist_kw_unwrap() 418 diff = mbedtls_ct_memcmp_partial( in mbedtls_nist_kw_unwrap() 422 if (diff != 0) { in mbedtls_nist_kw_unwrap() 442 mbedtls_platform_zeroize(&diff, sizeof(diff)); in mbedtls_nist_kw_unwrap()
|
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | btrfs.h | 1693 s64 diff, int type), 1695 TP_ARGS(fs_info, qgroup, diff, type), 1700 __field( s64, diff ) 1707 __entry->diff = diff; 1711 TP_printk_btrfs("qgid=%llu type=%s cur_reserved=%llu diff=%lld", 1713 __entry->cur_reserved, __entry->diff) 1718 TP_PROTO(struct btrfs_root *root, s64 diff, int type), 1720 TP_ARGS(root, diff, type), 1724 __field( s64, diff ) [all...] |
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | btrfs.h | 1861 s64 diff, int type), 1863 TP_ARGS(fs_info, qgroup, diff, type), 1868 __field( s64, diff ) 1875 __entry->diff = diff; 1879 TP_printk_btrfs("qgid=%llu type=%s cur_reserved=%llu diff=%lld", 1881 __entry->cur_reserved, __entry->diff) 1886 TP_PROTO(struct btrfs_root *root, s64 diff, int type), 1888 TP_ARGS(root, diff, type), 1892 __field( s64, diff ) [all...] |