1*0a6a1f1dSLionel Sambuc /* $NetBSD: nanf.c,v 1.1 2014/08/10 05:47:36 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/08/10 05:47:36 matt Exp $"); 6*0a6a1f1dSLionel Sambuc #endif /* LIBC_SCCS and not lint */ 7*0a6a1f1dSLionel Sambuc 8*0a6a1f1dSLionel Sambuc #include <math.h> 9*0a6a1f1dSLionel Sambuc 10*0a6a1f1dSLionel Sambuc /* bytes for quiet NaN (IEEE single precision) */ 11*0a6a1f1dSLionel Sambuc const union __float_u __nanf = 12*0a6a1f1dSLionel Sambuc #ifdef __AARCH64EB__ 13*0a6a1f1dSLionel Sambuc { { 0x7f, 0xc0, 0, 0 } }; 14*0a6a1f1dSLionel Sambuc #else 15*0a6a1f1dSLionel Sambuc { { 0, 0, 0xc0, 0x7f } }; 16*0a6a1f1dSLionel Sambuc #endif 17*0a6a1f1dSLionel Sambuc 18*0a6a1f1dSLionel Sambuc __warn_references(__nanf, "warning: <math.h> defines NAN incorrectly for your compiler.") 19