/freebsd-10.2-release/tools/regression/lib/msun/ |
H A D | test-utils.h | 122 fpequal_tol(long double x, long double y, long double tol, unsigned int flags) argument 133 if (tol == 0) 139 * For our purposes here, if y=0, we interpret tol as an absolute 144 ret = fabsl(x - y) <= fabsl(tol); 146 ret = fabsl(x - y) <= fabsl(y * tol); 167 cfpequal_tol(long double complex x, long double complex y, long double tol, argument 170 return (fpequal_tol(creal(x), creal(y), tol, flags) 171 && fpequal_tol(cimag(x), cimag(y), tol, flags));
|
H A D | test-invctrig.c | 72 #define test_p_tol(func, z, result, tol) do { \ 76 assert(cfpequal_tol((func)(_d), (result), (tol), CS_BOTH)); \ 84 #define test_tol(func, z, result, tol) do { \ 85 test_p_tol(func, z, result, tol); \ 86 test_p_tol(func, conjl(z), conjl(result), tol); \ 107 #define testall_tol(func, x, result, tol) do { \ 108 test_tol(func, x, result, (tol) * DBL_ULP()); \ 109 test_tol(func##f, x, result, (tol) * FLT_ULP()); \ 111 #define testall_odd_tol(func, x, result, tol) do { \ 112 testall_tol(func, x, result, tol); \ [all...] |
H A D | test-ctrig.c | 73 #define test_p_tol(func, z, result, tol) do { \ 77 assert(cfpequal_tol((func)(_d), (result), (tol), FPE_ABS_ZERO)); \ 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); \ 89 #define test_odd_tol(func, z, result, tol) do { \ 90 test_tol(func, z, result, tol); \ 91 test_tol(func, -(z), -(result), tol); \ 93 #define test_even_tol(func, z, result, tol) do { \ 94 test_tol(func, z, result, tol); \ [all...] |
H A D | test-invtrig.c | 57 #define test_tol(func, x, result, tol, excepts) do { \ 60 assert(fpequal_tol(func(_in), _out, (tol), CS_BOTH)); \ 66 #define testall_tol(prefix, x, result, tol, excepts) do { \ 68 (tol) * ldexp(1.0, 1 - DBL_MANT_DIG), (excepts)); \ 70 (tol) * ldexpf(1.0, 1 - FLT_MANT_DIG), (excepts)); \ 72 (tol) * ldexpl(1.0, 1 - LDBL_MANT_DIG), (excepts)); \ 77 #define test2_tol(func, y, x, result, tol, excepts) do { \ 80 assert(fpequal_tol(func(_iny, _inx), _out, (tol), CS_BOTH)); \ 86 #define testall2_tol(prefix, y, x, result, tol, excepts) do { \ 88 (tol) * ldex [all...] |
H A D | test-cexp.c | 70 #define test_tol(func, z, result, tol) do { \ 72 assert(cfpequal_tol((func)(_d), (result), (tol), \ 86 #define testall_tol(x, result, tol) do { \ 87 test_tol(cexp, x, result, tol * DBL_ULP()); \ 88 test_tol(cexpf, x, result, tol * FLT_ULP()); \
|
H A D | test-logarithm.c | 75 #define test_tol(func, z, result, tol) do { \ 78 assert(fpequal_tol((func)(_d), (result), (tol), CS_BOTH)); \
|
/freebsd-10.2-release/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-10.2-release/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) {
|