Print this page
remove support for non-ANSI compilation
*** 22,40 ****
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1996, by Sun Microsystems, Inc.
* All Rights Reserved
*/
#ifndef _NAN_H
#define _NAN_H
- #pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* Handling of Not_a_Number's (only in IEEE floating-point standard)
*/
#include <sys/isa_defs.h>
--- 22,40 ----
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
/*
+ * Copyright 2014 Garrett D'Amore <garrett@damore.org>
+ *
* Copyright (c) 1996, by Sun Microsystems, Inc.
* All Rights Reserved
*/
#ifndef _NAN_H
#define _NAN_H
/*
* Handling of Not_a_Number's (only in IEEE floating-point standard)
*/
#include <sys/isa_defs.h>
*** 118,132 ****
* GETNaNPC gets the leftmost 32 bits of the fraction part
*/
#define GETNaNPC(dval) (((dnan *)&(dval))->inf_parts.bits << 12 | \
((dnan *)&(dval))->nan_parts.fraction_low >> 20)
- #if defined(__STDC__)
#define KILLFPE() (void) _kill(_getpid(), 8)
- #else
- #define KILLFPE() (void) kill(getpid(), 8)
- #endif
#define NaN(X) (((dnan *)&(X))->nan_parts.exponent == 0x7ff)
#define KILLNaN(X) if (NaN(X)) KILLFPE()
#else /* defined(_IEEE_754) */
/* #error is strictly ansi-C, but works as well as anything for K&R systems. */
--- 118,128 ----