Rev 54 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
54 | pj | 1 | #include <endian.h> |
2 | #include <byteswap.h> |
||
80 | pj | 3 | #include "ll/sys/cdefs.h" |
54 | pj | 4 | |
80 | pj | 5 | __BEGIN_DECLS |
6 | |||
54 | pj | 7 | #if __BYTE_ORDER == __BIG_ENDIAN |
8 | |||
9 | #define LE32(x) bswap_32(x) |
||
10 | #define BE32(x) (x) |
||
11 | |||
12 | #else /* little endian */ |
||
13 | |||
14 | #define LE32(x) (x) |
||
15 | #define BE32(x) bswap_32(x) |
||
16 | |||
17 | #endif |
||
80 | pj | 18 | |
19 | __END_DECLS |