#include <nitro/mi.h>
#define MI_LEToH8(val) (val)
#define MI_BEToH8(val) MI_SwapEndian8(val)
#define MI_LEToH16(val) (val)
#define MI_BEToH16(val) MI_SwapEndian16(val)
#define MI_LEToH32(val) (val)
#define MI_BEToH32(val) MI_SwapEndian32(val)
#define MI_LEToH64(val) (val)
#define MI_BEToH64(val) MI_SwapEndian64(val)
val | The value whose endianity is to be converted. Note: Because this is a macro, evaluation is performed several times. |
The value converted from the specified endianness (u16, u32, or u64
).
This macro converts the specified value from the specified endianity to the current environment. LE represents little-endian, while BE represents big-endian.
Because the Nintendo DS uses a little-endian environment, this macro does nothing when LE is specified.
Note: Because this is a macro, arguments are evaluated several times.
These 8-bit versions do not actually perform any conversions, but they have been included for uniform source code visibility.
MI_SwapEndian*
MI_Load*
MI_Store*
MI_HTo*
2007/11/21 Added a description about the 64-bit version.
2006/04/05 Initial version.
CONFIDENTIAL