Print this page
11210 libm should be cstyle(1ONBLD) clean
@@ -16,13 +16,15 @@
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
+
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
+
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -38,11 +40,12 @@
* metic. This is fine for sparc because we build libm in v8plus
* mode. It's also fine for sparcv9 and amd64. For x86, it would
* be better to use 32-bit code, but we have assembly for x86.
*/
int
-__isnan(double x) {
+__isnan(double x)
+{
long long llx;
llx = *(long long *)&x & ~0x8000000000000000ull;
return ((unsigned long long)(0x7ff0000000000000ll - llx) >> 63);
}