mirror of
https://github.com/ipxe/ipxe
synced 2025-12-13 23:41:45 +03:00
Initial revision
This commit is contained in:
20
src/include/byteswap.h
Normal file
20
src/include/byteswap.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef ETHERBOOT_BYTESWAP_H
|
||||
#define ETHERBOOT_BYTESWAP_H
|
||||
|
||||
#include "endian.h"
|
||||
#include "bits/byteswap.h"
|
||||
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
#include "little_bswap.h"
|
||||
#endif
|
||||
#if __BYTE_ORDER == __BIG_ENDIAN
|
||||
#include "big_bswap.h"
|
||||
#endif
|
||||
|
||||
/* Make routines available to all */
|
||||
#define swap32(x) __bswap_32(x)
|
||||
#define swap16(x) __bswap_16(x)
|
||||
#define bswap_32(x) __bswap_32(x)
|
||||
#define bswap_16(x) __bswap_16(x)
|
||||
|
||||
#endif /* ETHERBOOT_BYTESWAP_H */
|
||||
Reference in New Issue
Block a user