Home
last modified time | relevance | path

Searched refs:copysign (Results 1 – 13 of 13) sorted by relevance

/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_scalbn.c51 if (k > 0x7fe) return huge*copysign(huge,x); /* overflow */ in scalbn()
56 return huge*copysign(huge,x); /*overflow*/ in scalbn()
57 else return tiny*copysign(tiny,x); /*underflow*/ in scalbn()
Ds_ccosh.c73 return (cpack(h * cos(y), copysign(h, x) * sin(y))); in ccosh()
77 return (cpack(creal(z), cimag(z) * copysign(1, x))); in ccosh()
95 return (cpack(y - y, copysign(0, x * (y - y)))); in ccosh()
105 return (cpack(x * x, copysign(0, x) * y)); in ccosh()
106 return (cpack(x * x, copysign(0, (x + x) * y))); in ccosh()
Ds_csqrt.c76 return (cpack(fabs(b - b), copysign(a, b))); in csqrt()
78 return (cpack(a, copysign(b - b, b))); in csqrt()
100 result = cpack(fabs(b) / (2 * t), copysign(t, b)); in csqrt()
Ds_csinh.c73 return (cpack(copysign(h, x) * cos(y), h * sin(y))); in csinh()
77 return (cpack(creal(z) * copysign(1, x), cimag(z))); in csinh()
95 return (cpack(copysign(0, x * (y - y)), y - y)); in csinh()
105 return (cpack(x, copysign(0, y))); in csinh()
Ds_scalbnl.c64 return huge*copysign(huge,x); /*overflow*/ in scalbnl()
65 else return tiny*copysign(tiny,x); /*underflow*/ in scalbnl()
Ds_copysign.c26 copysign(double x, double y) in copysign() function
Ds_cproj.c42 return (cpack(INFINITY, copysign(0.0, cimag(z)))); in cproj()
Ds_ctanh.c107 return (cpack(x, copysign(0, isinf(y) ? y : sin(y) * cos(y)))); in ctanh()
124 return (cpack(copysign(1, x), in ctanh()
Ds_fma.c238 zs = copysign(DBL_MIN, zs); in fma()
/bionic/libm/upstream-freebsd/lib/msun/bsdsrc/
Db_exp.c103 k=invln2*x+copysign(0.5,x); /* k=NINT(x/ln2) */
148 k = z + copysign(.5, x);
/bionic/libm/
Dfake_long_double.c40 long double copysignl(long double a1, long double a2) { return copysign(a1, a2); } in copysignl()
/bionic/tests/
Dmath_test.cpp918 TEST(math, copysign) { in TEST() argument
919 ASSERT_FLOAT_EQ(0.0, copysign(0.0, 1.0)); in TEST()
920 ASSERT_FLOAT_EQ(-0.0, copysign(0.0, -1.0)); in TEST()
921 ASSERT_FLOAT_EQ(2.0, copysign(2.0, 1.0)); in TEST()
922 ASSERT_FLOAT_EQ(-2.0, copysign(2.0, -1.0)); in TEST()
/bionic/libm/include/
Dmath.h265 double copysign(double, double) __pure2;