Pristine Ack-5.5
[Ack-5.5.git] / lang / cem / cemcom.ansi / sizes.h
1 /*
2  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3  * See the copyright notice in the ACK home directory, in the file "Copyright".
4  */
5 /* $Id: sizes.h,v 1.7 1994/06/27 08:02:17 ceriel Exp $ */
6 /* VARIOUS TARGET MACHINE SIZE DESCRIPTORS */
7
8 #include "nocross.h"
9 #include "trgt_sizes.h"
10
11 #ifndef NOCROSS
12 extern arith
13         short_size, word_size, dword_size, int_size, long_size,
14         float_size, double_size, lngdbl_size,
15         pointer_size;
16
17 extern arith max_int, max_unsigned;     /* cstoper.c    */
18 #else /* NOCROSS */
19 #define short_size      ((arith)SZ_SHORT)
20 #define word_size       ((arith)SZ_WORD)
21 #define dword_size      ((arith)2*SZ_WORD)
22 #define int_size        ((arith)SZ_INT)
23 #define long_size       ((arith)SZ_LONG)
24 #define float_size      ((arith)SZ_FLOAT)
25 #define double_size     ((arith)SZ_DOUBLE)
26 #define lngdbl_size     ((arith)SZ_LNGDBL)
27 #define pointer_size    ((arith)SZ_POINTER)
28
29 #if SZ_INT == 2
30 #define max_int         ((arith)32767)
31 #define max_unsigned    ((arith)65535)
32 #else /* SZ_INT == 4 */
33 #define max_int         ((arith)2147483647)
34 #define max_unsigned    ((arith)4294967295)
35 #endif
36 #endif /* NOCROSS */
37