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