Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/clang/lib/Headers/openmp_wrappers/
H A Dcomplex_cmath.h77 __r = std::complex<_Tp>(INFINITY, copysign(_Tp(0), __c.imag())); in proj()
128 : copysign(_Tp(0), __x.imag())); in sqrt()
130 copysign(__x.real(), __x.imag())); in sqrt()
181 copysign(__pi * _Tp(0.25), __x.imag())); in asinh()
182 return std::complex<_Tp>(__x.real(), copysign(_Tp(0), __x.imag())); in asinh()
192 return std::complex<_Tp>(copysign(__x.imag(), __x.real()), in asinh()
193 copysign(__pi / _Tp(2), __x.imag())); in asinh()
195 return std::complex<_Tp>(copysign(__z.real(), __x.real()), in asinh()
196 copysign(__z.imag(), __x.imag())); in asinh()
210 copysign(__pi * _Tp(0.25), __x.imag())); in acosh()
[all …]
/freebsd/lib/msun/src/
H A Dcatrig.c309 return (CMPLX(copysign(creal(w), x), copysign(cimag(w), y))); in casinh()
327 return (CMPLX(copysign(rx, x), copysign(ry, y))); in casinh()
447 return (CMPLX(fabs(ry), copysign(rx, cimag(z)))); in cacosh()
591 return (CMPLX(copysign(0, x), y + y)); in catanh()
594 return (CMPLX(copysign(0, x), in catanh()
595 copysign(pio2_hi + pio2_lo, y))); in catanh()
606 copysign(pio2_hi + pio2_lo, y))); in catanh()
630 return (CMPLX(copysign(rx, x), copysign(ry, y))); in catanh()
H A Ds_ccosh.c74 return (CMPLX(h * cos(y), copysign(h, x) * sin(y))); in ccosh()
78 return (CMPLX(creal(z), cimag(z) * copysign(1, x))); in ccosh()
97 return (CMPLX(y - y, x * copysign(0, y))); in ccosh()
107 return (CMPLX(x * x, copysign(0, x) * y)); in ccosh()
H A Ds_csqrt.c64 return (CMPLX(fabs(b - b), copysign(a, b))); in csqrt()
66 return (CMPLX(a, copysign(b - b, b))); in csqrt()
104 ry = copysign(scale * t, b); in csqrt()
H A Ds_ctanh.c107 return (CMPLX(x, copysign(0, isinf(y) ? y : sin(y) * cos(y)))); in ctanh()
126 return (CMPLX(copysign(1, x), in ctanh()
H A Ds_csinh.c74 return (CMPLX(copysign(h, x) * cos(y), h * sin(y))); in csinh()
78 return (CMPLX(creal(z) * copysign(1, x), cimag(z))); in csinh()
H A Ds_tanpi.c152 t = ix == 0 ? copysign(0, odd) : __kernel_tanpi(ax); in tanpi()
170 t = ix >= 0x43400000 ? 0 : (copysign(0, (lx & 1) ? -1 : 1)); in tanpi()
H A Ds_copysign.c22 copysign(double x, double y) in copysign() function
H A Ds_cproj.c42 return (CMPLX(INFINITY, copysign(0.0, cimag(z)))); in cproj()
H A Ds_sinpi.c156 return (copysign(0, x)); in sinpi()
/freebsd/contrib/llvm-project/libcxx/include/__math/
H A Dcopysign.h28 _LIBCPP_NODISCARD inline _LIBCPP_HIDE_FROM_ABI float copysign(float __x, float __y) _NOEXCEPT { in copysign() function
32 _LIBCPP_NODISCARD inline _LIBCPP_HIDE_FROM_ABI long double copysign(long double __x, long double __… in copysign() function
37 _LIBCPP_NODISCARD inline _LIBCPP_HIDE_FROM_ABI typename __promote<_A1, _A2>::type copysign(_A1 __x,… in copysign() function
H A Dspecial_functions.h56 return (__n & 1) ? __math::copysign(__inf, __x) : __inf; in __hermite()
/freebsd/lib/msun/i387/
H A Ds_copysign.S37 ENTRY(copysign)
46 END(copysign)
/freebsd/lib/msun/tests/
H A Dctrig_test.c319 copysign(0, cos(nums[i]))), DBL_ULP()); in ATF_TC_BODY()
321 -copysign(0, sin(nums[i]))), DBL_ULP()); in ATF_TC_BODY()
332 copysign(0, cosf(nums[i]))), FLT_ULP()); in ATF_TC_BODY()
334 -copysign(0, sinf(nums[i]))), 2 * FLT_ULP()); in ATF_TC_BODY()
339 test_odd_tol(csinh, z, CMPLXL(copysign(0, cos(nums[i])), in ATF_TC_BODY()
342 copysign(0, sin(nums[i]))), DBL_ULP()); in ATF_TC_BODY()
348 test_odd_tol(csinhf, z, CMPLXL(copysign(0, cosf(nums[i])), in ATF_TC_BODY()
351 copysign(0, sinf(nums[i]))), FLT_ULP()); in ATF_TC_BODY()
H A Dnext_test.c98 test##prec(copysign##prec(1.0, nextafter##prec(0.0, -0.0)), -1.0, 0); \ in ATF_TC_BODY()
99 test##prec(copysign##prec(1.0, nextafter##prec(-0.0, 0.0)), 1.0, 0); \ in ATF_TC_BODY()
100 test##prec(copysign##prec(1.0, nexttoward##prec(0.0, -0.0)), -1.0, 0);\ in ATF_TC_BODY()
101 test##prec(copysign##prec(1.0, nexttoward##prec(-0.0, 0.0)), 1.0, 0) in ATF_TC_BODY()
/freebsd/lib/msun/ld128/
H A Ds_tanpil.c103 t = ar == 0 ? copysign(0., odd) : __kernel_tanpil(ar); in tanpil()
120 t = fmodl(ax,2.L) == 0 ? 0 : copysign(0., -1.); in tanpil()
/freebsd/contrib/llvm-project/libcxx/include/
H A Dcomplex1001 __r = complex<_Tp>(INFINITY, std::copysign(_Tp(0), __c.imag()));
1066 … __x.real(), std::__constexpr_isnan(__x.imag()) ? __x.imag() : std::copysign(_Tp(0), __x.imag()));
1068 … std::__constexpr_isnan(__x.imag()) ? __x.imag() : _Tp(0), std::copysign(__x.real(), __x.imag()));
1079 return complex<_Tp>(std::exp(__x.real()), std::copysign(_Tp(0), __x.imag()));
1137 return complex<_Tp>(__x.real(), std::copysign(__pi * _Tp(0.25), __x.imag()));
1138 return complex<_Tp>(__x.real(), std::copysign(_Tp(0), __x.imag()));
1148 …return complex<_Tp>(std::copysign(__x.imag(), __x.real()), std::copysign(__pi / _Tp(2), __x.imag()…
1150 return complex<_Tp>(std::copysign(__z.real(), __x.real()), std::copysign(__z.imag(), __x.imag()));
1163 return complex<_Tp>(__x.real(), std::copysign(__pi * _Tp(0.25), __x.imag()));
1165 return complex<_Tp>(-__x.real(), std::copysign(__pi * _Tp(0.75), __x.imag()));
[all …]
/freebsd/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/lib/msun/bsdsrc/
H A Db_exp.c98 k = z + copysign(0.5, x); in __exp__D()
/freebsd/contrib/arm-optimized-routines/math/aarch64/experimental/
H A Derfinv_24u5.c74 / (copysign (t, x) * horner_9_f64 (t, data.Q_57)); in erfinv()
H A Derfinvl.c78 / (copysign (t, x) * horner_9_f64 (t, data.Q_57)); in __erfinv()
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/
H A Dint_math.h61 #define crt_copysign(x, y) copysign((x), (y))
/freebsd/include/
H A Dtgmath.h166 #define copysign(x, y) __tg_simple2(x, y, copysign) macro
/freebsd/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

1234