big_bswap.h

Go to the documentation of this file.
00001 #ifndef ETHERBOOT_BIG_BSWAP_H
00002 #define ETHERBOOT_BIG_BSWAP_H
00003 
00004 #define ntohl(x)        (x)
00005 #define htonl(x)        (x)
00006 #define ntohs(x)        (x)
00007 #define htons(x)        (x)
00008 #define cpu_to_le64(x)  __bswap_64(x)
00009 #define cpu_to_le32(x)  __bswap_32(x)
00010 #define cpu_to_le16(x)  __bswap_16(x)
00011 #define cpu_to_be64(x)  (x)
00012 #define cpu_to_be32(x)  (x)
00013 #define cpu_to_be16(x)  (x)
00014 #define le64_to_cpu(x)  __bswap_64(x)
00015 #define le32_to_cpu(x)  __bswap_32(x)
00016 #define le16_to_cpu(x)  __bswap_16(x)
00017 #define be64_to_cpu(x)  (x)
00018 #define be32_to_cpu(x)  (x)
00019 #define be16_to_cpu(x)  (x)
00020 #define cpu_to_le64s(x) __bswap_64s(x)
00021 #define cpu_to_le32s(x) __bswap_32s(x)
00022 #define cpu_to_le16s(x) __bswap_16s(x)
00023 #define cpu_to_be64s(x) do {} while (0)
00024 #define cpu_to_be32s(x) do {} while (0)
00025 #define cpu_to_be16s(x) do {} while (0)
00026 #define le64_to_cpus(x) __bswap_64s(x)
00027 #define le32_to_cpus(x) __bswap_32s(x)
00028 #define le16_to_cpus(x) __bswap_16s(x)
00029 #define be64_to_cpus(x) do {} while (0)
00030 #define be32_to_cpus(x) do {} while (0)
00031 #define be16_to_cpus(x) do {} while (0)
00032 
00033 #endif /* ETHERBOOT_BIG_BSWAP_H */

Generated on Tue Apr 6 20:01:06 2010 for gPXE by  doxygen 1.5.7.1