qse/ase/conf_vms.h

88 lines
2.1 KiB
C
Raw Normal View History

2006-04-30 17:35:37 +00:00
/*
2007-02-07 05:43:37 +00:00
* $Id: conf_vms.h,v 1.9 2007-02-07 05:43:37 bacon Exp $
2007-02-03 10:52:36 +00:00
*
* {License}
2006-04-30 17:35:37 +00:00
*/
2007-02-07 05:43:37 +00:00
/* TODO: please complete the ia64 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. */
2006-10-24 04:31:07 +00:00
#define ASE_ENDIAN_LITTLE
2005-05-20 04:01:12 +00:00
2006-10-24 04:31:07 +00:00
#define ASE_SIZEOF_CHAR 1
#define ASE_SIZEOF_SHORT 2
#define ASE_SIZEOF_INT 4
#define ASE_SIZEOF_LONG 4
2006-05-06 16:05:12 +00:00
2006-01-08 13:34:41 +00:00
#if defined(vax) || defined(__vax)
2006-10-24 04:31:07 +00:00
#define ASE_SIZEOF_LONG_LONG 0
2006-01-08 13:34:41 +00:00
#elif defined(alpha) || defined(__alpha)
2006-10-24 04:31:07 +00:00
#define ASE_SIZEOF_LONG_LONG 8
2007-02-07 05:43:37 +00:00
#elif defined(ia64) || defined(__ia64)
2006-10-24 04:31:07 +00:00
#define ASE_SIZEOF_LONG_LONG 8
2005-05-20 04:01:12 +00:00
#else
2006-10-24 04:31:07 +00:00
#define ASE_SIZEOF_LONG_LONG 0
2005-05-20 04:01:12 +00:00
#endif
2006-10-24 04:31:07 +00:00
#define ASE_SIZEOF___INT8 1
#define ASE_SIZEOF___INT16 2
#define ASE_SIZEOF___INT32 4
2006-05-06 16:05:12 +00:00
2006-01-08 13:34:41 +00:00
#if defined(vax) || defined(__vax)
2006-10-24 04:31:07 +00:00
#define ASE_SIZEOF___INT64 0
2006-01-08 13:34:41 +00:00
#elif defined(alpha) || defined(__alpha)
2006-10-24 04:31:07 +00:00
#define ASE_SIZEOF___INT64 8
2007-02-07 05:43:37 +00:00
#elif defined(ia64) || defined(__ia64)
2006-10-24 04:31:07 +00:00
#define ASE_SIZEOF___INT64 8
2006-01-08 13:34:41 +00:00
#else
2006-10-24 04:31:07 +00:00
#define ASE_SIZEOF___INT64 0
2006-01-08 13:34:41 +00:00
#endif
2006-05-06 16:05:12 +00:00
2006-10-24 04:31:07 +00:00
#define ASE_SIZEOF___INT96 0
#define ASE_SIZEOF___INT128 0
2005-05-20 04:01:12 +00:00
2006-01-08 13:34:41 +00:00
#if defined(vax) || defined(__vax)
2006-10-24 04:31:07 +00:00
#define ASE_SIZEOF_VOID_P 4
2006-01-08 13:34:41 +00:00
#elif defined(alpha) || defined(__alpha)
2007-02-07 05:43:37 +00:00
#if __INITIAL_POINTER_SIZE==64
#pragma pointer_size 64
#define ASE_SIZEOF_VOID_P 8
#elif __INITIAL_POINTER_SIZE==32
#pragma pointer_size 32
#define ASE_SIZEOF_VOID_P 4
#elif __INITIAL_POINTER_SIZE==0
#define ASE_SIZEOF_VOID_P 4
#else
#error "unsupported initial pointer size"
#endif
#elif defined(ia64) || defined(__ia64)
#if __INITIAL_POINTER_SIZE==64
#pragma pointer_size 64
#define ASE_SIZEOF_VOID_P 8
#elif __INITIAL_POINTER_SIZE==32
#pragma pointer_size 32
#define ASE_SIZEOF_VOID_P 4
#elif __INITIAL_POINTER_SIZE==0
#define ASE_SIZEOF_VOID_P 4
#else
#error "unsupported initial pointer size"
#endif
2005-05-20 04:01:12 +00:00
#else
2007-02-07 05:43:37 +00:00
#error "unsupported architecture"
2005-05-20 04:01:12 +00:00
#endif
2006-10-24 04:31:07 +00:00
#define ASE_SIZEOF_FLOAT 4
#define ASE_SIZEOF_DOUBLE 8
2006-01-08 13:34:41 +00:00
#if defined(vax) || defined(__vax)
2006-10-24 04:31:07 +00:00
#define ASE_SIZEOF_LONG_DOUBLE 8
2006-01-08 13:34:41 +00:00
#elif defined(alpha) || defined(__alpha)
2006-10-24 04:31:07 +00:00
#define ASE_SIZEOF_LONG_DOUBLE 16
2007-02-07 05:43:37 +00:00
#elif defined(ia64) || defined(__ia64)
2006-10-24 04:31:07 +00:00
#define ASE_SIZEOF_LONG_DOUBLE 16
2006-01-08 13:34:41 +00:00
#else
2006-10-24 04:31:07 +00:00
#define ASE_SIZEOF_LONG_DOUBLE 0
2006-01-08 13:34:41 +00:00
#endif
2006-05-06 16:05:12 +00:00
2006-10-24 04:31:07 +00:00
#define ASE_SIZEOF_WCHAR_T 4