Searched refs:DBL_EPSILON (Results 1 - 20 of 20) sorted by relevance

/freebsd-11.0-release/contrib/netbsd-tests/lib/libm/
H A Dt_precision.c52 x += DBL_EPSILON;
55 ATF_CHECK(x == DBL_EPSILON);
58 x += DBL_EPSILON;
H A Dt_modf.c56 ATF_CHECK(modf(-1 - DBL_EPSILON, &base) == -DBL_EPSILON);
H A Dt_fmod.c57 ATF_CHECK(fabs(fmod(1.0, 0.1) - 0.1) <= 55 * DBL_EPSILON);
H A Dt_sqrt.c269 const long double eps = 5.0*DBL_EPSILON; /* XXX powl == pow for now */
H A Dt_scalbn.c91 ATF_CHECK_MSG(fabs(rv-tests[i].result)<2.0*DBL_EPSILON,
/freebsd-11.0-release/sys/mips/include/
H A Dfloat.h72 #define DBL_EPSILON 2.2204460492503131E-16 macro
87 #define LDBL_EPSILON ((long double)DBL_EPSILON)
/freebsd-11.0-release/sys/arm/include/
H A Dfloat.h69 #define DBL_EPSILON 2.2204460492503131E-16 macro
84 #define LDBL_EPSILON ((long double)DBL_EPSILON)
/freebsd-11.0-release/sys/powerpc/include/
H A Dfloat.h70 #define DBL_EPSILON 2.2204460492503131E-16 macro
85 #define LDBL_EPSILON ((long double)DBL_EPSILON)
/freebsd-11.0-release/contrib/gcc/ginclude/
H A Dfloat.h114 #undef DBL_EPSILON macro
117 #define DBL_EPSILON __DBL_EPSILON__ macro
/freebsd-11.0-release/lib/msun/tests/
H A Dtrig_test.c177 assert(fabs(sin(d_pi_odd[i])) < 2 * DBL_EPSILON);
179 assert(fabs(tan(d_pi_odd[i])) < 2 * DBL_EPSILON);
181 assert(fabs(sin(-d_pi_odd[i])) < 2 * DBL_EPSILON);
183 assert(fabs(tan(-d_pi_odd[i])) < 2 * DBL_EPSILON);
185 assert(fabs(sin(d_pi_odd[i] * 2)) < 2 * DBL_EPSILON);
187 assert(fabs(tan(d_pi_odd[i] * 2)) < 2 * DBL_EPSILON);
189 assert(fabs(sin(-d_pi_odd[i] * 2)) < 2 * DBL_EPSILON);
191 assert(fabs(tan(-d_pi_odd[i] * 2)) < 2 * DBL_EPSILON);
H A Dnext_test.c142 testboth(1.0, 2.0, 1.0 + DBL_EPSILON, 0, );
143 testboth(1.0, -INFINITY, 1.0 - DBL_EPSILON/2, 0, );
149 testboth(-1.0, 2.0, -1.0 + DBL_EPSILON/2, 0, );
150 testboth(-1.0, -INFINITY, -1.0 - DBL_EPSILON, 0, );
157 test(nexttoward(1.0, 1.0 + ldbl_eps), 1.0 + DBL_EPSILON, 0);
H A Dfma_test.c192 test(fma, one, one, 0x1.0p-200, 1.0 + DBL_EPSILON,
205 test(fma, -one, one, -0x1.0p-200, -(1.0 + DBL_EPSILON),
218 test(fma, one, one, -0x1.0p-200, 1.0 - DBL_EPSILON / 2,
231 test(fma, -one, one, 0x1.0p-200, -1.0 + DBL_EPSILON / 2,
252 test(fma, 0x1.0p-100, 0x1.0p-100, 1.0, 1.0 + DBL_EPSILON,
265 test(fma, -0x1.0p-100, 0x1.0p-100, -1.0, -(1.0 + DBL_EPSILON),
279 -1.0 + DBL_EPSILON / 2, ALL_STD_EXCEPT, FE_INEXACT);
291 test(fma, 0x1.0p-100, -0x1.0p-100, 1.0, 1.0 - DBL_EPSILON / 2,
H A Dfenv_test.c562 if (d + (DBL_EPSILON * 3.0 / 4.0) == 1.0)
564 if (d + (DBL_EPSILON * 1.0 / 4.0) > 1.0)
/freebsd-11.0-release/sys/riscv/include/
H A Dfloat.h65 #define DBL_EPSILON 2.2204460492503131E-16 macro
80 #define LDBL_EPSILON ((long double)DBL_EPSILON)
/freebsd-11.0-release/lib/msun/src/
H A Dcatrig.c44 /* We need that DBL_EPSILON^2/128 is larger than FOUR_SQRT_MIN. */
53 RECIP_EPSILON = 1 / DBL_EPSILON,
177 if (y == 1 && x < DBL_EPSILON * DBL_EPSILON / 128) {
183 } else if (x >= DBL_EPSILON * fabs(y - 1)) {
186 * x >= DBL_EPSILON^2/128 >= FOUR_SQRT_MIN
215 *sqrt_A2my2 = A * (2 / DBL_EPSILON);
216 *new_y = y * (2 / DBL_EPSILON);
230 if (y == 1 && x < DBL_EPSILON / 128) {
236 } else if (x >= DBL_EPSILON * fab
[all...]
/freebsd-11.0-release/tools/regression/usr.bin/cc/
H A Dfloat.c53 static const double one_d = 1.0 + DBL_EPSILON / 2;
183 1.0 + DBL_EPSILON != 1.0 &&
188 vd = DBL_EPSILON;
204 (double)(1.0 + DBL_EPSILON * 0.5) == 1.0 &&
207 (double)(1.0L + DBL_EPSILON * 0.5L) == 1.0 &&
227 d = 1.0L + DBL_EPSILON * 0.5L;
247 1.0 + DBL_MIN == 1.0 + DBL_EPSILON &&
/freebsd-11.0-release/sys/arm64/include/
H A Dfloat.h65 #define DBL_EPSILON 2.2204460492503131E-16 macro
/freebsd-11.0-release/sys/x86/include/
H A Dfloat.h69 #define DBL_EPSILON 2.2204460492503131E-16 macro
/freebsd-11.0-release/sys/sparc64/include/
H A Dfloat.h70 #define DBL_EPSILON 2.2204460492503131E-16 macro
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/Headers/
H A Dfloat.h62 # undef DBL_EPSILON macro
111 #define DBL_EPSILON __DBL_EPSILON__ macro

Completed in 189 milliseconds