Last change
on this file since 545 was 1, checked in by vboxsync, 55 years ago |
import
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
445 bytes
|
Line | |
---|
1 | #ifndef ETHERBOOT_BYTESWAP_H
|
---|
2 | #define ETHERBOOT_BYTESWAP_H
|
---|
3 |
|
---|
4 | #include "endian.h"
|
---|
5 | #include "bits/byteswap.h"
|
---|
6 |
|
---|
7 | #if __BYTE_ORDER == __LITTLE_ENDIAN
|
---|
8 | #include "little_bswap.h"
|
---|
9 | #endif
|
---|
10 | #if __BYTE_ORDER == __BIG_ENDIAN
|
---|
11 | #include "big_bswap.h"
|
---|
12 | #endif
|
---|
13 |
|
---|
14 | /* Make routines available to all */
|
---|
15 | #define swap32(x) __bswap_32(x)
|
---|
16 | #define swap16(x) __bswap_16(x)
|
---|
17 | #define bswap_32(x) __bswap_32(x)
|
---|
18 | #define bswap_16(x) __bswap_16(x)
|
---|
19 |
|
---|
20 | #endif /* ETHERBOOT_BYTESWAP_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.