[Facades] Add System.Security.Cryptography.Algorithms to net_4_x profile
[mono.git] / mono / io-layer / macros.h
1 /*
2  * macros.h:  Useful macros
3  *
4  * Author:
5  *      Dick Porter (dick@ximian.com)
6  *
7  * (C) 2002 Ximian, Inc.
8  */
9
10 #ifndef _WAPI_MACROS_H_
11 #define _WAPI_MACROS_H_
12
13 #include <glib.h>
14
15 #if defined(__native_client__)
16 #include <mono/metadata/nacl-stub.h>
17 #endif
18
19 #define MAKEWORD(low, high) ((guint16)(((guint8)(low)) | \
20                                        ((guint16)((guint8)(high))) << 8))
21 #define MAKELONG(low, high) ((guint32)(((guint16)(low)) | \
22                                        ((guint32)((guint16)(high))) << 16))
23 #define LOWORD(i32) ((guint16)((i32) & 0xFFFF))
24 #define HIWORD(i32) ((guint16)(((guint32)(i32) >> 16) & 0xFFFF))
25 #define LOBYTE(i16) ((guint8)((i16) & 0xFF))
26 #define HIBYTE(i16) ((guint8)(((guint16)(i16) >> 8) & 0xFF))
27
28 #endif /* _WAPI_MACROS_H_ */