Initial revision
[cacao.git] / alpha / types.h
1 /*************************** alpha/types.h *************************************
2
3         Copyright (c) 1997 A. Krall, R. Grafl, M. Gschwind, M. Probst
4
5         See file COPYRIGHT for information on usage and disclaimer of warranties
6
7         machine specific definitions for the Alpha processor
8         
9         Authors: Reinhard Grafl      EMAIL: cacao@complang.tuwien.ac.at
10                  Andreas  Krall      EMAIL: cacao@complang.tuwien.ac.at
11                  Michael Gschwind    EMAIL: cacao@complang.tuwien.ac.at
12
13         Last Change: 1997/09/22
14
15 *******************************************************************************/
16
17 #ifndef _CACAO_TYPES_H
18
19 #define _CACAO_TYPES_H
20
21 #define POINTERSIZE         8
22 #define WORDS_BIGENDIAN     0
23
24 #define SUPPORT_DIVISION    0
25 #define SUPPORT_LONG        1
26 #define SUPPORT_FLOAT       1
27 #define SUPPORT_DOUBLE      1
28
29 #define SUPPORT_LONG_ADD    1
30 #define SUPPORT_LONG_CMP    1
31 #define SUPPORT_LONG_LOG    1
32 #define SUPPORT_LONG_SHIFT  1
33 #define SUPPORT_LONG_MULDIV 1
34 #define SUPPORT_LONG_ICVT   1
35 #define SUPPORT_LONG_FCVT   1
36
37 #define U8_AVAILABLE        1
38
39
40 typedef signed char             s1;
41 typedef unsigned char           u1;
42  
43 typedef signed short int        s2;
44 typedef unsigned short int      u2;
45
46 typedef signed int              s4;
47 typedef unsigned int            u4;
48
49 #if U8_AVAILABLE
50 typedef signed long int         s8;
51 typedef unsigned long int       u8; 
52 #else
53 typedef struct {u4 low, high;}  u8;
54 #define s8 u8
55 #endif
56
57 #endif
58