You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

little_bswap.h 489B

1234567891011121314151617
  1. #ifndef ETHERBOOT_LITTLE_BSWAP_H
  2. #define ETHERBOOT_LITTLE_BSWAP_H
  3. #define ntohl(x) __bswap_32(x)
  4. #define htonl(x) __bswap_32(x)
  5. #define ntohs(x) __bswap_16(x)
  6. #define htons(x) __bswap_16(x)
  7. #define cpu_to_le32(x) (x)
  8. #define cpu_to_le16(x) (x)
  9. #define cpu_to_be32(x) __bswap_32(x)
  10. #define cpu_to_be16(x) __bswap_16(x)
  11. #define le32_to_cpu(x) (x)
  12. #define le16_to_cpu(x) (x)
  13. #define be32_to_cpu(x) __bswap_32(x)
  14. #define be16_to_cpu(x) __bswap_16(x)
  15. #endif /* ETHERBOOT_LITTLE_BSWAP_H */