a13bbddb1b040309dbd873bc98639d7b05c8388d
[cacao.git] / powerpc / 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         4
22 #define WORDS_BIGENDIAN     1
23
24 #define SUPPORT_DIVISION    0
25 #define SUPPORT_LONG        1
26 #define SUPPORT_FLOAT       1
27 #define SUPPORT_DOUBLE      1
28 #define SUPPORT_FMOD        0
29 #define SUPPORT_FICVT       1
30 #define SUPPORT_IFCVT       0
31
32 #define SUPPORT_LONG_ADD    1
33 #define SUPPORT_LONG_CMP    1
34 #define SUPPORT_LONG_LOG    1
35 #define SUPPORT_LONG_SHIFT  0
36 #define SUPPORT_LONG_MULDIV 0
37 #define SUPPORT_LONG_ICVT   0
38 #define SUPPORT_LONG_FCVT   0
39
40 //#define CONDITIONAL_LOADCONST
41 #define NOLONG_CONDITIONAL
42 #define NO_DIV_OPT
43 #define USETWOREGS
44 #define CONSECUTIVE_FLOATARGS
45 #define SPECIALMEMUSE
46 #define USEBUILTINTABLE
47
48 #define U8_AVAILABLE        1
49
50 typedef signed char             s1;
51 typedef unsigned char           u1;
52  
53 typedef signed short int        s2;
54 typedef unsigned short int      u2;
55
56 typedef signed int              s4;
57 typedef unsigned int            u4;
58
59 #if U8_AVAILABLE
60 typedef signed long long        s8;
61 typedef unsigned long long      u8; 
62 #else
63 typedef struct {u4 low, high;}  u8;
64 #define s8 u8
65 #endif
66
67 #endif
68