Home
last modified time | relevance | path

Searched refs:DBL_EPSILON (Results 1 – 25 of 32) sorted by relevance

12

/freebsd/lib/msun/src/
H A Dcatrig.c52 RECIP_EPSILON = 1 / DBL_EPSILON,
176 if (y == 1 && x < DBL_EPSILON * DBL_EPSILON / 128) { in do_hard_work()
182 } else if (x >= DBL_EPSILON * fabs(y - 1)) { in do_hard_work()
214 *sqrt_A2my2 = A * (2 / DBL_EPSILON); in do_hard_work()
215 *new_y = y * (2 / DBL_EPSILON); in do_hard_work()
229 if (y == 1 && x < DBL_EPSILON / 128) { in do_hard_work()
235 } else if (x >= DBL_EPSILON * fabs(y - 1)) { in do_hard_work()
252 *sqrt_A2my2 = x * (4 / DBL_EPSILON / DBL_EPSILON) * y / in do_hard_work()
254 *new_y = y * (4 / DBL_EPSILON / DBL_EPSILON); in do_hard_work()
618 if (ax == 1 && ay < DBL_EPSILON) in catanh()
[all …]
/freebsd/tools/regression/usr.bin/cc/
H A Dfloat.c51 static const double one_d = 1.0 + DBL_EPSILON / 2;
181 1.0 + DBL_EPSILON != 1.0 && in run_tests()
186 vd = DBL_EPSILON; in run_tests()
202 (double)(1.0 + DBL_EPSILON * 0.5) == 1.0 && in run_tests()
205 (double)(1.0L + DBL_EPSILON * 0.5L) == 1.0 && in run_tests()
225 d = 1.0L + DBL_EPSILON * 0.5L; in run_tests()
245 1.0 + DBL_MIN == 1.0 + DBL_EPSILON && in run_tests()
/freebsd/lib/msun/tests/
H A Dtrig_test.c182 ATF_CHECK(fabs(sin(d_pi_odd[i])) < 2 * DBL_EPSILON); in ATF_TC_BODY()
184 ATF_CHECK(fabs(tan(d_pi_odd[i])) < 2 * DBL_EPSILON); in ATF_TC_BODY()
186 ATF_CHECK(fabs(sin(-d_pi_odd[i])) < 2 * DBL_EPSILON); in ATF_TC_BODY()
188 ATF_CHECK(fabs(tan(-d_pi_odd[i])) < 2 * DBL_EPSILON); in ATF_TC_BODY()
190 ATF_CHECK(fabs(sin(d_pi_odd[i] * 2)) < 2 * DBL_EPSILON); in ATF_TC_BODY()
192 ATF_CHECK(fabs(tan(d_pi_odd[i] * 2)) < 2 * DBL_EPSILON); in ATF_TC_BODY()
194 ATF_CHECK(fabs(sin(-d_pi_odd[i] * 2)) < 2 * DBL_EPSILON); in ATF_TC_BODY()
196 ATF_CHECK(fabs(tan(-d_pi_odd[i] * 2)) < 2 * DBL_EPSILON); in ATF_TC_BODY()
H A Dfma_test.c186 test(fma, one, one, 0x1.0p-200, 1.0 + DBL_EPSILON, in test_small_z()
199 test(fma, -one, one, -0x1.0p-200, -(1.0 + DBL_EPSILON), in test_small_z()
212 test(fma, one, one, -0x1.0p-200, 1.0 - DBL_EPSILON / 2, in test_small_z()
225 test(fma, -one, one, 0x1.0p-200, -1.0 + DBL_EPSILON / 2, in test_small_z()
245 test(fma, 0x1.0p-100, 0x1.0p-100, 1.0, 1.0 + DBL_EPSILON, in test_big_z()
258 test(fma, -0x1.0p-100, 0x1.0p-100, -1.0, -(1.0 + DBL_EPSILON), in test_big_z()
272 -1.0 + DBL_EPSILON / 2, ALL_STD_EXCEPT, FE_INEXACT); in test_big_z()
284 test(fma, 0x1.0p-100, -0x1.0p-100, 1.0, 1.0 - DBL_EPSILON / 2, in test_big_z()
H A Dnext_test.c144 testboth(1.0, 2.0, 1.0 + DBL_EPSILON, 0, ); in ATF_TC_BODY()
145 testboth(1.0, -INFINITY, 1.0 - DBL_EPSILON / 2, 0, ); in ATF_TC_BODY()
151 testboth(-1.0, 2.0, -1.0 + DBL_EPSILON / 2, 0, ); in ATF_TC_BODY()
152 testboth(-1.0, -INFINITY, -1.0 - DBL_EPSILON, 0, ); in ATF_TC_BODY()
159 test(nexttoward(1.0, 1.0 + ldbl_eps), 1.0 + DBL_EPSILON, 0); in ATF_TC_BODY()
H A Dfenv_test.c146 if (d + (DBL_EPSILON * 3.0 / 4.0) == 1.0) in getround()
148 if (d + (DBL_EPSILON * 1.0 / 4.0) > 1.0) in getround()
/freebsd/contrib/netbsd-tests/lib/libm/
H A Dt_precision.c59 x += DBL_EPSILON; in ATF_TC_BODY()
62 ATF_CHECK(x == DBL_EPSILON); in ATF_TC_BODY()
65 x += DBL_EPSILON; in ATF_TC_BODY()
H A Dt_modf.c56 ATF_CHECK(modf(-1 - DBL_EPSILON, &base) == -DBL_EPSILON); in ATF_TC_BODY()
H A Dt_fmod.c60 ATF_CHECK(fabs(fmod(1.0, 0.1) - 0.1) <= 55 * DBL_EPSILON); in ATF_TC_BODY()
H A Dt_cos.c79 const long double eps = DBL_EPSILON; in ATF_TC_BODY()
175 const double eps = DBL_EPSILON; in ATF_TC_BODY()
H A Dt_sqrt.c65 const double eps = DBL_EPSILON; in ATF_TC_BODY()
280 const long double eps = DBL_EPSILON; /* XXX powl == pow for now */ in ATF_TC_BODY()
H A Dt_cosh.c67 const double eps = DBL_EPSILON; in ATF_TC_BODY()
H A Dt_sin.c72 const double eps = DBL_EPSILON; in ATF_TC_BODY()
H A Dt_sinh.c66 const double eps = DBL_EPSILON; in ATF_TC_BODY()
H A Dt_tan.c68 const double eps = DBL_EPSILON; in ATF_TC_BODY()
H A Dt_asin.c121 const double eps = DBL_EPSILON; in ATF_TC_BODY()
/freebsd/sys/arm/include/
H A Dfloat.h68 #define DBL_EPSILON 2.2204460492503131E-16 macro
83 #define LDBL_EPSILON ((long double)DBL_EPSILON)
/freebsd/sys/powerpc/include/
H A Dfloat.h69 #define DBL_EPSILON 2.2204460492503131E-16 macro
84 #define LDBL_EPSILON ((long double)DBL_EPSILON)
/freebsd/contrib/llvm-project/clang/lib/Headers/
H A Dfloat.h70 # undef DBL_EPSILON
148 #define DBL_EPSILON __DBL_EPSILON__ macro
/freebsd/sys/arm64/include/
H A Dfloat.h66 #define DBL_EPSILON 2.2204460492503131E-16 macro
/freebsd/sys/riscv/include/
H A Dfloat.h62 #define DBL_EPSILON 2.2204460492503131E-16 macro
/freebsd/sys/x86/include/
H A Dfloat.h68 #define DBL_EPSILON 2.2204460492503131E-16 macro
/freebsd/contrib/llvm-project/libcxx/include/
H A Dcfloat60 DBL_EPSILON
/freebsd/contrib/libcbor/examples/
H A Dcjson2cbor.c72 if (fabs(source->valuedouble - source->valueint) > DBL_EPSILON) { in cjson_cbor_stream_decode()
/freebsd/contrib/llvm-project/compiler-rt/lib/nsan/
H A Dnsan.h125 static constexpr const float kEpsilon = DBL_EPSILON;

12