Home
last modified time | relevance | path

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

12345678910>>...13

/external/OpenCL-CTS/test_conformance/math_brute_force/
Dternary_double.cpp312 int fail = !(fabsf(err) <= f->double_ulps); in TestFunc_Double_Double_Double_Double()
335 && ((!(fabsf(err2) <= f->double_ulps)) in TestFunc_Double_Double_Double_Double()
336 && (!(fabsf(err3) <= f->double_ulps))); in TestFunc_Double_Double_Double_Double()
337 if (fabsf(err2) < fabsf(err)) err = err2; in TestFunc_Double_Double_Double_Double()
338 if (fabsf(err3) < fabsf(err)) err = err3; in TestFunc_Double_Double_Double_Double()
368 && ((!(fabsf(err2) <= f->double_ulps)) in TestFunc_Double_Double_Double_Double()
369 && (!(fabsf(err3) <= f->double_ulps)) in TestFunc_Double_Double_Double_Double()
370 && (!(fabsf(err4) <= f->double_ulps)) in TestFunc_Double_Double_Double_Double()
371 && (!(fabsf(err5) <= f->double_ulps))); in TestFunc_Double_Double_Double_Double()
372 if (fabsf(err2) < fabsf(err)) err = err2; in TestFunc_Double_Double_Double_Double()
[all …]
Dternary_float.cpp366 fail = !(fabsf(err) <= float_ulps); in TestFunc_Float_Float_Float_Float()
409 && ((!(fabsf(err2) <= float_ulps)) in TestFunc_Float_Float_Float_Float()
410 && (!(fabsf(err3) <= float_ulps))); in TestFunc_Float_Float_Float_Float()
411 if (fabsf(err2) < fabsf(err)) err = err2; in TestFunc_Float_Float_Float_Float()
412 if (fabsf(err3) < fabsf(err)) err = err3; in TestFunc_Float_Float_Float_Float()
469 && ((!(fabsf(err2) <= float_ulps)) in TestFunc_Float_Float_Float_Float()
470 && (!(fabsf(err3) <= float_ulps)) in TestFunc_Float_Float_Float_Float()
471 && (!(fabsf(err4) <= float_ulps)) in TestFunc_Float_Float_Float_Float()
472 && (!(fabsf(err5) <= float_ulps))); in TestFunc_Float_Float_Float_Float()
473 if (fabsf(err2) < fabsf(err)) err = err2; in TestFunc_Float_Float_Float_Float()
[all …]
Dunary_two_results_double.cpp293 int fail = !(fabsf(err) <= f->double_ulps in TestFunc_Double2_Double()
294 && fabsf(err2) <= f->double_ulps); in TestFunc_Double2_Double()
314 && fabsf(err2) <= f->double_ulps); in TestFunc_Double2_Double()
323 && fabsf(err) <= f->double_ulps); in TestFunc_Double2_Double()
344 && ((!(fabsf(errp) <= f->double_ulps)) in TestFunc_Double2_Double()
345 && (!(fabsf(err2p) <= f->double_ulps)) in TestFunc_Double2_Double()
346 && ((!(fabsf(errn) <= f->double_ulps)) in TestFunc_Double2_Double()
347 && (!(fabsf(err2n) in TestFunc_Double2_Double()
349 if (fabsf(errp) < fabsf(err)) err = errp; in TestFunc_Double2_Double()
350 if (fabsf(errn) < fabsf(err)) err = errn; in TestFunc_Double2_Double()
[all …]
Dbinary_two_results_i_double.cpp382 int fail = !(fabsf(err) <= f->double_ulps && iErr == 0); in TestFunc_DoubleI_Double_Double()
407 && ((!(fabsf(err2) <= f->double_ulps && iErr3 == 0)) in TestFunc_DoubleI_Double_Double()
408 && (!(fabsf(err3) <= f->double_ulps in TestFunc_DoubleI_Double_Double()
410 if (fabsf(err2) < fabsf(err)) err = err2; in TestFunc_DoubleI_Double_Double()
411 if (fabsf(err3) < fabsf(err)) err = err3; in TestFunc_DoubleI_Double_Double()
449 && ((!(fabsf(err2) <= f->double_ulps in TestFunc_DoubleI_Double_Double()
451 && (!(fabsf(err3) <= f->double_ulps in TestFunc_DoubleI_Double_Double()
453 && (!(fabsf(err4) <= f->double_ulps in TestFunc_DoubleI_Double_Double()
455 && (!(fabsf(err5) <= f->double_ulps in TestFunc_DoubleI_Double_Double()
457 if (fabsf(err2) < fabsf(err)) err = err2; in TestFunc_DoubleI_Double_Double()
[all …]
Dbinary_two_results_i_float.cpp382 int fail = !(fabsf(err) <= float_ulps && iErr == 0); in TestFunc_FloatI_Float_Float()
405 && ((!(fabsf(err2) <= float_ulps && iErr3 == 0)) in TestFunc_FloatI_Float_Float()
406 && (!(fabsf(err3) <= float_ulps in TestFunc_FloatI_Float_Float()
408 if (fabsf(err2) < fabsf(err)) err = err2; in TestFunc_FloatI_Float_Float()
409 if (fabsf(err3) < fabsf(err)) err = err3; in TestFunc_FloatI_Float_Float()
444 && ((!(fabsf(err2) <= float_ulps && iErr3 == 0)) in TestFunc_FloatI_Float_Float()
445 && (!(fabsf(err3) <= float_ulps in TestFunc_FloatI_Float_Float()
447 && (!(fabsf(err4) <= float_ulps in TestFunc_FloatI_Float_Float()
449 && (!(fabsf(err5) <= float_ulps in TestFunc_FloatI_Float_Float()
451 if (fabsf(err2) < fabsf(err)) err = err2; in TestFunc_FloatI_Float_Float()
[all …]
Dunary_two_results_float.cpp386 int fail = !(fabsf(err) <= float_ulps in TestFunc_Float2_Float()
387 && fabsf(err2) <= float_ulps); in TestFunc_Float2_Float()
408 && fabsf(err2) <= float_ulps); in TestFunc_Float2_Float()
416 && !(test2 == 0.0f && fabsf(err) <= float_ulps); in TestFunc_Float2_Float()
476 && ((!(fabsf(errp) <= float_ulps)) in TestFunc_Float2_Float()
477 && (!(fabsf(err2p) <= float_ulps)) in TestFunc_Float2_Float()
478 && ((!(fabsf(errn) <= float_ulps)) in TestFunc_Float2_Float()
479 && (!(fabsf(err2n) <= float_ulps)))); in TestFunc_Float2_Float()
480 if (fabsf(errp) < fabsf(err)) err = errp; in TestFunc_Float2_Float()
481 if (fabsf(errn) < fabsf(err)) err = errn; in TestFunc_Float2_Float()
[all …]
Dbinary_operator_double.cpp475 int fail = !(fabsf(err) <= ulps); in Test()
497 && ((!(fabsf(err2) <= ulps)) in Test()
498 && (!(fabsf(err3) <= ulps))); in Test()
499 if (fabsf(err2) < fabsf(err)) err = err2; in Test()
500 if (fabsf(err3) < fabsf(err)) err = err3; in Test()
524 && ((!(fabsf(err2) <= ulps)) in Test()
525 && (!(fabsf(err3) <= ulps)) in Test()
526 && (!(fabsf(err4) <= ulps)) in Test()
527 && (!(fabsf(err5) <= ulps))); in Test()
528 if (fabsf(err2) < fabsf(err)) err = err2; in Test()
[all …]
Dbinary_operator_float.cpp538 ((!(fabsf(err) <= ulps)) && (!(fabsf(errB) <= ulps))); in Test()
539 if (fabsf(errB) < fabsf(err)) err = errB; in Test()
579 && ((!(fabsf(err2) <= ulps)) in Test()
580 && (!(fabsf(err3) <= ulps))); in Test()
581 if (fabsf(err2) < fabsf(err)) err = err2; in Test()
582 if (fabsf(err3) < fabsf(err)) err = err3; in Test()
630 && ((!(fabsf(err2) <= ulps)) in Test()
631 && (!(fabsf(err3) <= ulps)) in Test()
632 && (!(fabsf(err4) <= ulps)) in Test()
633 && (!(fabsf(err5) <= ulps))); in Test()
[all …]
Dbinary_double.cpp480 int fail = !(fabsf(err) <= ulps); in Test()
522 && ((!(fabsf(err2) <= ulps)) in Test()
523 && (!(fabsf(err3) <= ulps))); in Test()
524 if (fabsf(err2) < fabsf(err)) err = err2; in Test()
525 if (fabsf(err3) < fabsf(err)) err = err3; in Test()
551 && ((!(fabsf(err2) <= ulps)) in Test()
552 && (!(fabsf(err3) <= ulps)) in Test()
553 && (!(fabsf(err4) <= ulps)) in Test()
554 && (!(fabsf(err5) <= ulps))); in Test()
555 if (fabsf(err2) < fabsf(err)) err = err2; in Test()
[all …]
Dbinary_float.cpp544 int fail = !(fabsf(err) <= ulps); in Test()
613 && ((!(fabsf(err2) <= ulps)) in Test()
614 && (!(fabsf(err3) <= ulps))); in Test()
615 if (fabsf(err2) < fabsf(err)) err = err2; in Test()
616 if (fabsf(err3) < fabsf(err)) err = err3; in Test()
674 && ((!(fabsf(err2) <= ulps)) in Test()
675 && (!(fabsf(err3) <= ulps)) in Test()
676 && (!(fabsf(err4) <= ulps)) in Test()
677 && (!(fabsf(err5) <= ulps))); in Test()
678 if (fabsf(err2) < fabsf(err)) err = err2; in Test()
[all …]
Dunary_float.cpp343 fail = !(fabsf(abs_error) <= ulps); in Test()
351 fail = !(fabsf(abs_error) <= ulps); in Test()
358 fail = !(fabsf(err) <= ulps); in Test()
370 fail = !(fabsf(err) <= exp_error); in Test()
378 fail = !(fabsf(err) <= ulps); in Test()
387 fail = !(fabsf(err) <= ulps); in Test()
397 fail = !(fabsf(abs_error) <= ulps); in Test()
403 fail = !(fabsf(err) <= ulps); in Test()
418 fail = !(fabsf(err) <= ulps); in Test()
423 && fabsf(s[j]) > MAKE_HEX_FLOAT(0x1.0p16f, 0x1L, 16) in Test()
[all …]
/external/skia/tests/
DNonlinearBlendingTest.cpp54 REPORTER_ASSERT(r, fabsf(via_skcms[0] - via_steps[0]) <= 0.005f); in DEF_TEST()
55 REPORTER_ASSERT(r, fabsf(via_skcms[1] - via_steps[1]) <= 0.005f); in DEF_TEST()
56 REPORTER_ASSERT(r, fabsf(via_skcms[2] - via_steps[2]) <= 0.005f); in DEF_TEST()
57 REPORTER_ASSERT(r, fabsf(via_skcms[3] - via_steps[3]) <= 0.0f); in DEF_TEST()
70 REPORTER_ASSERT(r, fabsf(skcms_to_steps[0] - steps_to_skcms[0]) <= 0.005f); in DEF_TEST()
71 REPORTER_ASSERT(r, fabsf(skcms_to_steps[1] - steps_to_skcms[1]) <= 0.005f); in DEF_TEST()
72 REPORTER_ASSERT(r, fabsf(skcms_to_steps[2] - steps_to_skcms[2]) <= 0.005f); in DEF_TEST()
73 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
26 assert_eq!(fabsf(-1.0), 1.0); in sanity_check()
27 assert_eq!(fabsf(2.8), 2.8); in sanity_check()
33 assert!(fabsf(NAN).is_nan()); in spec_tests()
35 assert_eq!(fabsf(f), 0.0); in spec_tests()
38 assert_eq!(fabsf(f), INFINITY); in spec_tests()
/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/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/virglrenderer/src/mesa/util/
Du_math.c169 if (fabsf(r3[0]) > fabsf(r2[0])) in util_invert_mat4x4()
171 if (fabsf(r2[0]) > fabsf(r1[0])) in util_invert_mat4x4()
173 if (fabsf(r1[0]) > fabsf(r0[0])) in util_invert_mat4x4()
220 if (fabsf(r3[1]) > fabsf(r2[1])) in util_invert_mat4x4()
222 if (fabsf(r2[1]) > fabsf(r1[1])) in util_invert_mat4x4()
256 if (fabsf(r3[2]) > fabsf(r2[2])) in util_invert_mat4x4()
/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/libchrome-gestures/src/
Daccel_filter_interpreter_unittest.cc98 EXPECT_GT(fabsf(out->details.move.dx), fabsf(last_move_dx)); in TEST()
99 EXPECT_GT(fabsf(out->details.move.dy), fabsf(last_move_dy)); in TEST()
113 EXPECT_GT(fabsf(out->details.scroll.dx), fabsf(last_scroll_dx)); in TEST()
114 EXPECT_GT(fabsf(out->details.scroll.dy), fabsf(last_scroll_dy)); in TEST()
127 EXPECT_GT(fabsf(out->details.fling.vx), fabsf(last_fling_vx)); in TEST()
128 EXPECT_GT(fabsf(out->details.fling.vy), fabsf(last_fling_vy)); in TEST()
162 EXPECT_GT(fabsf(out->details.move.dx), 2); in TEST()
166 EXPECT_GT(fabsf(out->details.scroll.dx), 2); in TEST()
225 EXPECT_GT(fabsf(last_dx), fabsf(out->details.move.dx)); in TEST()
226 EXPECT_GT(fabsf(last_dy), fabsf(out->details.move.dy)); in TEST()
[all …]
Dsensor_jump_filter_interpreter.cc93 const float kAllowableChange = fabsf(delta[1] * similar_multiplier); in SyncInterpretImpl()
100 if (!warp_move || !(fabsf(delta[0]) < no_warp_min_dist_move_.val_ && in SyncInterpretImpl()
101 fabsf(delta[1]) < no_warp_min_dist_move_.val_)) in SyncInterpretImpl()
103 } else if (fabsf(delta[0]) < min_warp_dist || in SyncInterpretImpl()
104 fabsf(delta[0]) > max_warp_dist) { in SyncInterpretImpl()
106 } else if (fabsf(delta[0] - delta[1]) <= kAllowableChange) { in SyncInterpretImpl()
/external/musl/src/math/x32/
Dfabsf.s1 .global fabsf symbol
2 .type fabsf,@function
3 fabsf: label
/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()
/external/llvm/test/Transforms/InstCombine/
Dfabs.ll5 declare float @fabsf(float)
11 %fabsf = tail call float @fabsf(float %mul)
12 ret float %fabsf
47 %fabsf = tail call float @llvm.fabs.f32(float %mul)
48 ret float %fabsf

12345678910>>...13