Reentrant compiler changes.
[cacao.git] / src / vm / jit / i386 / types.h
1 /* jit/i386/types.h - machine specific definitions for i386
2
3    Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
4    Institut f. Computersprachen, TU Wien
5    R. Grafl, A. Krall, C. Kruegel, C. Oates, R. Obermaisser, M. Probst,
6    S. Ring, E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich,
7    J. Wenninger
8
9    This file is part of CACAO.
10
11    This program is free software; you can redistribute it and/or
12    modify it under the terms of the GNU General Public License as
13    published by the Free Software Foundation; either version 2, or (at
14    your option) any later version.
15
16    This program is distributed in the hope that it will be useful, but
17    WITHOUT ANY WARRANTY; without even the implied warranty of
18    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19    General Public License for more details.
20
21    You should have received a copy of the GNU General Public License
22    along with this program; if not, write to the Free Software
23    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24    02111-1307, USA.
25
26    Contact: cacao@complang.tuwien.ac.at
27
28    Authors: Reinhard Grafl
29             Andreas  Krall
30             Michael Gschwind
31
32    Changes: Christan Thalinger
33
34    $Id: types.h 1351 2004-07-22 22:39:05Z twisti $
35
36 */
37
38
39 #ifndef _TYPES_H
40 #define _TYPES_H
41
42 #define POINTERSIZE         4
43 #define WORDS_BIGENDIAN     0
44
45 #define SUPPORT_DIVISION    1
46 #define SUPPORT_LONG        1
47 #define SUPPORT_FLOAT       1
48 #define SUPPORT_DOUBLE      1
49
50 #define SUPPORT_LONG_ADD    1
51 #define SUPPORT_LONG_CMP    1
52 #define SUPPORT_LONG_LOG    1
53 #define SUPPORT_LONG_SHIFT  1
54 #define SUPPORT_LONG_MUL    1
55 #define SUPPORT_LONG_DIV    0
56 #define SUPPORT_LONG_ICVT   1
57 #define SUPPORT_LONG_FCVT   1
58
59 #define SUPPORT_CONST_ASTORE     1      /* do we support const astores        */
60 #define SUPPORT_ONLY_ZERO_ASTORE 0      /* on risc machines we can only store */
61                                         /* REG_ZERO                           */
62
63 #define USEBUILTINTABLE
64
65 #define SUPPORT_IFCVT       1
66 #define SUPPORT_FICVT       1
67 #define SUPPORT_FMOD        1
68
69 #define CONDITIONAL_LOADCONST
70
71 #define U8_AVAILABLE        1
72
73
74 typedef signed char             s1;
75 typedef unsigned char           u1;
76  
77 typedef signed short int        s2;
78 typedef unsigned short int      u2;
79
80 typedef signed int              s4;
81 typedef unsigned int            u4;
82
83 #if U8_AVAILABLE
84 typedef signed long long int    s8;
85 typedef unsigned long long int  u8;
86 #else
87 typedef struct {u4 low, high;}  u8;
88 #define s8 u8
89 #endif
90
91 #endif /* _TYPES_H */
92
93
94 /*
95  * These are local overrides for various environment variables in Emacs.
96  * Please do not remove this and leave it at the end of the file, where
97  * Emacs will automagically detect them.
98  * ---------------------------------------------------------------------
99  * Local variables:
100  * mode: c
101  * indent-tabs-mode: t
102  * c-basic-offset: 4
103  * tab-width: 4
104  * End:
105  */