Home
last modified time | relevance | path

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

/bionic/libm/upstream-freebsd/lib/msun/src/
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_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_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
Dcatrig.c310 return (cpack(copysign(creal(w), x), copysign(cimag(w), y))); in casinh()
328 return (cpack(copysign(rx, x), copysign(ry, y))); in casinh()
448 return (cpack(fabs(ry), copysign(rx, cimag(z)))); in cacosh()
587 return (cpack(copysign(0, x), y + y)); in catanh()
590 return (cpack(copysign(0, x), in catanh()
591 copysign(pio2_hi + pio2_lo, y))); in catanh()
602 copysign(pio2_hi + pio2_lo, y))); in catanh()
626 return (cpack(copysign(rx, x), copysign(ry, y))); in catanh()
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.c27 long double copysignl(long double a1, long double a2) { return copysign(a1, a2); } in copysignl()
Dlibm.map64 copysign;
/bionic/tests/
Dmath_test.cpp1066 TEST(math, copysign) { in TEST() argument
1067 ASSERT_DOUBLE_EQ(0.0, copysign(0.0, 1.0)); in TEST()
1068 ASSERT_DOUBLE_EQ(-0.0, copysign(0.0, -1.0)); in TEST()
1069 ASSERT_DOUBLE_EQ(2.0, copysign(2.0, 1.0)); in TEST()
1070 ASSERT_DOUBLE_EQ(-2.0, copysign(2.0, -1.0)); in TEST()
1474 DoMathDataTest<1>(g_copysign_intel_data, copysign); in TEST()
/bionic/libm/include/
Dmath.h269 double copysign(double, double) __pure2;
/bionic/libc/tools/
Dposix-2013.txt130 copysign