Home
last modified time | relevance | path

Searched refs:FLT_EPSILON (Results 1 – 20 of 20) sorted by relevance

/freebsd-12-stable/tools/regression/usr.bin/cc/
Dfloat.c52 static const float one_f = 1.0 + FLT_EPSILON / 2;
182 1.0F + FLT_EPSILON != 1.0F && in run_tests()
187 vf = FLT_EPSILON; in run_tests()
194 (float)(1.0F + FLT_EPSILON * 0.5F) == 1.0F && in run_tests()
197 (float)(1.0 + FLT_EPSILON * 0.5) == 1.0F && in run_tests()
200 (float)(1.0L + FLT_EPSILON * 0.5L) == 1.0F && in run_tests()
220 == (1.0 + FLT_EPSILON * 0.5) * 512.0 in run_tests()
226 f = 1.0 + FLT_EPSILON * 0.5; in run_tests()
246 1.0F + FLT_MIN == 1.0F + FLT_EPSILON && in run_tests()
/freebsd-12-stable/lib/msun/src/
Dcatrigf.c68 RECIP_EPSILON = 1 / FLT_EPSILON,
104 if (y == 1 && x < FLT_EPSILON * FLT_EPSILON / 128) { in do_hard_work()
106 } else if (x >= FLT_EPSILON * fabsf(y - 1)) { in do_hard_work()
122 *sqrt_A2my2 = A * (2 / FLT_EPSILON); in do_hard_work()
123 *new_y = y * (2 / FLT_EPSILON); in do_hard_work()
132 if (y == 1 && x < FLT_EPSILON / 128) { in do_hard_work()
134 } else if (x >= FLT_EPSILON * fabsf(y - 1)) { in do_hard_work()
138 *sqrt_A2my2 = x * (4 / FLT_EPSILON / FLT_EPSILON) * y / in do_hard_work()
140 *new_y = y * (4 / FLT_EPSILON / FLT_EPSILON); in do_hard_work()
374 if (ax == 1 && ay < FLT_EPSILON) in catanhf()
[all …]
/freebsd-12-stable/lib/msun/tests/
Dtrig_test.c164 ATF_CHECK(fabs(sinf(f_pi_odd[i])) < FLT_EPSILON); in ATF_TC_BODY()
166 ATF_CHECK(fabs(tan(f_pi_odd[i])) < FLT_EPSILON); in ATF_TC_BODY()
168 ATF_CHECK(fabs(sinf(-f_pi_odd[i])) < FLT_EPSILON); in ATF_TC_BODY()
170 ATF_CHECK(fabs(tanf(-f_pi_odd[i])) < FLT_EPSILON); in ATF_TC_BODY()
172 ATF_CHECK(fabs(sinf(f_pi_odd[i] * 2)) < FLT_EPSILON); in ATF_TC_BODY()
174 ATF_CHECK(fabs(tanf(f_pi_odd[i] * 2)) < FLT_EPSILON); in ATF_TC_BODY()
176 ATF_CHECK(fabs(sinf(-f_pi_odd[i] * 2)) < FLT_EPSILON); in ATF_TC_BODY()
178 ATF_CHECK(fabs(tanf(-f_pi_odd[i] * 2)) < FLT_EPSILON); in ATF_TC_BODY()
Dfma_test.c190 test(fmaf, one, one, 0x1.0p-100, 1.0 + FLT_EPSILON, in test_small_z()
203 test(fmaf, -one, one, -0x1.0p-100, -(1.0 + FLT_EPSILON), in test_small_z()
216 test(fmaf, one, one, -0x1.0p-100, 1.0 - FLT_EPSILON / 2, in test_small_z()
229 test(fmaf, -one, one, 0x1.0p-100, -1.0 + FLT_EPSILON / 2, in test_small_z()
250 test(fmaf, 0x1.0p-50, 0x1.0p-50, 1.0, 1.0 + FLT_EPSILON, in test_big_z()
263 test(fmaf, -0x1.0p-50, 0x1.0p-50, -1.0, -(1.0 + FLT_EPSILON), in test_big_z()
277 -1.0 + FLT_EPSILON / 2, ALL_STD_EXCEPT, FE_INEXACT); in test_big_z()
289 test(fmaf, 0x1.0p-50, -0x1.0p-50, 1.0, 1.0 - FLT_EPSILON / 2, in test_big_z()
Dnext_test.c144 testboth(1.0, 2.0, 1.0 + FLT_EPSILON, 0, f); in main()
145 testboth(1.0, -INFINITY, 1.0 - FLT_EPSILON/2, 0, f); in main()
151 testboth(-1.0, 2.0, -1.0 + FLT_EPSILON/2, 0, f); in main()
152 testboth(-1.0, -INFINITY, -1.0 - FLT_EPSILON, 0, f); in main()
158 testf(nexttowardf(1.0, 1.0 + ldbl_eps), 1.0 + FLT_EPSILON, 0); in main()
/freebsd-12-stable/tests/sys/kern/acct/
Dacct_test.c64 ATF_CHECK(eps <= FLT_EPSILON); in check_result()
65 if (eps > FLT_EPSILON) { in check_result()
70 printf("Epsilon=%lg, rather than %g\n", eps, FLT_EPSILON); in check_result()
87 ATF_CHECK(fabs(v.f - 0.0) < FLT_EPSILON); in ATF_TC_BODY()
/freebsd-12-stable/contrib/netbsd-tests/lib/libm/
Dt_modf.c54 ATF_CHECK(modff(-1 - FLT_EPSILON, &basef) == -FLT_EPSILON); in ATF_TC_BODY()
Dt_fmod.c63 ATF_CHECK(fabsf(fmodf(1.0, 0.1) - 0.1f) <= 55 * FLT_EPSILON); in ATF_TC_BODY()
Dt_scalbn.c231 ATF_CHECK_MSG(fabs(rv-tests[i].result)<2.0*FLT_EPSILON, in ATF_TC_BODY()
/freebsd-12-stable/contrib/gcc/ginclude/
Dfloat.h113 #undef FLT_EPSILON
116 #define FLT_EPSILON __FLT_EPSILON__ macro
/freebsd-12-stable/contrib/llvm-project/clang/lib/Headers/
Dfloat.h61 # undef FLT_EPSILON
118 #define FLT_EPSILON __FLT_EPSILON__ macro
Dopencl-c-base.h221 #define FLT_EPSILON 0x1.0p-23f macro
/freebsd-12-stable/sys/arm64/include/
Dfloat.h50 #define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */ macro
/freebsd-12-stable/sys/riscv/include/
Dfloat.h50 #define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */ macro
/freebsd-12-stable/sys/sparc64/include/
Dfloat.h57 #define FLT_EPSILON 1.19209290E-7F /* b**(1-p) */ macro
/freebsd-12-stable/sys/x86/include/
Dfloat.h56 #define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */ macro
/freebsd-12-stable/sys/mips/include/
Dfloat.h55 #define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */ macro
/freebsd-12-stable/sys/powerpc/include/
Dfloat.h57 #define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */ macro
/freebsd-12-stable/sys/arm/include/
Dfloat.h56 #define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */ macro
/freebsd-12-stable/contrib/llvm-project/libcxx/include/
Dcfloat59 FLT_EPSILON