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.h130 copysign(__x.real(), __x.imag())); in sqrt()
192 return std::complex<_Tp>(copysign(__x.imag(), __x.real()), in asinh()
195 return std::complex<_Tp>(copysign(__z.real(), __x.real()), in asinh()
196 copysign(__z.imag(), __x.imag())); in asinh()
228 return std::complex<_Tp>(copysign(__z.real(), _Tp(0)), in acosh()
229 copysign(__z.imag(), __x.imag())); in acosh()
238 return std::complex<_Tp>(copysign(_Tp(0), __x.real()), in atanh()
250 return std::complex<_Tp>(copysign(_Tp(0), __x.real()), in atanh()
255 copysign(_Tp(0), __x.imag())); in atanh()
258 return std::complex<_Tp>(copysign(__z.real(), __x.real()), in atanh()
[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_EXT inline _LIBCPP_HIDE_FROM_ABI float copysign(float __x, float __y) _NOEXCEPT { in copysign() function
32 _LIBCPP_NODISCARD_EXT inline _LIBCPP_HIDE_FROM_ABI long double copysign(long double __x, long doubl… in copysign() function
38 copysign(_A1 __x, _A2 __y) _NOEXCEPT { in copysign() function
/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 Dcomplex970 __r = complex<_Tp>(INFINITY, std::copysign(_Tp(0), __c.imag()));
1107 return complex<_Tp>(__x.real(), std::copysign(_Tp(0), __x.imag()));
1117 …return complex<_Tp>(std::copysign(__x.imag(), __x.real()), std::copysign(__pi / _Tp(2), __x.imag()…
1119 return complex<_Tp>(std::copysign(__z.real(), __x.real()), std::copysign(__z.imag(), __x.imag()));
1148 return complex<_Tp>(std::copysign(__z.real(), _Tp(0)), std::copysign(__z.imag(), __x.imag()));
1157 … return complex<_Tp>(std::copysign(_Tp(0), __x.real()), std::copysign(__pi / _Tp(2), __x.imag()));
1168 … return complex<_Tp>(std::copysign(_Tp(0), __x.real()), std::copysign(__pi / _Tp(2), __x.imag()));
1171 … return complex<_Tp>(std::copysign(_Tp(INFINITY), __x.real()), std::copysign(_Tp(0), __x.imag()));
1174 return complex<_Tp>(std::copysign(__z.real(), __x.real()), std::copysign(__z.imag(), __x.imag()));
1211 return complex<_Tp>(std::copysign(_Tp(1), __x.real()), _Tp(0));
[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/contrib/arm-optimized-routines/pl/math/
H A Derfinv_24u5.c75 / (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/lib/msun/bsdsrc/
H A Db_exp.c98 k = z + copysign(0.5, x); in __exp__D()
/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
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyInstrFloat.td57 defm COPYSIGN : BinaryFP<fcopysign, "copysign", 0x98, 0xa6>;
69 // DAGCombine oddly folds casts into the rhs of copysign. Unfold them.

1234