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