|
|
1.1 ! root 1: /* @(#)nan.h 1.3 */ ! 2: /* Handling of Not_a_Number's (only in IEEE floating-point standard) */ ! 3: ! 4: #define KILLFPE() (void) kill(getpid(), 8) ! 5: #if u3b || u3b5 ! 6: #define NaN(X) (((union { double d; struct { unsigned :1, e:11; } s; } \ ! 7: *)&X)->s.e == 0x7ff) ! 8: #define KILLNaN(X) if (NaN(X)) KILLFPE() ! 9: #else ! 10: #define Nan(X) 0 ! 11: #define KILLNaN(X) ! 12: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.