Home
last modified time | relevance | path

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

123

/freebsd-11-stable/contrib/llvm-project/clang/lib/Headers/
HD__clang_cuda_complex_builtins.h30 __a = std::copysign(std::isinf(__a) ? 1 : 0, __a); in __muldc3()
31 __b = std::copysign(std::isinf(__b) ? 1 : 0, __b); in __muldc3()
33 __c = std::copysign(0, __c); in __muldc3()
35 __d = std::copysign(0, __d); in __muldc3()
39 __c = std::copysign(std::isinf(__c) ? 1 : 0, __c); in __muldc3()
40 __d = std::copysign(std::isinf(__d) ? 1 : 0, __d); in __muldc3()
42 __a = std::copysign(0, __a); in __muldc3()
44 __b = std::copysign(0, __b); in __muldc3()
50 __a = std::copysign(0, __a); in __muldc3()
52 __b = std::copysign(0, __b); in __muldc3()
[all …]
HD__clang_cuda_math_forward_declares.h72 __DEVICE__ double copysign(double, double);
73 __DEVICE__ float copysign(float, float);
233 using ::copysign;
/freebsd-11-stable/contrib/gcclibs/libiberty/config/
HDmh-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
/freebsd-11-stable/lib/msun/src/
HDcatrig.c310 return (CMPLX(copysign(creal(w), x), copysign(cimag(w), y))); in casinh()
328 return (CMPLX(copysign(rx, x), copysign(ry, y))); in casinh()
448 return (CMPLX(fabs(ry), copysign(rx, cimag(z)))); in cacosh()
592 return (CMPLX(copysign(0, x), y + y)); in catanh()
595 return (CMPLX(copysign(0, x), in catanh()
596 copysign(pio2_hi + pio2_lo, y))); in catanh()
607 copysign(pio2_hi + pio2_lo, y))); in catanh()
631 return (CMPLX(copysign(rx, x), copysign(ry, y))); in catanh()
HDs_ccosh.c75 return (CMPLX(h * cos(y), copysign(h, x) * sin(y))); in ccosh()
79 return (CMPLX(creal(z), cimag(z) * copysign(1, x))); in ccosh()
98 return (CMPLX(y - y, x * copysign(0, y))); in ccosh()
108 return (CMPLX(x * x, copysign(0, x) * y)); in ccosh()
HDs_scalbn.c49 if (k > 0x7fe) return huge*copysign(huge,x); /* overflow */ in scalbn()
54 return huge*copysign(huge,x); /*overflow*/ in scalbn()
56 return tiny*copysign(tiny,x); /*underflow*/ in scalbn()
HDs_csqrt.c76 return (CMPLX(fabs(b - b), copysign(a, b))); in csqrt()
78 return (CMPLX(a, copysign(b - b, b))); in csqrt()
100 result = CMPLX(fabs(b) / (2 * t), copysign(t, b)); in csqrt()
HDs_scalbnl.c62 return huge*copysign(huge,x); /*overflow*/ in scalbnl()
64 return tiny*copysign(tiny,x); /*underflow*/ in scalbnl()
HDs_ctanh.c108 return (CMPLX(x, copysign(0, isinf(y) ? y : sin(y) * cos(y)))); in ctanh()
125 return (CMPLX(copysign(1, x), in ctanh()
HDs_csinh.c75 return (CMPLX(copysign(h, x) * cos(y), h * sin(y))); in csinh()
79 return (CMPLX(creal(z) * copysign(1, x), cimag(z))); in csinh()
HDs_copysign.c26 copysign(double x, double y) in copysign() function
HDs_cproj.c42 return (CMPLX(INFINITY, copysign(0.0, cimag(z)))); in cproj()
/freebsd-11-stable/contrib/llvm-project/libcxx/include/
HDcomplex607 __a = copysign(__libcpp_isinf_or_builtin(__a) ? _Tp(1) : _Tp(0), __a);
608 __b = copysign(__libcpp_isinf_or_builtin(__b) ? _Tp(1) : _Tp(0), __b);
610 __c = copysign(_Tp(0), __c);
612 __d = copysign(_Tp(0), __d);
617 __c = copysign(__libcpp_isinf_or_builtin(__c) ? _Tp(1) : _Tp(0), __c);
618 __d = copysign(__libcpp_isinf_or_builtin(__d) ? _Tp(1) : _Tp(0), __d);
620 __a = copysign(_Tp(0), __a);
622 __b = copysign(_Tp(0), __b);
629 __a = copysign(_Tp(0), __a);
631 __b = copysign(_Tp(0), __b);
[all …]
/freebsd-11-stable/lib/msun/i387/
HDs_copysign.S39 ENTRY(copysign)
48 END(copysign)
/freebsd-11-stable/lib/msun/tests/
HDnext_test.c100 test##prec(copysign##prec(1.0, nextafter##prec(0.0, -0.0)), -1.0, 0); \ in main()
101 test##prec(copysign##prec(1.0, nextafter##prec(-0.0, 0.0)), 1.0, 0); \ in main()
102 test##prec(copysign##prec(1.0, nexttoward##prec(0.0, -0.0)), -1.0, 0);\ in main()
103 test##prec(copysign##prec(1.0, nexttoward##prec(-0.0, 0.0)), 1.0, 0) in main()
HDctrig_test.c328 copysign(0, cos(nums[i]))), DBL_ULP()); in ATF_TC_BODY()
330 -copysign(0, sin(nums[i]))), DBL_ULP()); in ATF_TC_BODY()
341 copysign(0, cosf(nums[i]))), FLT_ULP()); in ATF_TC_BODY()
343 -copysign(0, sinf(nums[i]))), 2 * FLT_ULP()); in ATF_TC_BODY()
348 test_odd_tol(csinh, z, CMPLXL(copysign(0, cos(nums[i])), in ATF_TC_BODY()
351 copysign(0, sin(nums[i]))), DBL_ULP()); in ATF_TC_BODY()
357 test_odd_tol(csinhf, z, CMPLXL(copysign(0, cosf(nums[i])), in ATF_TC_BODY()
360 copysign(0, sinf(nums[i]))), FLT_ULP()); in ATF_TC_BODY()
/freebsd-11-stable/contrib/gcclibs/libiberty/
HDcopysign.c135 copysign (double x, double y) in copysign() function
147 copysign (double x, double y) in copysign() function
/freebsd-11-stable/contrib/binutils/libiberty/
HDcopysign.c135 copysign (double x, double y) in copysign() function
147 copysign (double x, double y) in copysign() function
/freebsd-11-stable/lib/msun/bsdsrc/
HDb_exp.c103 k=invln2*x+copysign(0.5,x); /* k=NINT(x/ln2) */
148 k = z + copysign(.5, x);
/freebsd-11-stable/contrib/libstdc++/libmath/
Dcopysignf.c38 return copysign (x, y); in copysignf()
/freebsd-11-stable/contrib/libstdc++/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));
Dmath.h50 using std::tr1::copysign;
/freebsd-11-stable/lib/msun/
HDMakefile157 cimag.3 clog.3 copysign.3 cos.3 cosh.3 cpow.3 csqrt.3 erf.3 \
192 MLINKS+=copysign.3 copysignf.3 copysign.3 copysignl.3
/freebsd-11-stable/include/
HDtgmath.h166 #define copysign(x, y) __tg_simple2(x, y, copysign) macro
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/builtins/
HDint_math.h61 #define crt_copysign(x, y) copysign((x), (y))

123