Home
last modified time | relevance | path

Searched refs:copysignf (Results 1 – 9 of 9) sorted by relevance

/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_scalbnf.c46 if (k > 0xfe) return huge*copysignf(huge,x); /* overflow */ in scalbnf()
51 return huge*copysignf(huge,x); /*overflow*/ in scalbnf()
52 else return tiny*copysignf(tiny,x); /*underflow*/ in scalbnf()
Ds_ccoshf.c66 return (cpackf(h * cosf(y), copysignf(h, x) * sinf(y))); in ccoshf()
70 return (cpackf(crealf(z), cimagf(z) * copysignf(1, x))); in ccoshf()
79 return (cpackf(y - y, copysignf(0, x * (y - y)))); in ccoshf()
83 return (cpackf(x * x, copysignf(0, x) * y)); in ccoshf()
84 return (cpackf(x * x, copysignf(0, (x + x) * y))); in ccoshf()
Ds_csqrtf.c67 return (cpackf(fabsf(b - b), copysignf(a, b))); in csqrtf()
69 return (cpackf(a, copysignf(b - b, b))); in csqrtf()
86 return (cpackf(fabsf(b) / (2.0 * t), copysignf(t, b))); in csqrtf()
Ds_csinhf.c66 return (cpackf(copysignf(h, x) * cosf(y), h * sinf(y))); in csinhf()
70 return (cpackf(crealf(z) * copysignf(1, x), cimagf(z))); in csinhf()
79 return (cpackf(copysignf(0, x * (y - y)), y - y)); in csinhf()
84 return (cpackf(x, copysignf(0, y))); in csinhf()
Ds_cprojf.c42 return (cpackf(INFINITY, copysignf(0.0, cimagf(z)))); in cprojf()
Ds_copysignf.c29 copysignf(float x, float y) in copysignf() function
Ds_ctanhf.c57 copysignf(0, isinf(y) ? y : sinf(y) * cosf(y)))); in ctanhf()
65 return (cpackf(copysignf(1, x), in ctanhf()
/bionic/tests/
Dmath_test.cpp925 TEST(math, copysignf) { in TEST() argument
926 ASSERT_FLOAT_EQ(0.0f, copysignf(0.0f, 1.0f)); in TEST()
927 ASSERT_FLOAT_EQ(-0.0f, copysignf(0.0f, -1.0f)); in TEST()
928 ASSERT_FLOAT_EQ(2.0f, copysignf(2.0f, 1.0f)); in TEST()
929 ASSERT_FLOAT_EQ(-2.0f, copysignf(2.0f, -1.0f)); in TEST()
/bionic/libm/include/
Dmath.h344 float copysignf(float, float) __pure2;