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