]>
Commit | Line | Data |
---|---|---|
e12cb143 | 1 | #ifndef __ENDIAN_H |
2 | #define __ENDIAN_H | |
3 | ||
4 | void memrev16(void *p); | |
5 | void memrev32(void *p); | |
6 | void memrev64(void *p); | |
7 | ||
b5325132 | 8 | /* variants of the function doing the actual convertion only if the target |
9 | * host is big endian */ | |
10 | #if (BYTE_ORDER == LITTLE_ENDIAN) | |
11 | #define memrev16ifbe(p) | |
12 | #define memrev32ifbe(p) | |
13 | #define memrev64ifbe(p) | |
14 | #else | |
15 | #define memrev16ifbe(p) memrev16(p) | |
16 | #define memrev32ifbe(p) memrev32(p) | |
17 | #define memrev64ifbe(p) memrev64(p) | |
e12cb143 | 18 | #endif |
336c82d5 | 19 | |
20 | #endif |