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

12

/illumos-gate/usr/src/lib/libm/common/C/
H A Dcopysign.c30 #pragma weak __copysign = copysign
35 copysign(double x, double y) { function
H A Dsinh.c70 r = copysign((t + t / (1.0 + t)) * 0.5, x);
73 x = copysign(exp((r - 1024 * ln2hi) - 1024 * ln2lo), x);
H A Datanh.c69 return (copysign(0.5, x) * log1p(t + t));
H A Dtanh.c95 return (copysign(1.0, x));
H A Dnextafter.c83 dummy = DBL_MIN * copysign(DBL_MIN, x);
H A D_SVID_error.c174 ieee_retval = copysign(1.0, x) == 1.0 ? y :
175 copysign(PI_RZ + DBL_MIN, y);
582 ieee_retval = copysign(Inf, x);
963 retv = copysign(one / zero, x);
966 retv = DBL_MIN * copysign(DBL_MIN, x);
969 retv = DBL_MAX * copysign(DBL_MAX, x);
H A Dlibm_protos.h72 extern double copysign __P((double, double));
/illumos-gate/usr/src/lib/libm/sparc/src/
H A Dcopysign.S29 .file "copysign.S"
32 LIBM_ANSI_PRAGMA_WEAK(copysign,function)
34 ENTRY(copysign) function
43 SET_SIZE(copysign)
/illumos-gate/usr/src/lib/libast/common/uwin/
H A Datanh.c78 z = copysign(0.5,x);
79 x = copysign(x,1.0);
82 return(copysign(1.0,z)*infnan(ERANGE)); /* sign(x)*INF */
H A Dasinh.c49 * copysign(x,y)
98 if((t=copysign(x,one))>small)
100 s=one/t; return(copysign(log1p(t+t/(s+sqrt(one+s*s))),x)); }
102 {s=log1p(t)+ln2lo; return(copysign(s+ln2hi,x));}
H A Dexp__E.c57 * copysign(x,y)
119 if(copysign(x,one)>small) {
138 return(copysign(zero,x));
H A Dexp.c50 * copysign(x,y)
137 k=invln2*x+copysign(0.5,x); /* k=NINT(x/ln2) */
184 k = (int)z + copysign(.5, x);
H A Dlog1p.c50 * copysign(x,y)
134 if(copysign(x,one)<small) return(x);
H A Dexpm1.c50 * copysign(x,y)
132 k= (int)(invln2*x)+copysign(0.5,x); /* k=NINT(x/ln2) */
/illumos-gate/usr/src/lib/libm/i386/src/
H A Dcopysign.s29 .file "copysign.s"
32 LIBM_ANSI_PRAGMA_WEAK(copysign,function)
34 ENTRY(copysign) function
39 orl %ecx,%eax / eax <-- hi_32(copysign(x,y))
41 / = lo_32(copysign(x,y))
45 fldl (%esp) / load copysign(x,y)
50 SET_SIZE(copysign)
H A Dcopysignf.s39 orl %ecx,%eax / eax <-- copysign(x,y)
42 flds (%esp) / load copysign(x,y)
H A Dcopysignl.s49 fldt (%esp) / load copysign(x,y)
/illumos-gate/usr/src/lib/libast/common/port/
H A Dastmath.c67 return copysign(1.0, value) < 0;
/illumos-gate/usr/src/lib/libshell/common/tests/
H A Dsun_solaris_cr_6805795_negative_zero.sh35 # value zero ? For example if I have use the C99 function "copysign"
39 # $ ksh93 -c 'float x; (( x=copysign(5, -0) )) ; printf "%f\n"
45 # $ ksh93 -c 'float x; (( x=copysign(0, -5) )) ; printf "%f\n" x'
51 # $ ksh93 -c 'float x a=-1 b=-0; (( x=copysign(a, b) )) ; printf "%f\n"
56 # "copysign" defines the sign of the result.
76 # test 1: test "copysign()" using constant values
80 print -- $(( copysign(0, -5) ))
82 [[ "${str}" == "-0" ]] || err_exit "Expected copysign(0, -5) == -0, got ${str}"
96 (( c=copysign(a, b) ))
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dfmod.c43 copysign(double x, double y) function
124 double fabs(), scalbn(), copysign();
149 return (copysign(r, x));
/illumos-gate/usr/src/lib/libm/common/m9x/
H A Dscalbln.c97 return (DBL_MAX * copysign(DBL_MAX, x));
99 return (DBL_MIN * copysign(DBL_MIN, x));
/illumos-gate/usr/src/head/
H A Dmath.h308 extern double copysign __P((double, double));
312 #pragma does_not_read_global_data(copysign, scalbn)
313 #pragma does_not_write_global_data(copysign, scalbn)
314 #pragma no_side_effect(copysign, scalbn)
H A Dtgmath.h84 #undef copysign macro
85 #define copysign(x, y) __tgmath_copysign(x, y) macro
/illumos-gate/usr/src/lib/libm/amd64/src/
H A Dlibm_inlines.h131 copysign(double d1, double d2) function
/illumos-gate/usr/src/man/man3m/
H A DMakefile41 copysign.3m \

Completed in 120 milliseconds

12