083f41aee33587b4a4b5928869d0fddb0fae548d
[mono.git] / mono / utils / mono-machine.h
1 /*
2  * mono-machine.h: machine definitions
3  *
4  * Authors:
5  *      Rodrigo Kumpera (kumpera@gmail.com)
6  *
7  * Copyright (c) 2011 Novell, Inc (http://www.novell.com)
8  */
9
10 #ifndef __MONO_MONO_MACHINE_H__
11 #define __MONO_MONO_MACHINE_H__
12
13 /* C type matching the size of a machine register. Not always the same as 'int' */
14 /* Note that member 'p' of MonoInst must be the same type, as OP_PCONST is defined
15  * as one of the OP_ICONST types, so inst_c0 must be the same as inst_p0
16  */
17
18 #include "config.h"
19 #include <glib.h>
20
21 #if SIZEOF_REGISTER == 4
22 typedef gint32 mgreg_t;
23 #elif SIZEOF_REGISTER == 8
24 typedef gint64 mgreg_t;
25 #endif
26
27 #endif /* __MONO_MONO_MACHINE_H__ */