1 1.1.4.2 tls /* $NetBSD: nanf.c,v 1.1.4.2 2014/08/20 00:02:08 tls Exp $ */ 2 1.1.4.2 tls 3 1.1.4.2 tls #include <sys/cdefs.h> 4 1.1.4.2 tls #if defined(LIBC_SCCS) && !defined(lint) 5 1.1.4.2 tls __RCSID("$NetBSD: nanf.c,v 1.1.4.2 2014/08/20 00:02:08 tls Exp $"); 6 1.1.4.2 tls #endif /* LIBC_SCCS and not lint */ 7 1.1.4.2 tls 8 1.1.4.2 tls #include <math.h> 9 1.1.4.2 tls 10 1.1.4.2 tls /* bytes for quiet NaN (IEEE single precision) */ 11 1.1.4.2 tls const union __float_u __nanf = 12 1.1.4.2 tls #ifdef __AARCH64EB__ 13 1.1.4.2 tls { { 0x7f, 0xc0, 0, 0 } }; 14 1.1.4.2 tls #else 15 1.1.4.2 tls { { 0, 0, 0xc0, 0x7f } }; 16 1.1.4.2 tls #endif 17 1.1.4.2 tls 18 1.1.4.2 tls __warn_references(__nanf, "warning: <math.h> defines NAN incorrectly for your compiler.") 19