xref: /netbsd-src/lib/libc/arch/mips/gen/nanf.c (revision 1ca5c1b28139779176bd5c13ad7c5f25c0bcd5f8)
1 /*	$NetBSD: nanf.c,v 1.1 1999/12/23 10:15:07 kleink Exp $	*/
2 
3 #include <sys/cdefs.h>
4 #if defined(LIBC_SCCS) && !defined(lint)
5 __RCSID("$NetBSD: nanf.c,v 1.1 1999/12/23 10:15:07 kleink Exp $");
6 #endif /* LIBC_SCCS and not lint */
7 
8 /* nanf.c */
9 
10 #include <math.h>
11 #include <machine/endian.h>
12 
13 /* bytes for quiet NaN on a MIPS (IEEE single precision) */
14 #if BYTE_ORDER == BIG_ENDIAN
15 const char __nanf[] = { 0x7f, (char)0xc0, 0, 0 };
16 #else
17 const char __nanf[] = { 0, 0, (char)0xc0, 0x7f };
18 #endif
19