Print this page
11210 libm should be cstyle(1ONBLD) clean
@@ -20,10 +20,11 @@
*/
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
+
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -31,22 +32,26 @@
#include "libm.h"
#if defined(__sparc)
int
-isnanl(long double x) {
- int *px = (int *) &x;
- return ((px[0] & ~0x80000000) >= 0x7fff0000 &&
- ((px[0] & ~0xffff0000) | px[1] | px[2] | px[3]) != 0);
+isnanl(long double x)
+{
+ int *px = (int *)&x;
+
+ return ((px[0] & ~0x80000000) >= 0x7fff0000 && ((px[0] & ~0xffff0000) |
+ px[1] | px[2] | px[3]) != 0);
}
#elif defined(__x86)
int
-isnanl(long double x) {
- int *px = (int *) &x, t = px[2] & 0x7fff;
+isnanl(long double x)
+{
+ int *px = (int *)&x, t = px[2] & 0x7fff;
+
#if defined(HANDLE_UNSUPPORTED)
- return ((t == 0x7fff && ((px[1] & ~0x80000000) | px[0]) != 0) ||
- (t != 0 && (px[1] & 0x80000000) == 0));
+ return ((t == 0x7fff && ((px[1] & ~0x80000000) | px[0]) != 0) || (t !=
+ 0 && (px[1] & 0x80000000) == 0));
#else
return (t == 0x7fff && ((px[1] & ~0x80000000) | px[0]) != 0);
#endif
}
#endif /* defined(__sparc) || defined(__x86) */