xref: /netbsd-src/lib/libc/arch/arm/gen/nanf.c (revision 404fbe5fb94ca1e054339640cabb2801ce52dd30)
1 /*	$NetBSD: nanf.c,v 1.3 2005/04/15 22:39:10 kleink Exp $	*/
2 
3 #include <sys/cdefs.h>
4 #if defined(LIBC_SCCS) && !defined(lint)
5 __RCSID("$NetBSD: nanf.c,v 1.3 2005/04/15 22:39:10 kleink Exp $");
6 #endif /* LIBC_SCCS and not lint */
7 
8 #include <math.h>
9 #include <machine/endian.h>
10 
11 /* bytes for quiet NaN (IEEE single precision) */
12 const union __float_u __nanf =
13 #if BYTE_ORDER == BIG_ENDIAN
14 		{ { 0x7f, 0xc0,    0,    0 } };
15 #else
16 		{ {    0,    0, 0xc0, 0x7f } };
17 #endif
18