1 1.1 matt /* $NetBSD: nanf.c,v 1.1 2014/09/19 17:36:25 matt Exp $ */ 2 1.1 matt 3 1.1 matt #include <sys/cdefs.h> 4 1.1 matt #if defined(LIBC_SCCS) && !defined(lint) 5 1.1 matt __RCSID("$NetBSD: nanf.c,v 1.1 2014/09/19 17:36:25 matt Exp $"); 6 1.1 matt #endif /* LIBC_SCCS and not lint */ 7 1.1 matt 8 1.1 matt #include <math.h> 9 1.1 matt #include <machine/endian.h> 10 1.1 matt 11 1.1 matt /* bytes for quiet NaN (IEEE single precision) */ 12 1.1 matt const union __float_u __nanf = 13 1.1 matt { { 0x7f, 0xc0, 0, 0 } }; 14 1.1 matt 15 1.1 matt __warn_references(__nanf, "warning: <math.h> defines NAN incorrectly for your compiler.") 16