Home | History | Annotate | Line # | Download | only in gen
      1 /*	$NetBSD: infinityl_dbl_ieee754.c,v 1.1 2003/10/25 22:31:20 kleink Exp $	*/
      2 
      3 /*
      4  * IEEE-compatible infinityl.c -- public domain.
      5  * For platforms where long double == double.
      6  */
      7 
      8 #include <float.h>
      9 #include <math.h>
     10 #include <machine/endian.h>
     11 
     12 #if LDBL_MANT_DIG != DBL_MANT_DIG
     13 #error double / long double mismatch
     14 #endif
     15 
     16 const union __long_double_u __infinityl =
     17 #if BYTE_ORDER == BIG_ENDIAN
     18 	{ { 0x7f, 0xf0, 0, 0, 0, 0,    0,    0 } };
     19 #else
     20 	{ {    0,    0, 0, 0, 0, 0, 0xf0, 0x7f } };
     21 #endif
     22