Changed SUPPORT_LONG_MULDIV to SUPPORT_LONG_MUL and SUPPORT_LONG_DIV. We
[cacao.git] / src / vm / jit / alpha / types.h
1 /* jit/alpha/types.h - machine specific definitions for alpha
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    $Id: types.h 624 2003-11-13 14:06:52Z twisti $
33
34 */
35
36
37 #ifndef _TYPES_H
38 #define _TYPES_H
39
40 #define POINTERSIZE         8
41 #define WORDS_BIGENDIAN     0
42
43 #define SUPPORT_DIVISION    0
44 #define SUPPORT_LONG        1
45 #define SUPPORT_FLOAT       1
46 #define SUPPORT_DOUBLE      1
47
48 #define SUPPORT_LONG_ADD    1
49 #define SUPPORT_LONG_CMP    1
50 #define SUPPORT_LONG_LOG    1
51 #define SUPPORT_LONG_SHIFT  1
52 #define SUPPORT_LONG_MUL    1
53 #define SUPPORT_LONG_DIV    0
54 #define SUPPORT_LONG_ICVT   1
55 #define SUPPORT_LONG_FCVT   1
56
57 #define CONDITIONAL_LOADCONST
58
59 #define U8_AVAILABLE        1
60
61
62 typedef signed char             s1;
63 typedef unsigned char           u1;
64  
65 typedef signed short int        s2;
66 typedef unsigned short int      u2;
67
68 typedef signed int              s4;
69 typedef unsigned int            u4;
70
71 #if U8_AVAILABLE
72 typedef signed long int         s8;
73 typedef unsigned long int       u8; 
74 #else
75 typedef struct {u4 low, high;}  u8;
76 #define s8 u8
77 #endif
78
79 #endif /* _TYPES_H */
80
81
82 /*
83  * These are local overrides for various environment variables in Emacs.
84  * Please do not remove this and leave it at the end of the file, where
85  * Emacs will automagically detect them.
86  * ---------------------------------------------------------------------
87  * Local variables:
88  * mode: c
89  * indent-tabs-mode: t
90  * c-basic-offset: 4
91  * tab-width: 4
92  * End:
93  */
94
95