mirror of
https://github.com/xcat2/xNBA.git
synced 2025-01-18 21:43:14 +00:00
Added the "swap in place" macros
This commit is contained in:
parent
013f8c119a
commit
bb8725bffa
@ -17,5 +17,17 @@
|
||||
#define be64_to_cpu(x) (x)
|
||||
#define be32_to_cpu(x) (x)
|
||||
#define be16_to_cpu(x) (x)
|
||||
#define cpu_to_le64s(x) __bswap_64s(x)
|
||||
#define cpu_to_le32s(x) __bswap_32s(x)
|
||||
#define cpu_to_le16s(x) __bswap_16s(x)
|
||||
#define cpu_to_be64s(x) do {} while (0)
|
||||
#define cpu_to_be32s(x) do {} while (0)
|
||||
#define cpu_to_be16s(x) do {} while (0)
|
||||
#define le64_to_cpus(x) __bswap_64s(x)
|
||||
#define le32_to_cpus(x) __bswap_32s(x)
|
||||
#define le16_to_cpus(x) __bswap_16s(x)
|
||||
#define be64_to_cpus(x) do {} while (0)
|
||||
#define be32_to_cpus(x) do {} while (0)
|
||||
#define be16_to_cpus(x) do {} while (0)
|
||||
|
||||
#endif /* ETHERBOOT_BIG_BSWAP_H */
|
||||
|
@ -17,5 +17,17 @@
|
||||
#define be64_to_cpu(x) __bswap_64(x)
|
||||
#define be32_to_cpu(x) __bswap_32(x)
|
||||
#define be16_to_cpu(x) __bswap_16(x)
|
||||
#define cpu_to_le64s(x) do {} while (0)
|
||||
#define cpu_to_le32s(x) do {} while (0)
|
||||
#define cpu_to_le16s(x) do {} while (0)
|
||||
#define cpu_to_be64s(x) __bswap_64s(x)
|
||||
#define cpu_to_be32s(x) __bswap_32s(x)
|
||||
#define cpu_to_be16s(x) __bswap_16s(x)
|
||||
#define le64_to_cpus(x) do {} while (0)
|
||||
#define le32_to_cpus(x) do {} while (0)
|
||||
#define le16_to_cpus(x) do {} while (0)
|
||||
#define be64_to_cpus(x) __bswap_64s(x)
|
||||
#define be32_to_cpus(x) __bswap_32s(x)
|
||||
#define be16_to_cpus(x) __bswap_16s(x)
|
||||
|
||||
#endif /* ETHERBOOT_LITTLE_BSWAP_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user