Lines 42-48
Link Here
|
42 |
(((uint32_t)(x) >> 8) & 0x0000FF00) | \ |
42 |
(((uint32_t)(x) >> 8) & 0x0000FF00) | \ |
43 |
((uint32_t)(x) >> 24)) |
43 |
((uint32_t)(x) >> 24)) |
44 |
# define le16_to_cpu(x) (((x&0xFF)<<8) | ((unsigned short)(x)>>8)) |
44 |
# define le16_to_cpu(x) (((x&0xFF)<<8) | ((unsigned short)(x)>>8)) |
45 |
# define le64_to_cpu(x) (DONTUSE__NXSwapBigDoubleToLittle(x)) |
45 |
# define le64_to_cpu(x) (DONTUSE__NXSwapBigDoubleToLittleEndian(x)) |
46 |
# else |
46 |
# else |
47 |
# define le32_to_cpu(x) (x) |
47 |
# define le32_to_cpu(x) (x) |
48 |
# define le16_to_cpu(x) (x) |
48 |
# define le16_to_cpu(x) (x) |
Lines 53-59
Link Here
|
53 |
# include <byteswap.h> |
53 |
# include <byteswap.h> |
54 |
# define le32_to_cpu(x) (bswap_32(x)) |
54 |
# define le32_to_cpu(x) (bswap_32(x)) |
55 |
# define le16_to_cpu(x) (bswap_16(x)) |
55 |
# define le16_to_cpu(x) (bswap_16(x)) |
56 |
# define le64_to_cpu(x) (DONTUSE__NXSwapBigDoubleToLittle(x)) |
56 |
# define le64_to_cpu(x) (DONTUSE__NXSwapBigDoubleToLittleEndian(x)) |
57 |
#else |
57 |
#else |
58 |
# define le32_to_cpu(x) (x) |
58 |
# define le32_to_cpu(x) (x) |
59 |
# define le16_to_cpu(x) (x) |
59 |
# define le16_to_cpu(x) (x) |