Home | History | Annotate | Download | only in Math
      1 /*  $NetBSD: s_infinity.c,v 1.5 2003/07/26 19:25:05 salo Exp $  */
      2 
      3 /*
      4  * Written by J.T. Conklin <jtc (at) NetBSD.org>.
      5  * Public domain.
      6  */
      7 #include  <LibConfig.h>
      8 
      9 #include <sys/types.h>
     10 
     11 #if defined(_MSC_VER)           /* Handle Microsoft VC++ compiler specifics. */
     12   // Force 8-byte alignment
     13   #define ALIGN8  __declspec(align(8))
     14 
     15   // C4742: identifier has different alignment in 'X' and 'Y'
     16   #pragma warning ( disable : 4742 )
     17   // C4744: identifier has different type in 'X' and 'Y'
     18   #pragma warning ( disable : 4744 )
     19 #else
     20   #define ALIGN8
     21 #endif
     22 
     23 #if BYTE_ORDER == LITTLE_ENDIAN
     24 ALIGN8 char __infinity[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x7f };
     25 #else
     26 ALIGN8 char __infinity[] = { 0x7f, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
     27 #endif
     28