vm: fix a null dereference on out-of-memory
[minix.git] / lib / libc / arch / mips / gen / nanf.c
blob6fbda28852f66579e2350d6dd3d97d0c7a74832b
1 /* $NetBSD: nanf.c,v 1.4 2009/02/22 01:34:02 martin Exp $ */
3 #include <sys/cdefs.h>
4 #if defined(LIBC_SCCS) && !defined(lint)
5 __RCSID("$NetBSD: nanf.c,v 1.4 2009/02/22 01:34:02 martin Exp $");
6 #endif /* LIBC_SCCS and not lint */
8 #include <math.h>
9 #include <machine/endian.h>
11 /* bytes for quiet NaN (IEEE single precision) */
12 const union __float_u __nanf =
13 #if BYTE_ORDER == BIG_ENDIAN
14 { { 0x7f, 0xa0, 0, 0 } };
15 #else
16 { { 0, 0, 0xa0, 0x7f } };
17 #endif
19 __warn_references(__nanf, "warning: <math.h> defines NAN incorrectly for your compiler.")