/freebsd-12-stable/lib/msun/tests/ |
H A D | test-utils.h | 129 fpequal_tol(long double x, long double y, long double tol, argument 141 if (tol == 0) 147 * For our purposes here, if y=0, we interpret tol as an absolute 152 ret = fabsl(x - y) <= fabsl(tol); 154 ret = fabsl(x - y) <= fabsl(y * tol); 175 cfpequal_tol(long double complex x, long double complex y, long double tol, argument 178 return (fpequal_tol(creal(x), creal(y), tol, flags) 179 && fpequal_tol(cimag(x), cimag(y), tol, flags));
|
H A D | invctrig_test.c | 73 #define test_p_tol(func, z, result, tol) do { \ 77 assert(cfpequal_tol((func)(_d), (result), (tol), CS_BOTH)); \ 85 #define test_tol(func, z, result, tol) do { \ 86 test_p_tol(func, z, result, tol); \ 87 test_p_tol(func, conjl(z), conjl(result), tol); \ 108 #define testall_tol(func, x, result, tol) do { \ 109 test_tol(func, x, result, (tol) * DBL_ULP()); \ 110 test_tol(func##f, x, result, (tol) * FLT_ULP()); \ 112 #define testall_odd_tol(func, x, result, tol) do { \ 113 testall_tol(func, x, result, tol); \ [all...] |
H A D | invtrig_test.c | 55 #define test_tol(func, x, result, tol, excepts) do { \ 58 assert(fpequal_tol(func(_in), _out, (tol), CS_BOTH)); \ 64 #define _testall_tol(prefix, x, result, tol, excepts) do { \ 66 (tol) * ldexp(1.0, 1 - DBL_MANT_DIG), (excepts)); \ 68 (tol) * ldexpf(1.0, 1 - FLT_MANT_DIG), (excepts)); \ 74 #define testall_tol(prefix, x, result, tol, excepts) do { \ 75 _testall_tol(prefix, x, result, tol, excepts); \ 77 (tol) * ldexpl(1.0, 1 - LDBL_MANT_DIG), (excepts)); \ 84 #define test2_tol(func, y, x, result, tol, excepts) do { \ 87 assert(fpequal_tol(func(_iny, _inx), _out, (tol), CS_BOT [all...] |
H A D | ctrig_test.c | 75 #define test_p_tol(func, z, result, tol) do { \ 79 ATF_CHECK(cfpequal_tol((func)(_d), (result), (tol), FPE_ABS_ZERO)); \ 87 #define test_tol(func, z, result, tol) do { \ 88 test_p_tol(func, z, result, tol); \ 89 test_p_tol(func, conjl(z), conjl(result), tol); \ 91 #define test_odd_tol(func, z, result, tol) do { \ 92 test_tol(func, z, result, tol); \ 93 test_tol(func, -(z), -(result), tol); \ 95 #define test_even_tol(func, z, result, tol) do { \ 96 test_tol(func, z, result, tol); \ [all...] |
H A D | cexp_test.c | 78 #define test_tol(func, z, result, tol) do { \ 80 assert(cfpequal_tol((func)(_d), (result), (tol), \ 94 #define testall_tol(x, result, tol) do { \ 95 test_tol(cexp, x, result, tol * DBL_ULP()); \ 96 test_tol(cexpf, x, result, tol * FLT_ULP()); \
|
H A D | logarithm_test.c | 76 #define test_tol(func, z, result, tol) do { \ 79 assert(fpequal_tol((func)(_d), (result), (tol), CS_BOTH)); \
|
/freebsd-12-stable/contrib/ntp/sntp/unity/ |
H A D | unity.c | 618 _UF diff, tol; local 638 tol = UNITY_FLOAT_PRECISION * *ptr_expected; 639 if (tol < 0.0f) 640 tol = 0.0f - tol; 643 if ((diff * 0.0f != 0.0f) || (diff > tol)) 779 _UD diff, tol; local 799 tol = UNITY_DOUBLE_PRECISION * *ptr_expected; 800 if (tol < 0.0) 801 tol [all...] |
/freebsd-12-stable/contrib/gdtoa/ |
H A D | strtodg.c | 330 double adj0, tol; local 971 tol = dval(&adj) * 5e-16; /* > max rel error */ 973 if (dval(&adj) < -tol) { 974 if (adj0 > tol) { 979 else if (dval(&adj) > tol && adj0 < 1. - tol) {
|