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

123

/freebsd-current/lib/msun/i387/
H A Ds_copysign.S37 ENTRY(copysign)
46 END(copysign)
/freebsd-current/lib/msun/src/
H A Ds_copysign.c13 * copysign(double x, double y)
14 * copysign(x,y) returns a value with the magnitude of x and
22 copysign(double x, double y) function
H A Ds_cproj.c42 return (CMPLX(INFINITY, copysign(0.0, cimag(z))));
H A Ds_ccosh.c74 return (CMPLX(h * cos(y), copysign(h, x) * sin(y)));
78 return (CMPLX(creal(z), cimag(z) * copysign(1, x)));
97 return (CMPLX(y - y, x * copysign(0, y)));
107 return (CMPLX(x * x, copysign(0, x) * y));
H A Ds_csqrt.c64 return (CMPLX(fabs(b - b), copysign(a, b)));
66 return (CMPLX(a, copysign(b - b, b)));
104 ry = copysign(scale * t, b);
H A Ds_ctanh.c106 SET_HIGH_WORD(x, hx - 0x40000000); /* x = copysign(1, x) */
107 return (CMPLX(x, copysign(0, isinf(y) ? y : sin(y) * cos(y))));
126 return (CMPLX(copysign(1, x),
H A Dcatrig.c309 return (CMPLX(copysign(creal(w), x), copysign(cimag(w), y)));
327 return (CMPLX(copysign(rx, x), copysign(ry, y)));
447 return (CMPLX(fabs(ry), copysign(rx, cimag(z))));
591 return (CMPLX(copysign(0, x), y + y));
594 return (CMPLX(copysign(0, x),
595 copysign(pio2_hi + pio2_lo, y)));
606 copysign(pio2_hi + pio2_lo, y)));
630 return (CMPLX(copysign(r
[all...]
H A Ds_csinh.c74 return (CMPLX(copysign(h, x) * cos(y), h * sin(y)));
78 return (CMPLX(creal(z) * copysign(1, x), cimag(z)));
H A Ds_tanpi.c54 * 4. For |x| >= 0x1p(P-1), |x| is integral and tanpi(x) = copysign(0,x).
152 t = ix == 0 ? copysign(0, odd) : __kernel_tanpi(ax);
170 t = ix >= 0x43400000 ? 0 : (copysign(0, (lx & 1) ? -1 : 1));
H A Ds_sinpi.c56 * 4. For |x| >= 0x1p(P-1), |x| is integral and sinpi(x) = copysign(0,x).
156 return (copysign(0, x));
/freebsd-current/contrib/llvm-project/libcxx/include/__math/
H A Dcopysign.h26 // copysign
28 _LIBCPP_NODISCARD_EXT inline _LIBCPP_HIDE_FROM_ABI float copysign(float __x, float __y) _NOEXCEPT {
32 _LIBCPP_NODISCARD_EXT inline _LIBCPP_HIDE_FROM_ABI long double copysign(long double __x, long double __y) _NOEXCEPT {
38 copysign(_A1 __x, _A2 __y) _NOEXCEPT {
/freebsd-current/contrib/llvm-project/clang/lib/Headers/openmp_wrappers/
H A Dcomplex_cmath.h77 __r = std::complex<_Tp>(INFINITY, copysign(_Tp(0), __c.imag()));
128 : copysign(_Tp(0), __x.imag()));
130 copysign(__x.real(), __x.imag()));
181 copysign(__pi * _Tp(0.25), __x.imag()));
182 return std::complex<_Tp>(__x.real(), copysign(_Tp(0), __x.imag()));
192 return std::complex<_Tp>(copysign(__x.imag(), __x.real()),
193 copysign(__pi / _Tp(2), __x.imag()));
195 return std::complex<_Tp>(copysign(__z.real(), __x.real()),
196 copysign(__z.imag(), __x.imag()));
210 copysign(__p
[all...]
/freebsd-current/lib/msun/ld128/
H A Ds_tanpil.c103 t = ar == 0 ? copysign(0., odd) : __kernel_tanpil(ar);
120 t = fmodl(ax,2.L) == 0 ? 0 : copysign(0., -1.);
/freebsd-current/lib/msun/bsdsrc/
H A Db_exp.c40 * copysign(x,y)
98 k = z + copysign(0.5, x);
/freebsd-current/lib/msun/tests/
H A Dnext_test.c98 test##prec(copysign##prec(1.0, nextafter##prec(0.0, -0.0)), -1.0, 0); \
99 test##prec(copysign##prec(1.0, nextafter##prec(-0.0, 0.0)), 1.0, 0); \
100 test##prec(copysign##prec(1.0, nexttoward##prec(0.0, -0.0)), -1.0, 0);\
101 test##prec(copysign##prec(1.0, nexttoward##prec(-0.0, 0.0)), 1.0, 0)
H A Dctrig_test.c319 copysign(0, cos(nums[i]))), DBL_ULP());
321 -copysign(0, sin(nums[i]))), DBL_ULP());
332 copysign(0, cosf(nums[i]))), FLT_ULP());
334 -copysign(0, sinf(nums[i]))), 2 * FLT_ULP());
339 test_odd_tol(csinh, z, CMPLXL(copysign(0, cos(nums[i])),
342 copysign(0, sin(nums[i]))), DBL_ULP());
348 test_odd_tol(csinhf, z, CMPLXL(copysign(0, cosf(nums[i])),
351 copysign(0, sinf(nums[i]))), FLT_ULP());
/freebsd-current/contrib/arm-optimized-routines/pl/math/
H A Derfinv_24u5.c75 / (copysign (t, x) * horner_9_f64 (t, data.Q_57));
H A Derfinvl.c78 / (copysign (t, x) * horner_9_f64 (t, data.Q_57));
/freebsd-current/contrib/llvm-project/clang/lib/Headers/
H A D__clang_cuda_math_forward_declares.h49 __DEVICE__ double copysign(double, double);
50 __DEVICE__ float copysign(float, float);
210 using ::copysign;
H A D__clang_cuda_complex_builtins.h36 #define _COPYSIGNd std::copysign
37 #define _COPYSIGNf std::copysign
/freebsd-current/contrib/llvm-project/compiler-rt/lib/builtins/
H A Dint_math.h61 #define crt_copysign(x, y) copysign((x), (y))
/freebsd-current/contrib/llvm-project/libcxx/include/
H A Dmath.h168 floating_point copysign (arithmetic x, arithmetic y);
359 # include <__math/copysign.h>
453 using std::__math::copysign;
/freebsd-current/lib/msun/
H A DMakefile174 cimag.3 clog.3 copysign.3 cos.3 cosh.3 cospi.3 \
210 MLINKS+=copysign.3 copysignf.3 copysign.3 copysignl.3
/freebsd-current/include/
H A Dtgmath.h166 #define copysign(x, y) __tg_simple2(x, y, copysign) macro
/freebsd-current/contrib/arm-optimized-routines/math/test/
H A Dulp.h69 got = RT(copysign) (RT(halfinf), got);
74 want = RT(copysign) (RT(halfinf), want);

Completed in 241 milliseconds

123