Home
last modified time | relevance | path

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

123

/aosp12/bionic/libm/upstream-freebsd/lib/msun/src/
H A Dcatrig.c312 return (CMPLX(copysign(creal(w), x), copysign(cimag(w), y))); in casinh()
330 return (CMPLX(copysign(rx, x), copysign(ry, y))); in casinh()
450 return (CMPLX(fabs(ry), copysign(rx, cimag(z)))); in cacosh()
594 return (CMPLX(copysign(0, x), y + y)); in catanh()
597 return (CMPLX(copysign(0, x), in catanh()
598 copysign(pio2_hi + pio2_lo, y))); in catanh()
609 copysign(pio2_hi + pio2_lo, y))); in catanh()
633 return (CMPLX(copysign(rx, x), copysign(ry, y))); in catanh()
H A Ds_ccosh.c77 return (CMPLX(h * cos(y), copysign(h, x) * sin(y))); in ccosh()
81 return (CMPLX(creal(z), cimag(z) * copysign(1, x))); in ccosh()
100 return (CMPLX(y - y, x * copysign(0, y))); in ccosh()
110 return (CMPLX(x * x, copysign(0, x) * y)); in ccosh()
H A Ds_scalbn.c49 if (k > 0x7fe) return huge*copysign(huge,x); /* overflow */ in scalbn()
54 return huge*copysign(huge,x); /*overflow*/ in scalbn()
56 return tiny*copysign(tiny,x); /*underflow*/ in scalbn()
H A Ds_csqrt.c67 return (CMPLX(fabs(b - b), copysign(a, b))); in csqrt()
69 return (CMPLX(a, copysign(b - b, b))); in csqrt()
107 ry = copysign(scale * t, b); in csqrt()
H A Ds_scalbnl.c62 return huge*copysign(huge,x); /*overflow*/ in scalbnl()
64 return tiny*copysign(tiny,x); /*underflow*/ in scalbnl()
H A Ds_ctanh.c110 return (CMPLX(x, copysign(0, isinf(y) ? y : sin(y) * cos(y)))); in ctanh()
127 return (CMPLX(copysign(1, x), in ctanh()
H A Ds_csinh.c77 return (CMPLX(copysign(h, x) * cos(y), h * sin(y))); in csinh()
81 return (CMPLX(creal(z) * copysign(1, x), cimag(z))); in csinh()
H A Ds_copysign.c26 copysign(double x, double y) in copysign() function
H A Ds_cproj.c45 return (CMPLX(INFINITY, copysign(0.0, cimag(z)))); in cproj()
H A Ds_fma.c240 zs = copysign(DBL_MIN, zs); in fma()
/aosp12/bionic/libm/upstream-freebsd/lib/msun/bsdsrc/
H A Db_exp.c101 k=invln2*x+copysign(0.5,x); /* k=NINT(x/ln2) */
146 k = z + copysign(.5, x);
/aosp12/bionic/libm/
H A Dfake_long_double.c27 long double copysignl(long double a1, long double a2) { return copysign(a1, a2); } in copysignl()
H A Dlibm.map.txt64 copysign;
/aosp12/frameworks/rs/driver/runtime/
H A Drs_f16_math.c21 extern half __attribute__((overloadable)) copysign(half x, half y) { in copysign() function
H A Drs_cl.c418 float __attribute__((overloadable)) copysign(float v1, float v2) { in copysign() function
421 FN_FUNC_FN_FN(copysign)
639 float sign = (p & 0x1) ? copysign(1.f, v) : 1.f; in FN_FUNC_FN_FN()
641 return copysign(f, sign); in FN_FUNC_FN_FN()
684 return copysign(posinf(), v); in FN_FUNC_FN()
690 return copysign(0.f, v); in FN_FUNC_FN()
1896 extern half __attribute__((overloadable)) copysign(half x, half y);
1897 SCALARIZE_HN_FUNC_HN_HN(copysign);
/aosp12/bionic/libc/include/
H A Dmath.h273 double copysign(double __value, double __sign) __attribute_const__;
275 long double copysignl(long double __value, long double __sign) __RENAME_LDBL(copysign, 3, 3) __attr…
/aosp12/bionic/tests/headers/posix/
H A Dtgmath_h.c77 TGMATH2(copysign); in tgmath_h()
H A Dmath_h.c155 FUNCTION(copysign, double (*f)(double, double)); in math_h()
/aosp12/frameworks/native/libs/ui/
H A DColorSpace.cpp45 return std::copysign(xx >= d * c ? (std::pow(xx, 1.0f / g) - b) / a : xx / c, x); in absRcpResponse()
50 return std::copysign(xx >= d ? std::pow(a * xx + b, g) : c * xx, x); in absResponse()
/aosp12/frameworks/base/libs/hwui/utils/
H A DHostColorSpace.cpp46 return std::copysign(xx >= d * c ? (std::pow(xx, 1.0f / g) - b) / a : xx / c, x); in absRcpResponse()
51 return std::copysign(xx >= d ? std::pow(a * xx + b, g) : c * xx, x); in absResponse()
/aosp12/bionic/tests/
H A Dmath_test.cpp1314 TEST(MATH_TEST, copysign) { in TEST() argument
1315 ASSERT_DOUBLE_EQ(0.0, copysign(0.0, 1.0)); in TEST()
1316 ASSERT_DOUBLE_EQ(-0.0, copysign(0.0, -1.0)); in TEST()
1317 ASSERT_DOUBLE_EQ(2.0, copysign(2.0, 1.0)); in TEST()
1318 ASSERT_DOUBLE_EQ(-2.0, copysign(2.0, -1.0)); in TEST()
1779 DoMathDataTest<1>(g_copysign_intel_data, copysign); in TEST()
/aosp12/frameworks/compile/slang/tests/P_math_fp/
H A Dmath_fp.rscript88 TEST_FUNC_2(copysign);
/aosp12/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
H A Dapitest.rscript631 f = copysign(f, f);
632 f2 = copysign(f2, f2);
633 f3 = copysign(f3, f3);
634 f4 = copysign(f4, f4);
/aosp12/frameworks/rs/tests/java_api/RSUnitTests/supportlibonlysrc/com/android/rs/unittest/
H A Dapitest.rscript649 f = copysign(f, f);
650 f2 = copysign(f2, f2);
651 f3 = copysign(f3, f3);
652 f4 = copysign(f4, f4);
/aosp12/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
H A Dapitest.rscript651 f = copysign(f, f);
652 f2 = copysign(f2, f2);
653 f3 = copysign(f3, f3);
654 f4 = copysign(f4, f4);

123