qse/ase/conf_vms.h

62 lines
1.5 KiB
C
Raw Normal View History

2006-01-08 13:34:41 +00:00
/* TODO: please complete the itanium portion */
2005-05-20 04:01:12 +00:00
2006-01-08 13:34:41 +00:00
/* both vax and alpha are in the little endian. */
2005-05-20 04:01:12 +00:00
#define XP_ENDIAN_LITTLE
#define SIZEOF_CHAR 1
#define SIZEOF_SHORT 2
#define SIZEOF_INT 4
2006-01-08 13:34:41 +00:00
#define SIZEOF_LONG 4
#if defined(vax) || defined(__vax)
#define SIZEOF_LONG_LONG 0
#elif defined(alpha) || defined(__alpha)
#define SIZEOF_LONG_LONG 8
#elif defined(itanium) || defined(__itanium)
#define SIZEOF_LONG_LONG 8
2005-05-20 04:01:12 +00:00
#else
2006-01-08 13:34:41 +00:00
#define SIZEOF_LONG_LONG 0
2005-05-20 04:01:12 +00:00
#endif
#define SIZEOF___INT8 1
#define SIZEOF___INT16 2
#define SIZEOF___INT32 4
2006-01-08 13:34:41 +00:00
#if defined(vax) || defined(__vax)
#define SIZEOF___INT64 0
#elif defined(alpha) || defined(__alpha)
#define SIZEOF___INT64 8
#elif defined(itanium) || defined(__itanium)
#define SIZEOF___INT64 8
#else
#define SIZEOF___INT64 0
#endif
2005-05-20 04:01:12 +00:00
#define SIZEOF___INT128 0
2006-01-08 13:34:41 +00:00
#if defined(vax) || defined(__vax)
#define SIZEOF_VOID_P 4
#elif defined(alpha) || defined(__alpha)
/*#pragma pointer_size 32
#define SIZEOF_VOID_P 4*/
#pragma pointer_size 64
#define SIZEOF_VOID_P 8
#elif defined(itanium) || defined(__itanium)
/*#pragma pointer_size 32
#define SIZEOF_VOID_P 4*/
#pragma pointer_size 64
2005-05-20 04:01:12 +00:00
#define SIZEOF_VOID_P 8
#else
2006-01-08 13:34:41 +00:00
#define SIZEOF_VOID_P 0
2005-05-20 04:01:12 +00:00
#endif
#define SIZEOF_FLOAT 4
#define SIZEOF_DOUBLE 8
2006-01-08 13:34:41 +00:00
#if defined(vax) || defined(__vax)
#define SIZEOF_LONG_DOUBLE 8
#elif defined(alpha) || defined(__alpha)
#define SIZEOF_LONG_DOUBLE 16
#elif defined(itanium) || defined(__itanium)
#define SIZEOF_LONG_DOUBLE 16
#else
#define SIZEOF_LONG_DOUBLE 0
#endif