/third_party/boost/boost/chrono/ |
D | round.hpp | 31 result_type diff1; in round() local 38 diff1 = d - t1; in round() 42 diff1 = t1 - d; in round() 45 if (diff0 == diff1) in round() 51 else if (diff0 < diff1) in round()
|
/third_party/mindspore/tests/st/ops/gpu/ |
D | test_assign_op.py | 49 diff1 = output.asnumpy() - value 51 assert np.all(diff1 < error) 52 assert np.all(-diff1 < error) 67 diff1 = output.asnumpy() - value 69 assert np.all(diff1 < error) 70 assert np.all(-diff1 < error)
|
D | test_log_op.py | 54 diff1 = output1.asnumpy() - expect1 55 assert np.all(diff1 < error1) 65 diff1 = output1.asnumpy() - expect1 66 assert np.all(diff1 < error1)
|
D | test_reciprocal_op.py | 54 diff1 = output1.asnumpy() - expect1 55 assert np.all(diff1 < error1) 65 diff1 = output1.asnumpy() - expect1 66 assert np.all(diff1 < error1)
|
D | test_exp_op.py | 54 diff1 = output1.asnumpy() - expect1 55 assert np.all(diff1 < error1) 65 diff1 = output1.asnumpy() - expect1 66 assert np.all(diff1 < error1)
|
D | test_sigmoid_grad_grad_op.py | 73 diff1 = d2x.asnumpy() - expect_d2x 75 assert np.all(abs(diff1) < error) 81 diff1 = d2x.asnumpy() - expect_d2x 83 assert np.all(abs(diff1) < error)
|
D | test_neg_op.py | 51 diff1 = output1.asnumpy() - expect1 52 assert np.all(diff1 < error1) 62 diff1 = output1.asnumpy() - expect1 63 assert np.all(diff1 < error1)
|
D | test_oneslike_op.py | 59 diff1 = output1.asnumpy() - expect1 61 assert np.all(diff1 < error1) 75 diff1 = output1.asnumpy() - expect1 77 assert np.all(diff1 < error1)
|
D | test_smoothl1loss_op.py | 100 diff1 = np.absolute(dx[0].asnumpy() - np.array(dx1_expect)) 102 assert(diff1 < epsilon).all() 116 diff1 = np.absolute(dx[0].asnumpy() - np.array(dx1_expect)) 118 assert(diff1 < epsilon).all()
|
D | test_softmax_op.py | 54 diff1 = np.abs(outputSum1 - expect1) 56 assert np.all(diff1 < error1) 64 diff1 = np.abs(outputSum1 - expect1) 66 assert np.all(diff1 < error1)
|
D | test_mul_op.py | 68 diff1 = output1.asnumpy() - expect1 70 assert np.all(diff1 < error1) 105 diff1 = output1.asnumpy() - expect1 107 assert np.all(diff1 < error1) 193 diff1 = output1.asnumpy() - expect1 196 assert np.all(diff1 < error1)
|
D | test_realdiv_op.py | 71 diff1 = output1.asnumpy() - expect1 73 assert np.all(diff1 < error1) 108 diff1 = output1.asnumpy() - expect1 110 assert np.all(diff1 < error1)
|
/third_party/ffmpeg/libavfilter/ |
D | vf_mcdeint.c | 216 int diff1 = filp[+fils] - srcp[+srcs]; in filter_frame() local 236 diff1 = filp[+fils+DELTA(-(j))] - srcp[+srcs+DELTA(-(j))];\ in filter_frame() 243 diff1 = filp[+fils-(j)] - srcp[+srcs-(j)];\ in filter_frame() 256 if (diff0 + diff1 > 0) 257 temp -= (diff0 + diff1 - FFABS(FFABS(diff0) - FFABS(diff1)) / 2) / 2; 259 temp -= (diff0 + diff1 + FFABS(FFABS(diff0) - FFABS(diff1)) / 2) / 2;
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fShaderPackingFunctionTests.cpp | 192 const int diff1 = de::abs((int)ref1 - (int)res1); in iterate() local 194 if (diff0 > maxDiff || diff1 > maxDiff) in iterate() 201 << "\n diffs = (" << diff0 << ", " << diff1 << "), max diff = " << maxDiff in iterate() 281 const deUint32 diff1 = getUlpDiff(ref1, res1); in iterate() local 283 if (diff0 > maxDiff || diff1 > maxDiff) in iterate() 291 << "\n ULP diffs = (" << diff0 << ", " << diff1 << "), max diff = " << maxDiff in iterate() 383 const int diff1 = de::abs((int)ref1 - (int)res1); in iterate() local 385 if (diff0 > maxDiff || diff1 > maxDiff) in iterate() 392 << "\n diffs = (" << diff0 << ", " << diff1 << "), max diff = " << maxDiff in iterate() 472 const deUint32 diff1 = getUlpDiff(ref1, res1); in iterate() local [all …]
|
/third_party/boost/libs/multiprecision/test/ |
D | test_cpp_bin_float_conv.cpp | 46 T diff1 = abs(d1 - val); in check_round() local 48 if (diff2 < diff1) in check_round() 55 std::cout << diff1 << std::endl; in check_round() 59 BOOST_CHECK(diff2 >= diff1); in check_round() 76 diff1 = abs(l1 - val); in check_round() 78 if (diff2 < diff1) in check_round() 85 std::cout << diff1 << std::endl; in check_round() 89 BOOST_CHECK(diff2 >= diff1); in check_round()
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fShaderPackingFunctionTests.cpp | 192 const int diff1 = de::abs((int)ref1 - (int)res1); in iterate() local 194 if (diff0 > maxDiff || diff1 > maxDiff) in iterate() 201 << "\n diffs = (" << diff0 << ", " << diff1 << "), max diff = " << maxDiff in iterate() 281 const deUint32 diff1 = getUlpDiff(ref1, res1); in iterate() local 283 if (diff0 > maxDiff || diff1 > maxDiff) in iterate() 291 << "\n ULP diffs = (" << diff0 << ", " << diff1 << "), max diff = " << maxDiff in iterate() 383 const int diff1 = de::abs((int)ref1 - (int)res1); in iterate() local 385 if (diff0 > maxDiff || diff1 > maxDiff) in iterate() 392 << "\n diffs = (" << diff0 << ", " << diff1 << "), max diff = " << maxDiff in iterate() 472 const deUint32 diff1 = getUlpDiff(ref1, res1); in iterate() local [all …]
|
/third_party/ffmpeg/libavcodec/mips/ |
D | me_cmp_msa.c | 506 v8u16 diff0, diff1, diff2, diff3, diff4, diff5, diff6, diff7; in hadamard_diff_8x8_msa() local 515 diff0, diff1, diff2, diff3, diff4, diff5, diff6, diff7); in hadamard_diff_8x8_msa() 516 HSUB_UB4_UH(diff0, diff1, diff2, diff3, diff0, diff1, diff2, diff3); in hadamard_diff_8x8_msa() 518 TRANSPOSE8x8_UH_UH(diff0, diff1, diff2, diff3, diff4, diff5, diff6, diff7, in hadamard_diff_8x8_msa() 519 diff0, diff1, diff2, diff3, diff4, diff5, diff6, diff7); in hadamard_diff_8x8_msa() 520 BUTTERFLY_8(diff0, diff2, diff4, diff6, diff7, diff5, diff3, diff1, in hadamard_diff_8x8_msa() 523 diff0, diff1, diff4, diff5, diff7, diff6, diff3, diff2); in hadamard_diff_8x8_msa() 524 BUTTERFLY_8(diff0, diff1, diff2, diff3, diff7, diff6, diff5, diff4, in hadamard_diff_8x8_msa() 529 diff0, diff2, diff4, diff6, diff7, diff5, diff3, diff1); in hadamard_diff_8x8_msa() 530 BUTTERFLY_8(diff0, diff1, diff4, diff5, diff7, diff6, diff3, diff2, in hadamard_diff_8x8_msa() [all …]
|
D | hevcpred_msa.c | 942 v8i16 diff0, diff1, diff2, diff3, diff4, diff5, diff6, diff7; in hevc_intra_pred_angular_upper_4width_msa() local 1002 diff1, diff3, diff5, diff7); in hevc_intra_pred_angular_upper_4width_msa() 1004 ILVR_D2_SH(diff3, diff1, diff7, diff5, diff1, diff3); in hevc_intra_pred_angular_upper_4width_msa() 1005 MUL2(diff1, fact0, diff3, fact2, diff1, diff3); in hevc_intra_pred_angular_upper_4width_msa() 1007 diff1 += diff0 * fact1; in hevc_intra_pred_angular_upper_4width_msa() 1010 SRARI_H2_SH(diff1, diff3, 5); in hevc_intra_pred_angular_upper_4width_msa() 1011 dst_val0 = __msa_pckev_b((v16i8) diff3, (v16i8) diff1); in hevc_intra_pred_angular_upper_4width_msa() 1035 v8i16 diff0, diff1, diff2, diff3, diff4, diff5, diff6, diff7; in hevc_intra_pred_angular_upper_8width_msa() local 1092 UNPCK_UB_SH(top0, diff0, diff1); in hevc_intra_pred_angular_upper_8width_msa() 1097 SLDI_B4_SH(diff1, diff0, diff3, diff2, diff5, diff4, diff7, diff6, 2, in hevc_intra_pred_angular_upper_8width_msa() [all …]
|
/third_party/mindspore/tests/st/ops/cpu/ |
D | test_smoothl1loss_op.py | 100 diff1 = np.absolute(dx[0].asnumpy() - np.array(dx1_expect)) 102 assert(diff1 < epsilon).all() 116 diff1 = np.absolute(dx[0].asnumpy() - np.array(dx1_expect)) 118 assert(diff1 < epsilon).all()
|
/third_party/mindspore/tests/st/nccl/ |
D | test_nccl_all_reduce_op.py | 69 diff1 = output[1].asnumpy() - expect1 71 assert np.all(diff1 < error1) 115 diff1 = abs(output[1].asnumpy() - expect1) 117 assert np.all(diff1 < error1) 151 diff1 = abs(output1.asnumpy() - expect1) 153 assert np.all(diff1 < error1)
|
/third_party/icu/icu4c/source/test/cintltst/ |
D | cstrtest.c | 333 int32_t diff1, diff2; in TestCompareInvEbcdicAsAscii() local 335 diff1=getSign(uprv_compareInvEbcdicAsAscii(invStrings[i-1][0], invStrings[i][0])); in TestCompareInvEbcdicAsAscii() 336 if(diff1>0 || (diff1==0 && 0!=uprv_strcmp(invStrings[i-1][0], invStrings[i][0]))) { in TestCompareInvEbcdicAsAscii() 338 invStrings[i-1][1], invStrings[i][1], (short)diff1); in TestCompareInvEbcdicAsAscii() 342 if(diff2!=-diff1) { in TestCompareInvEbcdicAsAscii()
|
/third_party/alsa-lib/test/ |
D | mixtest.c | 228 unsigned long long begin, end, diff, diffS, diff0, diff1, diff1_mmx, diff2; in main() local 283 for (t = 0, diff1 = -1; t < LOOP; t++) { in main() 291 if (diff < diff1) in main() 292 diff1 = diff; in main() 326 printf("mix_areas1 : %8llu %f%%\n", diff1, 100*2*44100.0*diff1/(size*n*cpu_clock)); in main() 331 printf("areas1/srv ratio : %f\n", (double)diff1 / diffS); in main()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/ |
D | vktShaderPackingFunctionTests.cpp | 196 const int diff1 = de::abs((int)ref1 - (int)res1); in iterate() local 198 if (diff0 > maxDiff || diff1 > maxDiff) in iterate() 205 << "\n diffs = (" << diff0 << ", " << diff1 << "), max diff = " << maxDiff in iterate() 303 const deUint32 diff1 = getUlpDiff(ref1, res1); in iterate() local 305 if (diff0 > maxDiff || diff1 > maxDiff) in iterate() 313 << "\n ULP diffs = (" << diff0 << ", " << diff1 << "), max diff = " << maxDiff in iterate() 415 const int diff1 = de::abs((int)ref1 - (int)res1); in iterate() local 417 if (diff0 > maxDiff || diff1 > maxDiff) in iterate() 424 << "\n diffs = (" << diff0 << ", " << diff1 << "), max diff = " << maxDiff in iterate() 522 const deUint32 diff1 = getUlpDiff(ref1, res1); in iterate() local [all …]
|
/third_party/ffmpeg/tests/checkasm/ |
D | llviddsp.c | 80 uint8_t *diff1 = av_mallocz_array(width, sizeof(uint8_t)); in check_add_median_pred() local 86 init_buffer(diff0, diff1, uint8_t, width); in check_add_median_pred() 96 call_new(dst1, src1, diff1, width, &A1, &B1); in check_add_median_pred() 99 bench_new(dst1, src1, diff1, width, &A1, &B1); in check_add_median_pred() 105 av_free(diff1); in check_add_median_pred()
|
/third_party/gstreamer/gstplugins_bad/gst/fieldanalysis/ |
D | gstfieldanalysis.c | 1074 gint diff1, diff2; in block_score_for_row_32detect() local 1076 diff1 = fj[0] - fjm1[0]; in block_score_for_row_32detect() 1079 if ((diff1 > spatial_thresh && diff2 > spatial_thresh) in block_score_for_row_32detect() 1080 || (diff1 < -spatial_thresh && diff2 < -spatial_thresh)) { in block_score_for_row_32detect() 1090 diff1 = fj[idx] - fjm1[idx]; in block_score_for_row_32detect() 1092 if ((diff1 > spatial_thresh && diff2 > spatial_thresh) in block_score_for_row_32detect() 1093 || (diff1 < -spatial_thresh && diff2 < -spatial_thresh)) { in block_score_for_row_32detect() 1161 gint diff1, diff2; in block_score_for_row_iscombed() local 1163 diff1 = fj[0] - fjm1[0]; in block_score_for_row_iscombed() 1166 if ((diff1 > spatial_thresh && diff2 > spatial_thresh) in block_score_for_row_iscombed() [all …]
|