/*
 * @(#)nan.h	1.1 (National Semiconductor) 8/6/87 11:57:25
 * @(#) copyrights and other release restrictions may apply
 */

/*
******************************************************************************
*                       Copyright (c) 1985 AT&T                              *
*                         All Rights Reserved                                *
*                                                                            *
*                                                                            *
*        THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T                 *
*      The copyright notice above does not evidence any actual               *
*      or intended publication of such source code.                          *
******************************************************************************
*/
/*	@(#)nan.h	1.3	*/
/* Handling of Not_a_Number's (only in IEEE floating-point standard) */

#define KILLFPE()	(void) kill(getpid(), 8)
#if u3b || u3b5
/* True only for IEEE standard big-endian */
#define NaN(X)	(((union { double d; struct { unsigned :1, e:11; } s; } \
			*)&X)->s.e == 0x7ff)
#define KILLNaN(X)	if (NaN(X)) KILLFPE()
#else
#define NaN(X)	0
#define KILLNaN(X)
#endif
