1234567891011121314151617181920212223242526272829 |
- #include "math.h"
- #include "math_private.h"
- int __isnan(double x)
- {
- int32_t hx,lx;
- EXTRACT_WORDS(hx,lx,x);
- hx &= 0x7fffffff;
- hx |= (u_int32_t)(lx|(-lx))>>31;
- hx = 0x7ff00000 - hx;
- return (int)(((u_int32_t)hx)>>31);
- }
- libm_hidden_def(__isnan)
|