Home
last modified time | relevance | path

Searched refs:tol (Results 1 – 24 of 24) sorted by relevance

/freebsd/lib/msun/tests/
H A Dtest-utils.h117 fpequal_tol(long double x, long double y, long double tol, in fpequal_tol() argument
129 if (tol == 0) in fpequal_tol()
140 ret = fabsl(x - y) <= fabsl(tol); in fpequal_tol()
142 ret = fabsl(x - y) <= fabsl(y * tol); in fpequal_tol()
156 #define CHECK_FPEQUAL_TOL(x, y, tol, flags) do { \ argument
159 bool eq = fpequal_tol(_x, _y, tol, flags); \
162 #x, _x, #y, _y, _diff, fabsl(_y * tol)); \
183 #define CHECK_CFPEQUAL_TOL(x, y, tol, flags) do { \ argument
186 bool equal_tol = (fpequal_tol(creal(_x), creal(_y), tol, flags) && \
187 fpequal_tol(cimag(_x), cimag(_y), tol, flags)); \
H A Dctrig_test.c74 #define test_p_tol(func, z, result, tol) do { \ argument
77 CHECK_CFPEQUAL_TOL((func)(z), (result), (tol), FPE_ABS_ZERO); \
85 #define test_tol(func, z, result, tol) do { \ argument
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 { \ argument
90 test_tol(func, z, result, tol); \
91 test_tol(func, -(z), -(result), tol); \
93 #define test_even_tol(func, z, result, tol) do { \ argument
94 test_tol(func, z, result, tol); \
[all …]
H A Dinvctrig_test.c70 #define test_p_tol(func, z, result, tol) do { \ argument
73 CHECK_CFPEQUAL_TOL((func)(z), (result), (tol), CS_BOTH); \
81 #define test_tol(func, z, result, tol) do { \ argument
82 test_p_tol(func, z, result, tol); \
83 test_p_tol(func, conjl(z), conjl(result), tol); \
104 #define testall_tol(func, x, result, tol) do { \ argument
105 test_tol(func, x, result, (tol) * DBL_ULP()); \
106 test_tol(func##f, x, result, (tol) * FLT_ULP()); \
108 #define testall_odd_tol(func, x, result, tol) do { \ argument
109 testall_tol(func, x, result, tol); \
[all …]
H A Dinvtrig_test.c52 #define test_tol(func, x, result, tol, excepts) do { \ argument
55 CHECK_FPEQUAL_TOL(func(_in), _out, (tol), CS_BOTH); \
62 #define _testall_tol(prefix, x, result, tol, excepts) do { \ argument
64 (tol) * ldexp(1.0, 1 - DBL_MANT_DIG), (excepts)); \
66 (tol) * ldexpf(1.0, 1 - FLT_MANT_DIG), (excepts)); \
72 #define testall_tol(prefix, x, result, tol, excepts) do { \ argument
73 _testall_tol(prefix, x, result, tol, excepts); \
75 (tol) * ldexpl(1.0, 1 - LDBL_MANT_DIG), (excepts)); \
82 #define test2_tol(func, y, x, result, tol, excepts) do { \ argument
85 CHECK_FPEQUAL_TOL(func(_iny, _inx), _out, (tol), CS_BOTH); \
[all …]
H A Dcexp_test.c75 #define test_tol(func, z, result, tol) do { \ argument
76 CHECK_CFPEQUAL_TOL((func)(z), (result), (tol), \
90 #define testall_tol(x, result, tol) do { \ argument
91 test_tol(cexp, x, result, tol * DBL_ULP()); \
92 test_tol(cexpf, x, result, tol * FLT_ULP()); \
H A Dlogarithm_test.c66 #define test_tol(func, z, result, tol) do { \ argument
69 CHECK_FPEQUAL_TOL((func)(_d), (result), (tol), CS_BOTH); \
/freebsd/contrib/ntp/sntp/unity/
H A Dunity.c618 _UF diff, tol; in UnityAssertEqualFloatArray() local
638 tol = UNITY_FLOAT_PRECISION * *ptr_expected; in UnityAssertEqualFloatArray()
639 if (tol < 0.0f) in UnityAssertEqualFloatArray()
640 tol = 0.0f - tol; in UnityAssertEqualFloatArray()
643 if ((diff * 0.0f != 0.0f) || (diff > tol)) in UnityAssertEqualFloatArray()
779 _UD diff, tol; in UnityAssertEqualDoubleArray() local
799 tol = UNITY_DOUBLE_PRECISION * *ptr_expected; in UnityAssertEqualDoubleArray()
800 if (tol < 0.0) in UnityAssertEqualDoubleArray()
801 tol = 0.0 - tol; in UnityAssertEqualDoubleArray()
804 if ((diff * 0.0 != 0.0) || (diff > tol)) in UnityAssertEqualDoubleArray()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/include/
H A Dmath.shlib57 typeset tol=$3
60 log_note "Checking if $val is within +/-$tol of $target (diff: $diff)"
61 ((diff <= tol))
/freebsd/contrib/gdtoa/
H A Dstrtodg.c330 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) {
/freebsd/sys/contrib/device-tree/src/arm/ti/omap/
H A Domap3-devkit8000-lcd-common.dtsi66 ti,debounce-tol = /bits/ 16 <5>;
H A Domap3-cm-t3x.dtsi241 ti,debounce-tol = /bits/ 16 <10>;
H A Domap5-cm-t54.dts369 ti,debounce-tol = /bits/ 16 <10>;
H A Dam57xx-cl-som-am57x.dts542 ti,debounce-tol = /bits/ 16 <10>;
/freebsd/sys/contrib/device-tree/src/arm/nxp/imx/
H A Dimx7d-pico-hobbit.dts77 ti,debounce-tol = /bits/ 16 <3>;
/freebsd/sys/contrib/device-tree/src/arm/microchip/
H A Dat91sam9261ek.dts170 ti,debounce-tol = /bits/ 16 <65535>;
/freebsd/sys/contrib/device-tree/Bindings/input/touchscreen/
H A Dads7846.txt53 ti,debounce-tol Tolerance used for filtering (u16).
/freebsd/crypto/heimdal/lib/kafs/
H A DChangeLog35 * afssys.c: use afs_ioctlnum, From Tomas Olsson <tol@it.su.se>
73 device node. Patched from Tomas Olson <tol@it.su.se>.
/freebsd/sys/contrib/device-tree/src/arm64/freescale/
H A Dimx8mm-var-som.dtsi97 ti,debounce-tol = /bits/ 16 <3>;
H A Dimx8mn-var-som.dtsi88 ti,debounce-tol = /bits/ 16 <3>;
/freebsd/sys/contrib/dev/rtw88/
H A Dcoex.c17 u8 tol = chip->rssi_tolerance; in rtw_coex_next_rssi_state() local
22 if (rssi >= (rssi_thresh + tol)) in rtw_coex_next_rssi_state()
/freebsd/crypto/heimdal/lib/roken/
H A DChangeLog994 * glob.c: provide a fallback for ARG_MAX. from <tol@stacken.kth.se>
999 from <tol@stacken.kth.se>
/freebsd/sys/contrib/dev/rtw89/
H A Dcoex.c5552 u8 next_state, tol = chip->rssi_tol; in _update_bt_info()
5556 if (rssi >= (thresh + tol)) in _update_bt_info()
4448 u8 next_state, tol = chip->rssi_tol; _update_rssi_state() local
/freebsd/share/dict/
H A Dweb2a65251 tol-de-rol
65266 tol-lol
65267 tol-lol-de-rol
65268 tol-lol-ish
H A Dweb2204267 tol