Home
last modified time | relevance | path

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

12345678910>>...22

/netbsd-src/external/gpl3/gdb/dist/sim/testsuite/sh/
H A Dfabs.s1 # sh testcase for fabs
13 # fabs(0.0) = 0.0.
15 fabs fr0
21 # fabs(1.0) = 1.0.
23 fabs fr0
29 # fabs(-1.0) = 1.0.
32 fabs fr0
59 # fabs(0.0) = 0.0.
63 fabs dr0
66 # fabs(1.0) = 1.0.
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/math/
H A Dalgebraic.d53 return fabs(x);
129 real fabs(real x) @safe pure nothrow @nogc { return core.math.fabs(x); } in pragma()
133 double fabs(double x) @safe pure nothrow @nogc { return core.math.fabs(x); } in pragma()
137 float fabs(float x) @safe pure nothrow @nogc { return core.math.fabs(x); } in pragma()
144 assert(isIdentical(fabs(0.0f), 0.0f));
145 assert(isIdentical(fabs(-0.0f), 0.0f));
146 assert(fabs(-10.0f) == 10.0f);
148 assert(isIdentical(fabs(0.0), 0.0));
149 assert(isIdentical(fabs(-0.0), 0.0));
150 assert(fabs(-10.0) == 10.0);
[all …]
H A Dtrigonometry.d93 import std.math.algebraic : fabs;
96 assert(fabs(f - -0.416147f) < .00001);
99 assert(fabs(d - -0.416147f) < .00001);
102 assert(fabs(r - -0.416147f) < .00001);
155 import std.math.algebraic : fabs;
158 assert(fabs(f - -0.909297f) < .00001);
161 assert(fabs(d - -0.909297f) < .00001);
164 assert(fabs(r - -0.909297f) < .00001);
525 import std.math.algebraic : fabs;
529 assert(fabs(f - 2.18504f) < .00001);
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/internal/math/
H A Dgammafunction.d297 if ( fabs(x) > MAXGAMMA ) return real.infinity; in gamma()
300 q = fabs(x); in gamma()
329 z = fabs(z) * gammaStirling(q); in gamma()
453 if (fabs(x) == x.infinity) return x.infinity; in logGamma()
493 if ( fabs(x) <= 0.03125 ) in logGamma()
503 return log( fabs(q) ); in logGamma()
509 z = fabs(z); in logGamma()
566 assert( feqrel(log(fabs(gamma(testpoints[i]))), testpoints[i+1]) > real.mant_dig-5);
569 assert(logGamma(-50.2) == log(fabs(gamma(-50.2))));
570 assert(logGamma(-0.008) == log(fabs(gamma(-0.008))));
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/internal/math/
H A Dgammafunction.d24 import core.math : fabs, sin, sqrt;
300 if ( fabs(x) > MAXGAMMA ) return real.infinity; in gamma()
303 q = fabs(x); in gamma()
332 z = fabs(z) * gammaStirling(q); in gamma()
456 if (fabs(x) == x.infinity) return x.infinity; in logGamma()
496 if ( fabs(x) <= 0.03125L ) in logGamma()
506 return log( fabs(q) ); in logGamma()
512 z = fabs(z); in logGamma()
569 assert( feqrel(log(fabs(gamma(testpoints[i]))), testpoints[i+1]) > real.mant_dig-5);
572 assert(feqrel(logGamma(-50.2L),log(fabs(gamma(-50.2L)))) > real.mant_dig-2);
[all …]
/netbsd-src/lib/libm/complex/
H A Dcatrig.c51 #define isinf(x) (fabs(x) == INFINITY)
206 } else if (x >= DBL_EPSILON * fabs(y - 1)) { in do_hard_work()
259 } else if (x >= DBL_EPSILON * fabs(y - 1)) { in do_hard_work()
306 ax = fabs(x); in casinh()
307 ay = fabs(y); in casinh()
390 ax = fabs(x); in cacos()
391 ay = fabs(y); in cacos()
414 rx = fabs(cimag(w)); in cacos()
467 return (CMPLX(fabs(ry), rx)); in cacosh()
471 return (CMPLX(fabs(ry), copysign(rx, cimag(z)))); in cacosh()
[all …]
H A Dcsqrt.c73 if ((fabs(x) > 4.0) || (fabs(y) > 4.0)) { in csqrt()
92 r = scale * fabs((0.5 * y) / t ); in csqrt()
96 t = scale * fabs((0.5 * y) / r); in csqrt()
H A Dcephes_subr.c44 if (fabs(x) <= 0.5) { in _cchsh()
90 x = fabs(2.0 * creal(z)); in _ctans()
91 y = fabs(2.0 * cimag(z)); in _ctans()
122 } while (fabs(t/d) > MACHEP); in _ctans()
/netbsd-src/lib/libc/arch/powerpc/gen/
H A Dfabs_ieee754.S9 STRONG_ALIAS(fabsl, fabs)
11 ENTRY(fabs)
12 fabs %f1,%f1
14 END(fabs)
/netbsd-src/lib/libm/src/
H A De_cosh.c60 t = expm1(fabs(x)); in __ieee754_cosh()
68 t = __ieee754_exp(fabs(x)); in __ieee754_cosh()
73 if (ix < 0x40862E42) return half*__ieee754_exp(fabs(x)); in __ieee754_cosh()
79 w = __ieee754_exp(half*fabs(x)); in __ieee754_cosh()
H A Ds_asinh.c49 w = __ieee754_log(fabs(x))+ln2; in asinh()
51 t = fabs(x); in asinh()
55 w =log1p(fabs(x)+t/(one+__ieee754_sqrt(one+t))); in asinh()
H A De_sinh.c61 t = expm1(fabs(x)); in __ieee754_sinh()
67 if (ix < 0x40862E42) return h*__ieee754_exp(fabs(x)); in __ieee754_sinh()
72 w = __ieee754_exp(0.5*fabs(x)); in __ieee754_sinh()
/netbsd-src/lib/libc/arch/aarch64/gen/
H A Dfabs_ieee754.S36 ENTRY(fabs)
37 fabs d0, d0 define
39 END(fabs)
/netbsd-src/lib/libm/arch/riscv/
H A Ds_fabs.S7 ENTRY(fabs)
8 fabs.d fa0, fa0
10 END(fabs)
/netbsd-src/lib/libc/arch/i386/gen/
H A Dfabs.S42 ENTRY(fabs)
44 fabs
46 END(fabs)
/netbsd-src/lib/libc/arch/alpha/gen/
H A Dfabs.S32 STRONG_ALIAS(fabsl, fabs)
34 LEAF(fabs, 1)
37 END(fabs)
/netbsd-src/lib/libc/arch/vax/gen/
H A Dfabs.S37 STRONG_ALIAS(fabsl, fabs)
41 ENTRY(fabs, 0)
47 END(fabs)
/netbsd-src/lib/libc/arch/m68k/gen/
H A Dfabs.S38 STRONG_ALIAS(fabsl, fabs)
41 ENTRY(fabs)
51 END(fabs)
/netbsd-src/lib/libc/arch/mips/gen/
H A Dfabs.S50 STRONG_ALIAS(fabsl, fabs)
59 LEAF(fabs)
62 END(fabs)
/netbsd-src/lib/libc/arch/sparc/gen/
H A Dfabs.S49 STRONG_ALIAS(fabsl, fabs)
51 ENTRY(fabs)
56 END(fabs)
/netbsd-src/tests/lib/libc/stdlib/
H A Dt_strtod.c125 ATF_CHECK_EQ_MSG(fabs(d), 0, "d=%g=%a, fabs(d)=%g=%a", in ATF_TC_BODY()
126 d, d, fabs(d), fabs(d)); in ATF_TC_BODY()
133 ATF_CHECK_EQ_MSG(fabs(d), 0, "d=%g=%a fabs(d)=%g=%a", in ATF_TC_BODY()
134 d, d, fabs(d), fabs(d)); in ATF_TC_BODY()
/netbsd-src/tests/lib/libm/
H A Dt_pow.c96 ATF_CHECK_MSG(fabs(z) == 0.0, "x=%a z=%s=%a", x, "pow(x, -3.0)", z); in ATF_TC_BODY()
100 ATF_CHECK_MSG(fabs(z) == 0.0, "x=%a z=%s=%a", x, "pow(x, -4.0)", z); in ATF_TC_BODY()
124 ATF_CHECK_MSG(fabs(z) == 0.0, "y=%a z=%s=%a", y, "pow(1.1, y)", z); in ATF_TC_BODY()
144 ATF_CHECK_MSG(fabs(z) == 0.0, "x=%a z=%s=%a", x, "pow(x, -2.0)", z); in ATF_TC_BODY()
168 ATF_CHECK_MSG(fabs(z) == 0, "y=%a z=%s=%a", y, "pow(0.1, y)", z); in ATF_TC_BODY()
240 ATF_CHECK_MSG(fabs(z) == 0.0, "z=%a", z); in ATF_TC_BODY()
244 ATF_CHECK_MSG(fabs(z) == 0.0, "z=%a", z); in ATF_TC_BODY()
252 ATF_CHECK_MSG(fabs(z) == 0.0, "z=%a", z); in ATF_TC_BODY()
256 ATF_CHECK_MSG(fabs(z) == 0.0, "z=%a", z); 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()
242 if (fabs(x) == 0.5) in ATF_TC_BODY()
251 if (fabs(x) == 0.5) in ATF_TC_BODY()
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/
H A Dmath.d153 float fabs(float x);
154 double fabs(double x); /// ditto
155 real fabs(real x); /// ditto
244 return fabs((lhs - rhs) / rhs) <= 1e-2 || fabs(lhs - rhs) <= 1e-5; in approxEqual()
/netbsd-src/external/gpl3/gcc/dist/libgcc/config/rs6000/
H A Dibm-ldouble.c52 #define fabs(x) __builtin_fabs(x) macro
58 #define nonfinite(a) unlikely (! isless (fabs (a), inf ()))
130 if (fabs (z) != inf()) in ldouble_qadd_internal()
137 if (fabs(a) > fabs(c)) in ldouble_qadd_internal()
222 if (fabs (a) <= 0x1p-969) in __gcc_qdiv()

12345678910>>...22