8a81a5df7c7b2c73ee75d1887e1a5458e8eed2ad
[cacao.git] / src / vm / jit / i386 / types.h
1 /* vm/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
31    Changes: Christan Thalinger
32
33    $Id: types.h 1674 2004-12-03 16:46:49Z twisti $
34
35 */
36
37
38 #ifndef _TYPES_H
39 #define _TYPES_H
40
41 #include "vm/jit/i386/arch.h"
42
43
44 /* Define the sizes of the integer types used internally by cacao. */
45
46 typedef signed char             s1;
47 typedef unsigned char           u1;
48  
49 typedef signed short int        s2;
50 typedef unsigned short int      u2;
51
52 typedef signed int              s4;
53 typedef unsigned int            u4;
54
55 #if U8_AVAILABLE
56 typedef signed long long int    s8;
57 typedef unsigned long long int  u8;
58 #else
59 typedef struct {u4 low, high;}  u8;
60 #define s8 u8
61 #endif
62
63
64 /* Define the size of a function pointer used in function pointer casts. */
65
66 typedef u4                      ptrint;
67
68 #endif /* _TYPES_H */
69
70
71 /*
72  * These are local overrides for various environment variables in Emacs.
73  * Please do not remove this and leave it at the end of the file, where
74  * Emacs will automagically detect them.
75  * ---------------------------------------------------------------------
76  * Local variables:
77  * mode: c
78  * indent-tabs-mode: t
79  * c-basic-offset: 4
80  * tab-width: 4
81  * End:
82  */