mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-15 16:05:10 +01:00
10 lines
559 B
C
10 lines
559 B
C
|
#define swab32(x) ((u32)( \
|
||
|
(((u32)(x) & (u32)0x000000ffUL) << 24) | \
|
||
|
(((u32)(x) & (u32)0x0000ff00UL) << 8) | \
|
||
|
(((u32)(x) & (u32)0x00ff0000UL) >> 8) | \
|
||
|
(((u32)(x) & (u32)0xff000000UL) >> 24)))
|
||
|
#define swab16(x) ((u16)( \
|
||
|
(((u16)(x) & (u16)0x00ffU) << 8) | \
|
||
|
(((u16)(x) & (u16)0xff00U) >> 8)))
|
||
|
|