Home
last modified time | relevance | path

Searched refs:fabsf (Results 1 – 25 of 327) sorted by relevance

12345678910>>...14

/external/OpenCL-CTS/test_conformance/math_brute_force/
Dternary_double.cpp388 int fail = !(fabsf(err) <= f->double_ulps); in TestFunc_Double_Double_Double_Double()
411 && ((!(fabsf(err2) <= f->double_ulps)) in TestFunc_Double_Double_Double_Double()
412 && (!(fabsf(err3) <= f->double_ulps))); in TestFunc_Double_Double_Double_Double()
413 if (fabsf(err2) < fabsf(err)) err = err2; in TestFunc_Double_Double_Double_Double()
414 if (fabsf(err3) < fabsf(err)) err = err3; in TestFunc_Double_Double_Double_Double()
444 && ((!(fabsf(err2) <= f->double_ulps)) in TestFunc_Double_Double_Double_Double()
445 && (!(fabsf(err3) <= f->double_ulps)) in TestFunc_Double_Double_Double_Double()
446 && (!(fabsf(err4) <= f->double_ulps)) in TestFunc_Double_Double_Double_Double()
447 && (!(fabsf(err5) <= f->double_ulps))); in TestFunc_Double_Double_Double_Double()
448 if (fabsf(err2) < fabsf(err)) err = err2; in TestFunc_Double_Double_Double_Double()
[all …]
Dternary_float.cpp440 fail = !(fabsf(err) <= float_ulps); in TestFunc_Float_Float_Float_Float()
483 && ((!(fabsf(err2) <= float_ulps)) in TestFunc_Float_Float_Float_Float()
484 && (!(fabsf(err3) <= float_ulps))); in TestFunc_Float_Float_Float_Float()
485 if (fabsf(err2) < fabsf(err)) err = err2; in TestFunc_Float_Float_Float_Float()
486 if (fabsf(err3) < fabsf(err)) err = err3; in TestFunc_Float_Float_Float_Float()
543 && ((!(fabsf(err2) <= float_ulps)) in TestFunc_Float_Float_Float_Float()
544 && (!(fabsf(err3) <= float_ulps)) in TestFunc_Float_Float_Float_Float()
545 && (!(fabsf(err4) <= float_ulps)) in TestFunc_Float_Float_Float_Float()
546 && (!(fabsf(err5) <= float_ulps))); in TestFunc_Float_Float_Float_Float()
547 if (fabsf(err2) < fabsf(err)) err = err2; in TestFunc_Float_Float_Float_Float()
[all …]
Dunary_two_results_double.cpp288 int fail = !(fabsf(err) <= f->double_ulps in TestFunc_Double2_Double()
289 && fabsf(err2) <= f->double_ulps); in TestFunc_Double2_Double()
309 && fabsf(err2) <= f->double_ulps); in TestFunc_Double2_Double()
318 && fabsf(err) <= f->double_ulps); in TestFunc_Double2_Double()
339 && ((!(fabsf(errp) <= f->double_ulps)) in TestFunc_Double2_Double()
340 && (!(fabsf(err2p) <= f->double_ulps)) in TestFunc_Double2_Double()
341 && ((!(fabsf(errn) <= f->double_ulps)) in TestFunc_Double2_Double()
342 && (!(fabsf(err2n) in TestFunc_Double2_Double()
344 if (fabsf(errp) < fabsf(err)) err = errp; in TestFunc_Double2_Double()
345 if (fabsf(errn) < fabsf(err)) err = errn; in TestFunc_Double2_Double()
[all …]
Dbinary_two_results_i_float.cpp377 int fail = !(fabsf(err) <= float_ulps && iErr == 0); in TestFunc_FloatI_Float_Float()
400 && ((!(fabsf(err2) <= float_ulps && iErr3 == 0)) in TestFunc_FloatI_Float_Float()
401 && (!(fabsf(err3) <= float_ulps in TestFunc_FloatI_Float_Float()
403 if (fabsf(err2) < fabsf(err)) err = err2; in TestFunc_FloatI_Float_Float()
404 if (fabsf(err3) < fabsf(err)) err = err3; in TestFunc_FloatI_Float_Float()
439 && ((!(fabsf(err2) <= float_ulps && iErr3 == 0)) in TestFunc_FloatI_Float_Float()
440 && (!(fabsf(err3) <= float_ulps in TestFunc_FloatI_Float_Float()
442 && (!(fabsf(err4) <= float_ulps in TestFunc_FloatI_Float_Float()
444 && (!(fabsf(err5) <= float_ulps in TestFunc_FloatI_Float_Float()
446 if (fabsf(err2) < fabsf(err)) err = err2; in TestFunc_FloatI_Float_Float()
[all …]
Dbinary_two_results_i_double.cpp377 int fail = !(fabsf(err) <= f->double_ulps && iErr == 0); in TestFunc_DoubleI_Double_Double()
402 && ((!(fabsf(err2) <= f->double_ulps && iErr3 == 0)) in TestFunc_DoubleI_Double_Double()
403 && (!(fabsf(err3) <= f->double_ulps in TestFunc_DoubleI_Double_Double()
405 if (fabsf(err2) < fabsf(err)) err = err2; in TestFunc_DoubleI_Double_Double()
406 if (fabsf(err3) < fabsf(err)) err = err3; in TestFunc_DoubleI_Double_Double()
444 && ((!(fabsf(err2) <= f->double_ulps in TestFunc_DoubleI_Double_Double()
446 && (!(fabsf(err3) <= f->double_ulps in TestFunc_DoubleI_Double_Double()
448 && (!(fabsf(err4) <= f->double_ulps in TestFunc_DoubleI_Double_Double()
450 && (!(fabsf(err5) <= f->double_ulps in TestFunc_DoubleI_Double_Double()
452 if (fabsf(err2) < fabsf(err)) err = err2; in TestFunc_DoubleI_Double_Double()
[all …]
Dunary_two_results_float.cpp381 int fail = !(fabsf(err) <= float_ulps in TestFunc_Float2_Float()
382 && fabsf(err2) <= float_ulps); in TestFunc_Float2_Float()
403 && fabsf(err2) <= float_ulps); in TestFunc_Float2_Float()
411 && !(test2 == 0.0f && fabsf(err) <= float_ulps); in TestFunc_Float2_Float()
471 && ((!(fabsf(errp) <= float_ulps)) in TestFunc_Float2_Float()
472 && (!(fabsf(err2p) <= float_ulps)) in TestFunc_Float2_Float()
473 && ((!(fabsf(errn) <= float_ulps)) in TestFunc_Float2_Float()
474 && (!(fabsf(err2n) <= float_ulps)))); in TestFunc_Float2_Float()
475 if (fabsf(errp) < fabsf(err)) err = errp; in TestFunc_Float2_Float()
476 if (fabsf(errn) < fabsf(err)) err = errn; in TestFunc_Float2_Float()
[all …]
Dbinary_operator_double.cpp652 int fail = !(fabsf(err) <= ulps); in Test()
674 && ((!(fabsf(err2) <= ulps)) in Test()
675 && (!(fabsf(err3) <= ulps))); in Test()
676 if (fabsf(err2) < fabsf(err)) err = err2; in Test()
677 if (fabsf(err3) < fabsf(err)) err = err3; in Test()
701 && ((!(fabsf(err2) <= ulps)) in Test()
702 && (!(fabsf(err3) <= ulps)) in Test()
703 && (!(fabsf(err4) <= ulps)) in Test()
704 && (!(fabsf(err5) <= ulps))); in Test()
705 if (fabsf(err2) < fabsf(err)) err = err2; in Test()
[all …]
Dbinary_operator_float.cpp719 ((!(fabsf(err) <= ulps)) && (!(fabsf(errB) <= ulps))); in Test()
720 if (fabsf(errB) < fabsf(err)) err = errB; in Test()
760 && ((!(fabsf(err2) <= ulps)) in Test()
761 && (!(fabsf(err3) <= ulps))); in Test()
762 if (fabsf(err2) < fabsf(err)) err = err2; in Test()
763 if (fabsf(err3) < fabsf(err)) err = err3; in Test()
811 && ((!(fabsf(err2) <= ulps)) in Test()
812 && (!(fabsf(err3) <= ulps)) in Test()
813 && (!(fabsf(err4) <= ulps)) in Test()
814 && (!(fabsf(err5) <= ulps))); in Test()
[all …]
Dbinary_double.cpp660 int fail = !(fabsf(err) <= ulps); in Test()
702 && ((!(fabsf(err2) <= ulps)) in Test()
703 && (!(fabsf(err3) <= ulps))); in Test()
704 if (fabsf(err2) < fabsf(err)) err = err2; in Test()
705 if (fabsf(err3) < fabsf(err)) err = err3; in Test()
731 && ((!(fabsf(err2) <= ulps)) in Test()
732 && (!(fabsf(err3) <= ulps)) in Test()
733 && (!(fabsf(err4) <= ulps)) in Test()
734 && (!(fabsf(err5) <= ulps))); in Test()
735 if (fabsf(err2) < fabsf(err)) err = err2; in Test()
[all …]
Dbinary_float.cpp727 int fail = !(fabsf(err) <= ulps); in Test()
796 && ((!(fabsf(err2) <= ulps)) in Test()
797 && (!(fabsf(err3) <= ulps))); in Test()
798 if (fabsf(err2) < fabsf(err)) err = err2; in Test()
799 if (fabsf(err3) < fabsf(err)) err = err3; in Test()
857 && ((!(fabsf(err2) <= ulps)) in Test()
858 && (!(fabsf(err3) <= ulps)) in Test()
859 && (!(fabsf(err4) <= ulps)) in Test()
860 && (!(fabsf(err5) <= ulps))); in Test()
861 if (fabsf(err2) < fabsf(err)) err = err2; in Test()
[all …]
Dunary_float.cpp530 fail = !(fabsf(abs_error) <= ulps); in Test()
538 fail = !(fabsf(abs_error) <= ulps); in Test()
545 fail = !(fabsf(err) <= ulps); in Test()
557 fail = !(fabsf(err) <= exp_error); in Test()
565 fail = !(fabsf(err) <= ulps); in Test()
574 fail = !(fabsf(err) <= ulps); in Test()
584 fail = !(fabsf(abs_error) <= ulps); in Test()
590 fail = !(fabsf(err) <= ulps); in Test()
605 fail = !(fabsf(err) <= ulps); in Test()
610 && fabsf(s[j]) > MAKE_HEX_FLOAT(0x1.0p16f, 0x1L, 16) in Test()
[all …]
/external/skia/tests/
DNonlinearBlendingTest.cpp49 REPORTER_ASSERT(r, fabsf(via_skcms[0] - via_steps[0]) <= 0.005f); in DEF_TEST()
50 REPORTER_ASSERT(r, fabsf(via_skcms[1] - via_steps[1]) <= 0.005f); in DEF_TEST()
51 REPORTER_ASSERT(r, fabsf(via_skcms[2] - via_steps[2]) <= 0.005f); in DEF_TEST()
52 REPORTER_ASSERT(r, fabsf(via_skcms[3] - via_steps[3]) <= 0.0f); in DEF_TEST()
65 REPORTER_ASSERT(r, fabsf(skcms_to_steps[0] - steps_to_skcms[0]) <= 0.005f); in DEF_TEST()
66 REPORTER_ASSERT(r, fabsf(skcms_to_steps[1] - steps_to_skcms[1]) <= 0.005f); in DEF_TEST()
67 REPORTER_ASSERT(r, fabsf(skcms_to_steps[2] - steps_to_skcms[2]) <= 0.005f); in DEF_TEST()
68 REPORTER_ASSERT(r, fabsf(skcms_to_steps[3] - steps_to_skcms[3]) <= 0.0f); in DEF_TEST()
/external/skqp/tests/
DNonlinearBlendingTest.cpp49 REPORTER_ASSERT(r, fabsf(via_skcms[0] - via_steps[0]) <= 0.005f); in DEF_TEST()
50 REPORTER_ASSERT(r, fabsf(via_skcms[1] - via_steps[1]) <= 0.005f); in DEF_TEST()
51 REPORTER_ASSERT(r, fabsf(via_skcms[2] - via_steps[2]) <= 0.005f); in DEF_TEST()
52 REPORTER_ASSERT(r, fabsf(via_skcms[3] - via_steps[3]) <= 0.0f); in DEF_TEST()
65 REPORTER_ASSERT(r, fabsf(skcms_to_steps[0] - steps_to_skcms[0]) <= 0.005f); in DEF_TEST()
66 REPORTER_ASSERT(r, fabsf(skcms_to_steps[1] - steps_to_skcms[1]) <= 0.005f); in DEF_TEST()
67 REPORTER_ASSERT(r, fabsf(skcms_to_steps[2] - steps_to_skcms[2]) <= 0.005f); in DEF_TEST()
68 REPORTER_ASSERT(r, fabsf(skcms_to_steps[3] - steps_to_skcms[3]) <= 0.0f); in DEF_TEST()
/external/rust/crates/libm/src/math/
Dfabsf.rs5 pub fn fabsf(x: f32) -> f32 { in fabsf() function
24 assert_eq!(fabsf(-1.0), 1.0); in sanity_check()
25 assert_eq!(fabsf(2.8), 2.8); in sanity_check()
31 assert!(fabsf(NAN).is_nan()); in spec_tests()
33 assert_eq!(fabsf(f), 0.0); in spec_tests()
36 assert_eq!(fabsf(f), INFINITY); in spec_tests()
/external/llvm-project/libc/test/src/math/
Dfabsf_test.cpp23 EXPECT_FP_EQ(nan, __llvm_libc::fabsf(nan)); in TEST()
25 EXPECT_FP_EQ(inf, __llvm_libc::fabsf(inf)); in TEST()
26 EXPECT_FP_EQ(inf, __llvm_libc::fabsf(negInf)); in TEST()
28 EXPECT_FP_EQ(zero, __llvm_libc::fabsf(zero)); in TEST()
29 EXPECT_FP_EQ(zero, __llvm_libc::fabsf(negZero)); in TEST()
40 ASSERT_MPFR_MATCH(mpfr::Operation::Abs, x, __llvm_libc::fabsf(x), 0.0); in TEST()
/external/llvm-project/clang/test/SemaCXX/
Dwarn-absolute-value-header.cpp6 float fabsf(float);
22 (void)fabsf(d); in test()
34 (void)fabsf(ll); in test()
42 (void)fabsf(f); in test()
45 (void)fabsf(i); in test()
Dwarn-absolute-value.cpp9 float fabsf(float);
42 (void)fabsf(x); in test_int()
106 (void)fabsf(x); in test_long()
177 (void)fabsf(x); in test_long_long()
256 (void)fabsf(x); in test_float()
320 (void)fabsf(x); in test_double()
390 (void)fabsf(x); in test_long_double()
518 (void)fabsf(x); in test_unsigned_int()
603 (void)fabsf(x); in test_unsigned_long()
/external/clang/test/SemaCXX/
Dwarn-absolute-value-header.cpp6 float fabsf(float);
22 (void)fabsf(d); in test()
34 (void)fabsf(ll); in test()
42 (void)fabsf(f); in test()
45 (void)fabsf(i); in test()
Dwarn-absolute-value.cpp9 float fabsf(float);
42 (void)fabsf(x); in test_int()
106 (void)fabsf(x); in test_long()
177 (void)fabsf(x); in test_long_long()
256 (void)fabsf(x); in test_float()
320 (void)fabsf(x); in test_double()
390 (void)fabsf(x); in test_long_double()
464 (void)fabsf(x); in test_complex_float()
526 (void)fabsf(x); in test_complex_double()
594 (void)fabsf(x); in test_complex_long_double()
[all …]
/external/clang/test/Sema/
Dwarn-absolute-value.c8 float fabsf(float);
21 (void)fabsf(x); in test_int()
83 (void)fabsf(x); in test_long()
152 (void)fabsf(x); in test_long_long()
229 (void)fabsf(x); in test_float()
291 (void)fabsf(x); in test_double()
359 (void)fabsf(x); in test_long_double()
433 (void)fabsf(x); in test_complex_float()
495 (void)fabsf(x); in test_complex_double()
563 (void)fabsf(x); in test_complex_long_double()
[all …]
/external/llvm-project/clang/test/Sema/
Dwarn-absolute-value.c8 float fabsf(float);
21 (void)fabsf(x); in test_int()
83 (void)fabsf(x); in test_long()
152 (void)fabsf(x); in test_long_long()
229 (void)fabsf(x); in test_float()
291 (void)fabsf(x); in test_double()
359 (void)fabsf(x); in test_long_double()
433 (void)fabsf(x); in test_complex_float()
495 (void)fabsf(x); in test_complex_double()
563 (void)fabsf(x); in test_complex_long_double()
[all …]
/external/XNNPACK/src/f32-vunary/gen/
Dvabs-scalar-x4.c36 const float vy0 = fabsf(vx0); in xnn_f32_vabs_ukernel__scalar_x4()
37 const float vy1 = fabsf(vx1); in xnn_f32_vabs_ukernel__scalar_x4()
38 const float vy2 = fabsf(vx2); in xnn_f32_vabs_ukernel__scalar_x4()
39 const float vy3 = fabsf(vx3); in xnn_f32_vabs_ukernel__scalar_x4()
50 const float vy = fabsf(vx); in xnn_f32_vabs_ukernel__scalar_x4()
Dvabs-scalar-x2.c34 const float vy0 = fabsf(vx0); in xnn_f32_vabs_ukernel__scalar_x2()
35 const float vy1 = fabsf(vx1); in xnn_f32_vabs_ukernel__scalar_x2()
43 const float vy = fabsf(vx); in xnn_f32_vabs_ukernel__scalar_x2()
/external/OpenCL-CTS/test_conformance/geometrics/
Dtest_geometrics.cpp141 …errorTolerances[ 0 ] = fmaxf( fabsf( vecA[ 1 ] ), fmaxf( fabsf( vecB[ 2 ] ), fmaxf( fabsf( vecA[ 2… in cross_product()
142 …errorTolerances[ 1 ] = fmaxf( fabsf( vecA[ 2 ] ), fmaxf( fabsf( vecB[ 0 ] ), fmaxf( fabsf( vecA[ 0… in cross_product()
143 …errorTolerances[ 2 ] = fmaxf( fabsf( vecA[ 0 ] ), fmaxf( fabsf( vecB[ 1 ] ), fmaxf( fabsf( vecA[ 1… in cross_product()
252 float errs[] = { fabsf( testVector[ 0 ] - outData[ i * vecsize + 0 ] ), in test_geom_cross()
253 fabsf( testVector[ 1 ] - outData[ i * vecsize + 1 ] ), in test_geom_cross()
254 fabsf( testVector[ 2 ] - outData[ i * vecsize + 2 ] ) }; in test_geom_cross()
283 float a = fmaxf( fabsf( vecA[ 0 ] ), fabsf( vecB[ 0 ] ) ); in getMaxValue()
285 a = fmaxf( fabsf( vecA[ i ] ), fmaxf( fabsf( vecB[ i ] ), a ) ); in getMaxValue()
354 …if( fabsf( inDataA[i] ) > MAKE_HEX_FLOAT(0x1.0p62f, 0x1L, 62) || fabsf( inDataA[i] ) < MAKE_HEX_FL… in test_twoToFloat_kernel()
356 …if( fabsf( inDataB[i] ) > MAKE_HEX_FLOAT(0x1.0p62f, 0x1L, 62) || fabsf( inDataB[i] ) < MAKE_HEX_FL… in test_twoToFloat_kernel()
[all …]
/external/OpenCL-CTS/test_conformance/basic/
Dtest_image_param.cpp131 cl_float error1 = fabsf( expected[ 0 ] - actualResults[ 0 ] ); in validate_results()
132 cl_float error2 = fabsf( expected[ 1 ] - actualResults[ 1 ] ); in validate_results()
133 cl_float error3 = fabsf( expected[ 2 ] - actualResults[ 2 ] ); in validate_results()
134 cl_float error4 = fabsf( expected[ 3 ] - actualResults[ 3 ] ); in validate_results()
144 cl_float error1 = fabsf( expected[ 3 ] - actualResults[ 0 ] ); in validate_results()
145 cl_float error2 = fabsf( expected[ 2 ] - actualResults[ 1 ] ); in validate_results()
146 cl_float error3 = fabsf( expected[ 1 ] - actualResults[ 2 ] ); in validate_results()
147 cl_float error4 = fabsf( expected[ 0 ] - actualResults[ 3 ] ); in validate_results()

12345678910>>...14