54a13faa788484b47eacb6a853c561ef88941b85
[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 765 2003-12-13 22:49:18Z 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 USEBUILTINTABLE
60
61 #define SUPPORT_IFCVT       1
62 #define SUPPORT_FICVT       1
63 #define SUPPORT_FMOD        1
64
65 #define CONDITIONAL_LOADCONST
66 #define NO_DIV_OPT
67
68 #define U8_AVAILABLE        1
69
70
71 typedef signed char             s1;
72 typedef unsigned char           u1;
73  
74 typedef signed short int        s2;
75 typedef unsigned short int      u2;
76
77 typedef signed int              s4;
78 typedef unsigned int            u4;
79
80 #if U8_AVAILABLE
81 typedef signed long long int    s8;
82 typedef unsigned long long int  u8;
83 #else
84 typedef struct {u4 low, high;}  u8;
85 #define s8 u8
86 #endif
87
88 #endif /* _TYPES_H */
89
90
91 /*
92  * These are local overrides for various environment variables in Emacs.
93  * Please do not remove this and leave it at the end of the file, where
94  * Emacs will automagically detect them.
95  * ---------------------------------------------------------------------
96  * Local variables:
97  * mode: c
98  * indent-tabs-mode: t
99  * c-basic-offset: 4
100  * tab-width: 4
101  * End:
102  */