1989-02-07 11:04:05 +00:00
|
|
|
/*
|
|
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
1994-06-27 08:03:14 +00:00
|
|
|
/* $Id$ */
|
1989-02-07 11:04:05 +00:00
|
|
|
/* VARIOUS TARGET MACHINE SIZE DESCRIPTORS */
|
|
|
|
|
2013-05-12 19:45:55 +00:00
|
|
|
#include "parameters.h"
|
1989-02-07 11:04:05 +00:00
|
|
|
|
|
|
|
#ifndef NOCROSS
|
|
|
|
extern arith
|
|
|
|
short_size, word_size, dword_size, int_size, long_size,
|
|
|
|
float_size, double_size, lngdbl_size,
|
|
|
|
pointer_size;
|
1989-11-08 16:52:34 +00:00
|
|
|
|
|
|
|
extern arith max_int, max_unsigned; /* cstoper.c */
|
1991-12-17 13:12:22 +00:00
|
|
|
#else /* NOCROSS */
|
1989-11-09 18:07:14 +00:00
|
|
|
#define short_size ((arith)SZ_SHORT)
|
|
|
|
#define word_size ((arith)SZ_WORD)
|
|
|
|
#define dword_size ((arith)2*SZ_WORD)
|
|
|
|
#define int_size ((arith)SZ_INT)
|
|
|
|
#define long_size ((arith)SZ_LONG)
|
|
|
|
#define float_size ((arith)SZ_FLOAT)
|
|
|
|
#define double_size ((arith)SZ_DOUBLE)
|
|
|
|
#define lngdbl_size ((arith)SZ_LNGDBL)
|
|
|
|
#define pointer_size ((arith)SZ_POINTER)
|
1989-11-08 16:52:34 +00:00
|
|
|
|
1989-11-09 18:07:14 +00:00
|
|
|
#if SZ_INT == 2
|
1989-11-08 16:52:34 +00:00
|
|
|
#define max_int ((arith)32767)
|
|
|
|
#define max_unsigned ((arith)65535)
|
1989-11-09 18:07:14 +00:00
|
|
|
#else /* SZ_INT == 4 */
|
1989-11-08 16:52:34 +00:00
|
|
|
#define max_int ((arith)2147483647)
|
|
|
|
#define max_unsigned ((arith)4294967295)
|
|
|
|
#endif
|
1991-12-17 13:12:22 +00:00
|
|
|
#endif /* NOCROSS */
|
1989-02-07 11:04:05 +00:00
|
|
|
|