mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 04:50:07 +00:00
Use __copysign rather than copysign.
This commit is contained in:
parent
2959eda927
commit
92f2897953
@ -1,3 +1,11 @@
|
|||||||
|
2015-04-22 Wilco Dijkstra <wdijkstr@arm.com>
|
||||||
|
|
||||||
|
* math/k_casinh.c (__kernel_casinh): Use __copysign.
|
||||||
|
* sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
|
||||||
|
(__nearbyint): Likewise.
|
||||||
|
* sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
|
||||||
|
(copysignl): Likewise.
|
||||||
|
|
||||||
2015-04-21 Arjun Shankar <arjun.is@lostca.se>
|
2015-04-21 Arjun Shankar <arjun.is@lostca.se>
|
||||||
|
|
||||||
[BZ #18287]
|
[BZ #18287]
|
||||||
|
@ -199,7 +199,7 @@ __kernel_casinh (__complex__ double x, int adj)
|
|||||||
if (adj)
|
if (adj)
|
||||||
{
|
{
|
||||||
double t = __real__ y;
|
double t = __real__ y;
|
||||||
__real__ y = copysign (__imag__ y, __imag__ x);
|
__real__ y = __copysign (__imag__ y, __imag__ x);
|
||||||
__imag__ y = t;
|
__imag__ y = t;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ __nearbyint(double x)
|
|||||||
double t = w-TWO52[sx];
|
double t = w-TWO52[sx];
|
||||||
math_opt_barrier(t);
|
math_opt_barrier(t);
|
||||||
libc_fesetenv (&env);
|
libc_fesetenv (&env);
|
||||||
return copysign(t, x);
|
return __copysign (t, x);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(j0==0x400) return x+x; /* inf or NaN */
|
if(j0==0x400) return x+x; /* inf or NaN */
|
||||||
|
@ -4,5 +4,5 @@ double
|
|||||||
attribute_hidden
|
attribute_hidden
|
||||||
copysignl (double x, double y)
|
copysignl (double x, double y)
|
||||||
{
|
{
|
||||||
return copysign (x, y);
|
return __copysign (x, y);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user