Home | History | Annotate | Line # | Download | only in gen
      1  1.4  martin /*	$NetBSD: nanf.c,v 1.4 2009/02/22 01:34:01 martin Exp $	*/
      2  1.1   bjh21 
      3  1.1   bjh21 #include <sys/cdefs.h>
      4  1.3  kleink #if defined(LIBC_SCCS) && !defined(lint)
      5  1.4  martin __RCSID("$NetBSD: nanf.c,v 1.4 2009/02/22 01:34:01 martin Exp $");
      6  1.3  kleink #endif /* LIBC_SCCS and not lint */
      7  1.1   bjh21 
      8  1.1   bjh21 #include <math.h>
      9  1.3  kleink #include <machine/endian.h>
     10  1.1   bjh21 
     11  1.3  kleink /* bytes for quiet NaN (IEEE single precision) */
     12  1.3  kleink const union __float_u __nanf =
     13  1.3  kleink #if BYTE_ORDER == BIG_ENDIAN
     14  1.3  kleink 		{ { 0x7f, 0xc0,    0,    0 } };
     15  1.3  kleink #else
     16  1.3  kleink 		{ {    0,    0, 0xc0, 0x7f } };
     17  1.3  kleink #endif
     18  1.4  martin 
     19  1.4  martin __warn_references(__nanf, "warning: <math.h> defines NAN incorrectly for your compiler.")
     20