| /* @(#)s_isnan.c 1.3 95/01/18 */ |
| * ==================================================== |
| * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. |
| * Developed at SunSoft, a Sun Microsystems, Inc. business. |
| * Permission to use, copy, modify, and distribute this |
| * software is freely granted, provided that this notice |
| * ==================================================== |
| * ieee_isnan(x) returns 1 is x is nan, else 0; |
| hx = (__HI(x)&0x7fffffff); |
| hx |= (unsigned)(lx|(-lx))>>31; |
| return ((unsigned)(hx))>>31; |