1 /* Begin include file nan.h */ 2 /* @(#)nan.h 1.3 */ 3 4 /* Handling of Not_a_Number's (only in IEEE floating-point standard) */ 5 6 #define KILLFPE() (void) kill(getpid(), 8) 7 #if u3b || u3b5 8 #define NaN(X) (((union { double d; struct { unsigned :1, e:11; } s; } \ 9 *)&X)->s.e == 0x7ff) 10 #define KILLNaN(X) if (NaN(X)) KILLFPE() 11 #else 12 #define Nan(X) 0 13 #define KILLNaN(X) 14 #endif 15 16 /* End include file nan.h */