NetBSD/sys/arch/sparc64/include/math.h
kleink 11e6c54cfc C99: Define a NAN macro in <math.h> which evaulates to a constant expression of
a single-precision quiet NaN; only to be defined on platforms that do support
this value.
1999-12-23 10:15:05 +00:00

11 lines
283 B
C

/* $NetBSD: math.h,v 1.1 1999/12/23 10:15:15 kleink Exp $ */
/*
* ISO C99
*/
#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
!defined(_XOPEN_SOURCE) || defined(_ISOC99_SOURCE)
extern const char __nanf[];
#define NAN (*(const float *)(const void *)__nanf)
#endif