blob: bed14857b9b1923fad3575308e45b41cf8b4cbe2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 */
|