Home
last modified time | relevance | path

Searched refs:copysign (Results 1 - 25 of 93) sorted by relevance

1234

/third_party/musl/libc-test/src/functionalext/supplement/math/math_gtest/
H A Dmath_copysign_test.cpp17 * @tc.desc: Obtain test data in sequence and check if it is within the expected error range of the copysign interface.
24 bool testResult = DoubleUlpCmp(g_copysignData[i].expected, copysign(g_copysignData[i].input1, in HWTEST_F()
32 * @tc.desc: When the parameter of copysign is valid, test the return value of the
38 EXPECT_DOUBLE_EQ(1.0, copysign(1.0, 2.0)); in HWTEST_F()
39 EXPECT_DOUBLE_EQ(-1.0, copysign(1.0, -2.0)); in HWTEST_F()
40 EXPECT_DOUBLE_EQ(3.0, copysign(3.0, 2.0)); in HWTEST_F()
41 EXPECT_DOUBLE_EQ(-3.0, copysign(3.0, -2.0)); in HWTEST_F()
/third_party/python/Modules/
H A Dcmathmodule.c169 if (copysign(1., d) == 1.) in special_type()
175 if (copysign(1., d) == 1.) in special_type()
183 if (copysign(1., d) == 1.) in special_type()
238 r.imag = -copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_acos_impl()
241 r.imag = copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_acos_impl()
332 r.real = copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_asinh_impl()
335 r.real = -copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_asinh_impl()
383 if (copysign(1., z.real) == 1.) in c_atan2()
385 return copysign(0.25*Py_MATH_PI, z.imag); in c_atan2()
388 return copysign(0.7 in c_atan2()
[all...]
H A Dmathmodule.c146 return copysign(1.0, x)*r; in m_sinpi()
317 return copysign(Py_HUGE_VAL, x); in m_tgamma()
617 if (copysign(1., x) == 1.) in m_atan2()
619 return copysign(0.25*Py_MATH_PI, y); in m_atan2()
622 return copysign(0.75*Py_MATH_PI, y); in m_atan2()
625 return copysign(0.5*Py_MATH_PI, y); in m_atan2()
628 if (copysign(1., x) == 1.) in m_atan2()
630 return copysign(0., y); in m_atan2()
633 return copysign(Py_MATH_PI, y); in m_atan2()
716 return copysign(1. in m_remainder()
[all...]
/third_party/musl/src/complex/
H A Dccosh.c66 return CMPLX(h * cos(y), copysign(h, x) * sin(y)); in ccosh()
70 return CMPLX(creal(z), cimag(z) * copysign(1, x)); in ccosh()
88 return CMPLX(y - y, copysign(0, x * (y - y))); in ccosh()
98 return CMPLX(x * x, copysign(0, x) * y); in ccosh()
99 return CMPLX(x * x, copysign(0, (x + x) * y)); in ccosh()
H A Dcsinh.c66 return CMPLX(copysign(h, x) * cos(y), h * sin(y)); in csinh()
70 return CMPLX(creal(z) * copysign(1, x), cimag(z)); in csinh()
88 return CMPLX(copysign(0, x * (y - y)), y - y); in csinh()
98 return CMPLX(x, copysign(0, y)); in csinh()
H A Dcsqrt.c69 return CMPLX(fabs(b - b), copysign(a, b)); in csqrt()
71 return CMPLX(a, copysign(b - b, b)); in csqrt()
93 result = CMPLX(fabs(b) / (2 * t), copysign(t, b)); in csqrt()
H A Dctanh.c99 SET_HIGH_WORD(x, hx - 0x40000000); /* x = copysign(1, x) */ in ctanh()
100 return CMPLX(x, copysign(0, isinf(y) ? y : sin(y) * cos(y))); in ctanh()
119 return CMPLX(copysign(1, x), 4 * sin(y) * cos(y) * exp_mx * exp_mx); in ctanh()
H A Dcproj.c6 return CMPLX(INFINITY, copysign(0.0, cimag(z))); in cproj()
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/cpp/effects/
H A DSingleFunctionEffects.h30 x = std::copysign((3 - (2 - 3 * abs) * (2 - 3 * abs)) * third, x); in _overdrive()
32 x = std::copysign(1, x); in _overdrive()
45 x = std::copysign(-std::expm1(-std::abs(x)), x); in _distortion()
/third_party/jerryscript/jerry-libm/
H A Dscalbn.c69 return huge * copysign (huge, x); in scalbn()
82 return huge * copysign (huge, x); /*overflow */ in scalbn()
86 return tiny * copysign (tiny, x); /*underflow */ in scalbn()
H A Dcopysign.c30 /* copysign(x,y) returns a value with the magnitude of x and
35 copysign (double x, double y) in copysign() function
41 } /* copysign */ in copysign()
/third_party/python/Lib/test/
H A Dtest_math.py431 self.assertEqual(math.copysign(1, 42), 1.0)
432 self.assertEqual(math.copysign(0., 42), 0.0)
433 self.assertEqual(math.copysign(1., -42), -1.0)
434 self.assertEqual(math.copysign(3, 0.), 3.0)
435 self.assertEqual(math.copysign(4., -0.), -4.0)
437 self.assertRaises(TypeError, math.copysign)
438 # copysign should let us distinguish signs of zeros
439 self.assertEqual(math.copysign(1., 0.), 1.)
440 self.assertEqual(math.copysign(1., -0.), -1.)
441 self.assertEqual(math.copysign(IN
[all...]
/third_party/skia/modules/skottie/src/effects/
H A DLinearWipeEffect.cpp75 diag_v = {std::copysign(this->layerSize().width() , cos_),
76 std::copysign(this->layerSize().height(), sin_)};
/third_party/musl/libc-test/src/api/
H A Dtgmath.c66 #ifdef copysign in f()
67 {double r = copysign(x,y);} in f()
69 #error no copysign(x,y) in f()
/third_party/musl/src/math/riscv64/
H A Dcopysign.c5 double copysign(double x, double y) in copysign() function
13 #include "../copysign.c"
/third_party/musl/src/math/riscv32/
H A Dcopysign.c5 double copysign(double x, double y) in copysign() function
13 #include "../copysign.c"
/third_party/musl/porting/uniproton/kernel/src/math/
H A Dcopysign.c3 double copysign(double x, double y) { in copysign() function
H A Dcopysignl.c6 return copysign(x, y); in copysignl()
/third_party/musl/src/math/
H A Dcopysign.c3 double copysign(double x, double y) { in copysign() function
H A Dcopysignl.c6 return copysign(x, y); in copysignl()
/third_party/musl/porting/liteos_m/kernel/src/math/
H A Dcopysign.c3 double copysign(double x, double y) { in copysign() function
H A Dcopysignl.c6 return copysign(x, y); in copysignl()
/third_party/musl/porting/liteos_a/kernel/src/math/
H A Dcopysign.c3 double copysign(double x, double y) { in copysign() function
H A Dcopysignl.c6 return copysign(x, y); in copysignl()
/third_party/ffmpeg/compat/djgpp/
H A Dmath.c46 return copysign(x, y); in copysignl()

Completed in 9 milliseconds

1234