Home | History | Annotate | Line # | Download | only in gen
infinity_ieee754.c revision 1.1
      1 /*	$NetBSD: infinity_ieee754.c,v 1.1 2003/05/12 15:15:15 kleink Exp $	*/
      2 
      3 /*
      4  * IEEE-compatible infinity.c -- public domain.
      5  */
      6 
      7 #include <math.h>
      8 #include <machine/endian.h>
      9 
     10 const union __double_u __infinity =
     11 #if BYTE_ORDER == BIG_ENDIAN
     12 	{ { 0x7f, 0xf0, 0, 0, 0, 0,    0,    0} };
     13 #else
     14 	{ {    0,    0, 0, 0, 0, 0, 0xf0, 0x7f} };
     15 #endif
     16