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