mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 21:41:43 +03:00
Initial revision
This commit is contained in:
17
src/include/big_bswap.h
Normal file
17
src/include/big_bswap.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef ETHERBOOT_BIG_BSWAP_H
|
||||
#define ETHERBOOT_BIG_BSWAP_H
|
||||
|
||||
#define ntohl(x) (x)
|
||||
#define htonl(x) (x)
|
||||
#define ntohs(x) (x)
|
||||
#define htons(x) (x)
|
||||
#define cpu_to_le32(x) __bswap_32(x)
|
||||
#define cpu_to_le16(x) __bswap_16(x)
|
||||
#define cpu_to_be32(x) (x)
|
||||
#define cpu_to_be16(x) (x)
|
||||
#define le32_to_cpu(x) __bswap_32(x)
|
||||
#define le16_to_cpu(x) __bswap_16(x)
|
||||
#define be32_to_cpu(x) (x)
|
||||
#define be16_to_cpu(x) (x)
|
||||
|
||||
#endif /* ETHERBOOT_BIG_BSWAP_H */
|
||||
Reference in New Issue
Block a user