| /third_party/mindspore/test/utils/ |
| H A D | common.cpp | 146 sum = sum + fabs(a[i] - b[i]) / (atol + rtol * fabs(b[i])); in allclose() 147 sum_all = sum_all + fabs(a[i] - b[i]) / (atol + rtol * fabs(b[i])); in allclose() 148 maximum = std::max(maximum, fabs(a[i] - b[i]) / (atol + rtol * fabs(b[i]))); in allclose() 149 minimum = std::min(minimum, fabs(a[i] - b[i]) / (atol + rtol * fabs(b[i]))); in allclose() 156 } else if (fabs(a[i] - b[i]) > (atol + rtol * fabs( in allclose() [all...] |
| /third_party/ffmpeg/tests/checkasm/ |
| H A D | af_afir.c | 62 double t = fabs(src0[i]) + in test_fcmul_add() 63 fabs(tre) + fabs(tim) + fabs(cre) + fabs(cim) + in test_fcmul_add() 64 fabs(tre * cre) + fabs(tim * cim) + in test_fcmul_add() 65 fabs(tre * cim) + fabs(tim * cre) + in test_fcmul_add() 66 fabs(tr in test_fcmul_add() [all...] |
| H A D | float_dsp.c | 56 double t = fabs(src0[i]) + fabs(src1[i]) + fabs(src0[i] * src1[i]) + 1.0; in test_vector_fmul() 79 double t = fabs(src0[i]) + fabs(src1[i]) + fabs(src0[i] * src1[i]) + 1.0; in test_vector_dmul() 124 double t = fabs(src0[i]) + fabs(src1[0]) + fabs(src0[i] * src1[0]) + 1.0; in test_vector_fmul_scalar() 195 double t = fabs(src in test_vector_dmul_scalar() [all...] |
| /third_party/skia/src/pathops/ |
| H A D | SkPathOpsTypes.h | 331 return fabs(x) < FLT_EPSILON; in approximately_zero() 335 return fabs(x) < DBL_EPSILON_ERR; in precisely_zero() 339 return fabs(x) < DBL_EPSILON_SUBDIVIDE_ERR; in precisely_subdivide_zero() 343 return fabs(x) < FLT_EPSILON; in approximately_zero() 347 return fabs(x) < FLT_EPSILON_CUBED; in approximately_zero_cubed() 351 return fabs(x) < FLT_EPSILON_HALF; in approximately_zero_half() 355 return fabs(x) < FLT_EPSILON_DOUBLE; in approximately_zero_double() 359 return fabs(x) < FLT_EPSILON_ORDERABLE_ERR; in approximately_zero_orderable() 363 return fabs(x) < FLT_EPSILON_SQUARED; in approximately_zero_squared() 367 return fabs( in approximately_zero_sqrt() [all...] |
| H A D | SkPathOpsTypes.cpp | 123 if (fabs(a) < SK_ScalarMax && fabs(b) < SK_ScalarMax) { in AlmostDequalUlps() 126 return fabs(a - b) / std::max(fabs(a), fabs(b)) < FLT_EPSILON * 16; in AlmostDequalUlps() 224 double result = halley_cbrt3d(fabs(x)); in SkDCubeRoot()
|
| /third_party/lame/libmp3lame/ |
| H A D | machine.h | 170 (fabs(a) > fabs(b)) \ 171 ? (fabs((a)-(b)) <= (fabs(a) * 1e-6f)) \ 172 : (fabs((a)-(b)) <= (fabs(b) * 1e-6f))) 174 #define EQ(a,b) (fabs((a)-(b))<1E-37) 181 # define fabsf fabs
|
| /third_party/libsnd/src/G72x/ |
| H A D | g72x_test.c | 177 if (fabs (orig) <= 500.0) in error_function() 178 error = fabs (fabs (data) - fabs (orig)) / 2000.0 ; in error_function() 179 else if (fabs (orig) <= 1000.0) in error_function() 180 error = fabs (data - orig) / 3000.0 ; in error_function() 182 error = fabs (data - orig) / fabs (orig) ; in error_function()
|
| /third_party/skia/third_party/externals/libpng/contrib/libtests/ |
| H A D | tarith.c | 189 double change = fabs((out - test)/test); in validation_ascii_to_fp() 201 fabs(test/DBL_MAX) <= 1-allow)) in validation_ascii_to_fp() 796 if (i != 0 && fabs(error) > maxerr) in validation_gamma() 797 maxerr = fabs(error); in validation_gamma() 816 if (i != 0 && fabs(error) > maxerr) in validation_gamma() 817 maxerr = fabs(error); in validation_gamma() 840 if (fabs(error) > maxerr) in validation_gamma() 841 maxerr = fabs(error); in validation_gamma() 842 if (fabs(error) > 1883) /* By experiment. */ in validation_gamma() 858 if (fabs(erro in validation_gamma() [all...] |
| /third_party/jerryscript/jerry-libm/ |
| H A D | cosh.c | 75 t = expm1 (fabs (x)); in cosh() 88 t = exp (fabs (x)); in cosh() 95 return half * exp (fabs (x)); in cosh() 102 w = exp (half * fabs (x)); in cosh()
|
| H A D | asinh.c | 69 w = log (fabs (x)) + ln2; in asinh() 74 t = fabs (x); in asinh() 81 w = log1p (fabs (x) + t / (one + sqrt (one + t))); in asinh()
|
| H A D | sinh.c | 87 t = expm1 (fabs (x)); in sinh() 98 return h * exp (fabs (x)); in sinh() 104 w = exp (0.5 * fabs (x)); in sinh()
|
| /third_party/musl/src/math/i386/ |
| H A D | hypot.s | 14 fabs 21 fabs 36 fabs 44 fabs
|
| H A D | hypotf.s | 14 fabs 20 fabs 34 fabs 41 fabs
|
| H A D | acos.s | 1 # use acos(x) = atan2(fabs(sqrt((1-x)*(1+x))), x) 13 fabs # fix sign of zero (matters in downward rounding mode)
|
| /third_party/musl/src/complex/ |
| H A D | csqrt.c | 69 return CMPLX(fabs(b - b), copysign(a, b)); in csqrt() 79 if (fabs(a) >= THRESH || fabs(b) >= THRESH) { in csqrt() 93 result = CMPLX(fabs(b) / (2 * t), copysign(t, b)); in csqrt()
|
| /third_party/python/Modules/ |
| H A D | mathmodule.c | 122 y = fmod(fabs(x), 2.0); in m_sinpi() 329 absx = fabs(x); in m_tgamma() 426 absx = fabs(x); in m_lgamma() 427 /* tiny arguments: lgamma(x) ~ -log(fabs(x)) for small x */ in m_lgamma() 439 r = logpi - log(fabs(m_sinpi(absx))) - log(absx) - r; in m_lgamma() 570 absx = fabs(x); in m_erf() 592 absx = fabs(x); in m_erfc() 654 absx = fabs(x); in m_remainder() 655 absy = fabs(y); in m_remainder() 996 if (fabs( in is_error() [all...] |
| /third_party/musl/src/math/x32/ |
| H A D | fabs.s | 1 .global fabs 2 .type fabs,@function 3 fabs: label
|
| /third_party/libsnd/src/ |
| H A D | test_float.c | 50 if (fabs (data [k] - test) > 1e-20) in test_float_convert() 58 if (fabs (data [k] - test) > 1e-20) in test_float_convert() 87 if (fabs (data [k] - test) > 1e-20) in test_double_convert() 95 if (fabs (data [k] - test) > 1e-20) in test_double_convert()
|
| /third_party/libinput/test/ |
| H A D | check-double-macros.h | 42 ck_assert_msg(fabs(_ck_x - _ck_y) < epsilon, \ 53 ck_assert_msg(fabs(_ck_x - _ck_y) > epsilon, \ 70 fabs(_ck_x - _ck_y) < CK_DOUBLE_EQ_EPSILON, \ 82 fabs(_ck_x - _ck_y) > CK_DOUBLE_EQ_EPSILON, \
|
| /third_party/libsnd/tests/ |
| H A D | fix_this.c | 321 if (fabs (orig) <= 500.0) in error_function() 322 error = fabs (fabs (data) - fabs (orig)) / 2000.0 ; in error_function() 323 else if (fabs (orig) <= 1000.0) in error_function() 324 error = fabs (data - orig) / 3000.0 ; in error_function() 326 error = fabs (data - orig) / fabs (orig) ; in error_function()
|
| /third_party/ffmpeg/libavfilter/ |
| H A D | af_alimiter.c | 172 peak = FFMAX(peak, fabs(sample)); in filter_frame() 199 ppeak = fabs(buffer[nextpos[j]]) > fabs(buffer[nextpos[j] + 1]) ? in filter_frame() 200 fabs(buffer[nextpos[j]]) : fabs(buffer[nextpos[j] + 1]); in filter_frame() 223 peak = FFMAX(peak, fabs(sample)); in filter_frame() 245 double ppeak = fabs(buffer[pnextpos]) > fabs(buffer[pnextpos + 1]) ? in filter_frame() 246 fabs(buffer[pnextpos]) : in filter_frame() 247 fabs(buffe in filter_frame() [all...] |
| H A D | window_func.h | 74 lut[n] = 1.-fabs((n-(N-1)/2.)/((N-1)/2.)); in generate_window_func() 118 lut[n] = 0.62-0.48*fabs(n/(double)(N-1)-.5)-0.38*cos(2*M_PI*n/(N-1)); in generate_window_func() 174 lut[n] = FFMIN(1, fabs(1/(1+4*16*x*x))); in generate_window_func() 215 lut[n] = (1 - fabs(x)) * cos(M_PI*fabs(x)) + 1./M_PI*sin(M_PI*fabs(x)); in generate_window_func()
|
| /third_party/ffmpeg/libavutil/ |
| H A D | pca.c | 105 sum += fabs(pca->covariance[j + i*n]); in ff_pca() 132 if(pass < 3 && fabs(covar) < sum / (5*n*n)) //FIXME why pass < 3 in ff_pca() 134 if(fabs(covar) == 0.0) //FIXME should not be needed in ff_pca() 136 if(pass >=3 && fabs((eigenvalue[j]+z[j])/covar) > (1LL<<32) && fabs((eigenvalue[i]+z[i])/covar) > (1LL<<32)){ in ff_pca() 143 t=1.0/(fabs(theta)+sqrt(1.0+theta*theta)); in ff_pca()
|
| /third_party/mesa3d/src/compiler/nir/ |
| H A D | nir_scale_fdiv.c | 39 nir_ssa_def *fabs = nir_fabs(b, alu->src[1].src.ssa); in nir_scale_fdiv_instr() local 40 nir_ssa_def *big = nir_flt(b, nir_imm_int(b, 0x7e800000), fabs); in nir_scale_fdiv_instr() 41 nir_ssa_def *small = nir_flt(b, fabs, nir_imm_int(b, 0x00800000)); in nir_scale_fdiv_instr()
|
| /third_party/vk-gl-cts/external/openglcts/modules/glesext/geometry_shader/ |
| H A D | esextcGeometryShaderQualifiers.cpp | 252 if (fabs(result_bo_data[0] - 1.0f) >= 1e-5f || fabs(result_bo_data[1] - 1.0f) >= 1e-5f || in iterate() 253 fabs(result_bo_data[2] - 1.0f) >= 1e-5f || fabs(result_bo_data[3] - 1.0f) >= 1e-5f) in iterate()
|