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 __copysign = copysign
#include "libm.h"
double
-copysign(double x, double y) {
+copysign(double x, double y)
+{
int hx, hy;
- hx = ((int *) &x)[HIWORD];
- hy = ((int *) &y)[HIWORD];
- return (hx ^ hy) >= 0 ? (x) : (-x);
+ hx = ((int *)&x)[HIWORD];
+ hy = ((int *)&y)[HIWORD];
+ return ((hx ^ hy) >= 0 ? (x) : (-x));
}