Lots of more work on the disassembler and supporting runtime
[mono.git] / mono / metadata / mono-endian.h
1 #ifndef _MONO_METADATA_ENDIAN_H_
2 #define _MONO_METADATA_ENDIAN_H_ 1
3
4 /* FIXME: implement big endian versions */
5
6 #define le64_to_cpu(x) (x)
7 #define le32_to_cpu(x) (x)
8 #define le16_to_cpu(x) (x)
9 #define read32(x) le32_to_cpu (*((guint32 *) (x)))
10 #define read16(x) le16_to_cpu (*((guint16 *) (x)))
11 #define read64(x) le64_to_cpu (*((guint64 *) (x)))
12
13 #endif /* _MONO_METADATA_ENDIAN_H_ */