Home
last modified time | relevance | path

Searched refs:fabs (Results 1 – 25 of 213) sorted by relevance

123456789

/freebsd/lib/msun/tests/
H A 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()
182 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()
[all …]
/freebsd/lib/msun/src/
H A Ds_csqrt.c64 return (CMPLX(fabs(b - b), copysign(a, b))); in csqrt()
74 if (fabs(a) >= THRESH || fabs(b) >= THRESH) { in csqrt()
80 if (fabs(a) >= 0x1p-1020) in csqrt()
82 if (fabs(b) >= 0x1p-1020) in csqrt()
90 if (fabs(a) < 0x1p-1022 && fabs(b) < 0x1p-1022) { in csqrt()
103 rx = scale * fabs(b) / (2 * t); in csqrt()
H A Dcatrig.c36 #define isinf(x) (fabs(x) == INFINITY)
182 } else if (x >= DBL_EPSILON * fabs(y - 1)) { in do_hard_work()
235 } else if (x >= DBL_EPSILON * fabs(y - 1)) { in do_hard_work()
282 ax = fabs(x); in casinh()
283 ay = fabs(y); in casinh()
366 ax = fabs(x); in cacos()
367 ay = fabs(y); in cacos()
390 rx = fabs(cimag(w)); in cacos()
443 return (CMPLX(fabs(ry), rx)); in cacosh()
447 return (CMPLX(fabs(ry), copysign(rx, cimag(z)))); in cacosh()
[all …]
H A De_cosh.c56 t = expm1(fabs(x)); in cosh()
64 t = exp(fabs(x)); in cosh()
69 if (ix < 0x40862E42) return half*exp(fabs(x)); in cosh()
73 return __ldexp_exp(fabs(x), -1); in cosh()
H A De_sinh.c57 t = expm1(fabs(x)); in sinh()
63 if (ix < 0x40862E42) return h*exp(fabs(x)); in sinh()
67 return h*2.0*__ldexp_exp(fabs(x), -1); in sinh()
H A Ds_asinh.c45 w = log(fabs(x))+ln2; in asinh()
47 t = fabs(x); in asinh()
51 w =log1p(fabs(x)+t/(one+sqrt(one+t))); in asinh()
H A De_hypot.c61 a = fabs(a); in hypot()
62 b = fabs(b); in hypot()
69 w = fabsl(x+0.0L)-fabs(y+0); in hypot()
H A De_jn.c71 x = fabs(x); in jn()
176 tmp = tmp*log(fabs(v*tmp)); in jn()
202 if (fabs(z) >= fabs(w)) in jn()
H A Ds_tanh.c65 t = expm1(two*fabs(x)); in tanh()
68 t = expm1(-two*fabs(x)); in tanh()
H A De_remainder.c53 x = fabs(x); in remainder()
54 p = fabs(p); in remainder()
/freebsd/contrib/llvm-project/libcxx/include/__math/
H A Dabs.h26 _LIBCPP_NODISCARD inline _LIBCPP_HIDE_FROM_ABI float fabs(float __x) _NOEXCEPT { return __builtin_f… in fabs() function
29 _LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI double fabs(double __x) _NOEXCEPT { in fabs() function
33 _LIBCPP_NODISCARD inline _LIBCPP_HIDE_FROM_ABI long double fabs(long double __x) _NOEXCEPT { in fabs() function
38 _LIBCPP_NODISCARD inline _LIBCPP_HIDE_FROM_ABI double fabs(_A1 __x) _NOEXCEPT { in fabs() function
H A Dhypot.h66 …const _Real __max_abs = std::max(__math::fabs(__x), std::max(__math::fabs(__y), __math::fabs(__z))… in __hypot()
/freebsd/lib/libc/aarch64/gen/
H A Dfabs.S29 ENTRY(fabs)
30 fabs d0, d0 define
32 END(fabs)
/freebsd/lib/libc/powerpc64/gen/
H A Dfabs.S31 ENTRY(fabs)
32 fabs %f1,%f1
34 END(fabs)
/freebsd/lib/libc/powerpc/gen/
H A Dfabs.S31 ENTRY(fabs)
32 fabs %f1,%f1
34 END(fabs)
/freebsd/lib/libc/i386/gen/
H A Dfabs.S34 ENTRY(fabs)
36 fabs
38 END(fabs)
/freebsd/lib/libc/riscv/gen/
H A Dfabs.S40 ENTRY(fabs)
42 fabs.d fa0, fa0
48 END(fabs)
/freebsd/contrib/netbsd-tests/lib/libm/
H A Dt_pow.c97 if (fabs(z) > 0.0 || signbit(z) == 0) in ATF_TC_BODY()
102 if (fabs(z) > 0.0 || signbit(z) != 0) in ATF_TC_BODY()
128 if (fabs(z) > 0.0 || signbit(z) != 0) in ATF_TC_BODY()
149 if (fabs(z) > 0.0 || signbit(z) != 0) in ATF_TC_BODY()
175 if (fabs(z) > 0.0 || signbit(z) != 0) in ATF_TC_BODY()
254 if (fabs(z) > 0.0 || signbit(z) != 0) in ATF_TC_BODY()
259 if (fabs(z) > 0.0 || signbit(z) == 0) in ATF_TC_BODY()
268 if (fabs(z) > 0.0 || signbit(z) != 0) in ATF_TC_BODY()
273 if (fabs(z) > 0.0 || signbit(z) != 0) in ATF_TC_BODY()
H A Dt_asin.c128 if (!(fabs((asin(x) - y)/y) <= eps)) in ATF_TC_BODY()
145 if (fabs(y) > 0.0 || signbit(y) == 0) in ATF_TC_BODY()
160 if (fabs(y) > 0.0 || signbit(y) != 0) in ATF_TC_BODY()
243 if (fabs(x) == 0.5) in ATF_TC_BODY()
252 if (fabs(x) == 0.5) in ATF_TC_BODY()
H A Dt_exp.c214 if (fabs(y) > 0.0 || signbit(y) != 0) in ATF_TC_BODY()
248 if (!(fabs((exp(x) - e_x)/e_x) <= eps)) { in ATF_TC_BODY()
265 if (fabs(exp(x) - 1.0) > 0.0) in ATF_TC_BODY()
279 if (fabs(exp(x) - 1.0) > 0.0) in ATF_TC_BODY()
437 if (fabs(y) > 0.0 || signbit(y) == 0) in ATF_TC_BODY()
452 if (fabs(y) > 0.0 || signbit(y) != 0) in ATF_TC_BODY()
H A Dt_ceil.c59 ATF_CHECK(fabs(ceil(x) - 1) < SMALL_NUM); in ATF_TC_BODY()
60 ATF_CHECK(fabs(ceil(y) - 1) < SMALL_NUM); in ATF_TC_BODY()
117 if (fabs(y) > 0.0 || signbit(y) == 0) in ATF_TC_BODY()
132 if (fabs(y) > 0.0 || signbit(y) != 0) in ATF_TC_BODY()
390 if (fabs(y) > 0.0 || signbit(y) == 0) in ATF_TC_BODY()
405 if (fabs(y) > 0.0 || signbit(y) != 0) in ATF_TC_BODY()
663 if (fabs(y) > 0.0 || signbit(y) == 0) in ATF_TC_BODY()
678 if (fabs(y) > 0.0 || signbit(y) != 0) in ATF_TC_BODY()
/freebsd/tests/sys/sys/
H A Dqmath_test.c251 maxe_dbl = fabs(((1.0 / Q_NFBITS(a_s64q)) * (double)b_int) + in ATF_TC_BODY()
256 delta_dbl = fabs(r_dbl - Q_Q2D(r_s64q)); in ATF_TC_BODY()
301 maxe_dbl = fabs(1.0 / (1ULL << Q_NFBITS(a_s64q))); in ATF_TC_BODY()
305 delta_dbl = fabs(r_dbl - Q_Q2D(r_s64q)); in ATF_TC_BODY()
353 delta_dbl = fabs(r_dbl - Q_Q2D(r_s64q)); in ATF_TC_BODY()
398 delta_dbl = fabs(r_dbl - Q_Q2D(r_s64q)); in ATF_TC_BODY()
444 maxe_dbl = fabs(1.0 / Q_NFBITS(a_s64q)); in ATF_TC_BODY()
445 delta_dbl = fabs(r_dbl - Q_Q2D(r_s64q)); in ATF_TC_BODY()
491 maxe_dbl = fabs((1.0 / Q_NFBITS(a_s64q)) * (double)b_int); in ATF_TC_BODY()
492 delta_dbl = fabs(r_dbl - Q_Q2D(r_s64q)); in ATF_TC_BODY()
[all …]
/freebsd/lib/libc/powerpcspe/gen/
H A Dfabs.S31 ENTRY(fabs)
35 END(fabs)
/freebsd/lib/libc/amd64/gen/
H A Dfabs.S33 ENTRY(fabs)
38 END(fabs)
/freebsd/contrib/arm-optimized-routines/math/
H A Derf.c92 double a = fabs (x) - 1.0; in erf()
113 double a = fabs (x); in erf()
143 double a = fabs (x); in erf()
175 double a = fabs (x); in erf()
203 double a = fabs (x); in erf()

123456789