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