Print this page
11210 libm should be cstyle(1ONBLD) clean
@@ -20,22 +20,24 @@
*/
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
+
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma weak __copysignl = copysignl
#include "libm.h"
long double
-copysignl(long double x, long double y) {
- int *px = (int *) &x;
- int *py = (int *) &y;
+copysignl(long double x, long double y)
+{
+ int *px = (int *)&x;
+ int *py = (int *)&y;
px[HIXWORD] = (px[HIXWORD] & ~XSGNMSK) | (py[HIXWORD] & XSGNMSK);
return (x);
}