First set of licensing changes
[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  * Licensed under the MIT license. See LICENSE file in the project root for full license information.
9  */
10
11 #ifndef __MONO_MONO_MACHINE_H__
12 #define __MONO_MONO_MACHINE_H__
13
14 /* C type matching the size of a machine register. Not always the same as 'int' */
15 /* Note that member 'p' of MonoInst must be the same type, as OP_PCONST is defined
16  * as one of the OP_ICONST types, so inst_c0 must be the same as inst_p0
17  */
18
19 #include "config.h"
20 #include <glib.h>
21
22 #if SIZEOF_REGISTER == 4
23 typedef gint32 mgreg_t;
24 #elif SIZEOF_REGISTER == 8
25 typedef gint64 mgreg_t;
26 #endif
27
28 #endif /* __MONO_MONO_MACHINE_H__ */