Home
last modified time | relevance | path

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

12345

/openbsd/src/gnu/llvm/clang/lib/Headers/openmp_wrappers/
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 …]
/openbsd/src/lib/libm/arch/amd64/
Ds_copysign.S17 ENTRY(copysign)
18 RETGUARD_SETUP(copysign, r11)
24 RETGUARD_CHECK(copysign, r11)
26 END_STD(copysign)
/openbsd/src/regress/lib/libc/ieeefp/infinity/
Dinfinity.c39 if (!isinf(d) || copysign(1.0, d) < 0.0) in main()
50 if (!isinf(d) || copysign(1.0, d) < 0.0) in main()
60 if (!isinf(d) || copysign(1.0, d) > 0.0) in main()
71 if (!isinf(d) || copysign(1.0, d) > 0.0) in main()
/openbsd/src/gnu/lib/libiberty/src/config/
Dmh-aix4 # Most releases of AIX 3.1 include an incorrect internal version of copysign
6 # version of copysign in libm.a is usable. For the sake of libg++ (which
7 # uses modf), we add copysign here. Supposedly, this problem is fixed in AIX
9 EXTRA_OFILES = copysign.o
/openbsd/src/lib/libm/arch/alpha/
Ds_copysign.S35 STRONG_ALIAS(copysignl, copysign)
36 LEAF(copysign, 2)
39 END(copysign)
/openbsd/src/lib/libm/src/
Ds_copysign.c25 copysign(double x, double y) in copysign() function
33 DEF_STD(copysign);
34 LDBL_MAYBE_CLONE(copysign);
Ds_scalbnl.c70 return huge*copysign(huge,x); /*overflow*/ in scalbnl()
71 else return tiny*copysign(tiny,x); /*underflow*/ in scalbnl()
Ds_cproj.c29 __imag__ res = copysign(0.0, __imag__ z); in cproj()
Db_exp__D.c96 k = z + copysign(.5, x); in __exp__D()
Ds_csqrtl.c75 w = 0.0L + copysign(sqrtl(-x), y) * I; in csqrtl()
Ds_csqrtf.c75 w = 0.0f + copysign(sqrtf(-x), y) * I; in csqrtf()
Ds_csqrt.c82 w = 0.0 + copysign(r, y) * I; in csqrt()
/openbsd/src/lib/libm/arch/i387/
Ds_copysign.S9 ENTRY(copysign)
18 END_STD(copysign)
/openbsd/src/gnu/lib/libiberty/src/
Dcopysign.c135 copysign (double x, double y) in copysign() function
147 copysign (double x, double y) in copysign() function
/openbsd/src/regress/lib/libm/msun/
Dctrig_test.c322 copysign(0, cos(nums[i]))), DBL_ULP()); in ATF_TC_BODY()
324 -copysign(0, sin(nums[i]))), DBL_ULP()); in ATF_TC_BODY()
335 copysign(0, cosf(nums[i]))), FLT_ULP()); in ATF_TC_BODY()
337 -copysign(0, sinf(nums[i]))), 2 * FLT_ULP()); in ATF_TC_BODY()
342 test_odd_tol(csinh, z, CMPLXL(copysign(0, cos(nums[i])), in ATF_TC_BODY()
345 copysign(0, sin(nums[i]))), DBL_ULP()); in ATF_TC_BODY()
351 test_odd_tol(csinhf, z, CMPLXL(copysign(0, cosf(nums[i])), in ATF_TC_BODY()
354 copysign(0, sinf(nums[i]))), FLT_ULP()); in ATF_TC_BODY()
Dnext_test.c102 test##prec(copysign##prec(1.0, nextafter##prec(0.0, -0.0)), -1.0, 0); \ in ATF_TC_BODY()
103 test##prec(copysign##prec(1.0, nextafter##prec(-0.0, 0.0)), 1.0, 0); \ in ATF_TC_BODY()
104 test##prec(copysign##prec(1.0, nexttoward##prec(0.0, -0.0)), -1.0, 0);\ in ATF_TC_BODY()
105 test##prec(copysign##prec(1.0, nexttoward##prec(-0.0, 0.0)), 1.0, 0) in ATF_TC_BODY()
/openbsd/src/gnu/llvm/libcxx/include/
Dcomplex1029 __r = complex<_Tp>(INFINITY, std::copysign(_Tp(0), __c.imag()));
1120 …_Tp>(__x.real(), std::__constexpr_isnan(__x.imag()) ? __x.imag() : std::copysign(_Tp(0), __x.imag(…
1121 …return complex<_Tp>(std::__constexpr_isnan(__x.imag()) ? __x.imag() : _Tp(0), std::copysign(__x.re…
1134 return complex<_Tp>(std::exp(__x.real()), std::copysign(_Tp(0), __x.imag()));
1222 return complex<_Tp>(__x.real(), std::copysign(__pi * _Tp(0.25), __x.imag()));
1223 return complex<_Tp>(__x.real(), std::copysign(_Tp(0), __x.imag()));
1234 …return complex<_Tp>(std::copysign(__x.imag(), __x.real()), std::copysign(__pi/_Tp(2), __x.imag()));
1236 … return complex<_Tp>(std::copysign(__z.real(), __x.real()), std::copysign(__z.imag(), __x.imag()));
1253 return complex<_Tp>(__x.real(), std::copysign(__pi * _Tp(0.25), __x.imag()));
1255 return complex<_Tp>(-__x.real(), std::copysign(__pi * _Tp(0.75), __x.imag()));
[all …]
/openbsd/src/gnu/usr.bin/perl/ext/POSIX/t/
Dmath.t95 near(copysign(3.14, -2), -3.14, "copysign", 1e-9);
295 ok(!signbit(copysign(NAN, 1.0)), "signbit(copysign(NAN, 1.0)))");
296 ok(signbit(copysign(NAN, -1.0)), "signbit(copysign(NAN, -1.0)))");
/openbsd/src/gnu/llvm/clang/lib/Headers/
D__clang_cuda_math_forward_declares.h49 __DEVICE__ double copysign(double, double);
50 __DEVICE__ float copysign(float, float);
210 using ::copysign;
D__clang_cuda_complex_builtins.h36 #define _COPYSIGNd std::copysign
37 #define _COPYSIGNf std::copysign
/openbsd/src/gnu/lib/libstdc++/libstdc++/libmath/
Dcopysignf.c38 return copysign (x, y); in copysignf()
/openbsd/src/gnu/gcc/libstdc++-v3/libmath/
Dcopysignf.c38 return copysign (x, y); in copysignf()
/openbsd/src/include/
Dtgmath.h125 #define copysign(x, y) __tg_simple2(x, y, copysign) macro
/openbsd/src/gnu/llvm/compiler-rt/lib/builtins/
Dint_math.h61 #define crt_copysign(x, y) copysign((x), (y))
/openbsd/src/gnu/gcc/libstdc++-v3/include/tr1/
Dcmath55 #undef copysign
179 using ::copysign;
424 copysign(float __x, float __y)
428 copysign(long double __x, long double __y)
433 copysign(_Tp __x, _Up __y)
436 return copysign(__type(__x), __type(__y));

12345