summaryrefslogtreecommitdiff
path: root/src/core/endian_func.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/endian_func.hpp')
-rw-r--r--src/core/endian_func.hpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/core/endian_func.hpp b/src/core/endian_func.hpp
index b1a584785..e077d977a 100644
--- a/src/core/endian_func.hpp
+++ b/src/core/endian_func.hpp
@@ -15,27 +15,27 @@
/* Setup alignment and conversion macros */
#if TTD_ENDIAN == TTD_BIG_ENDIAN
- #define FROM_BE16(x) (x)
- #define FROM_BE32(x) (x)
- #define TO_BE16(x) (x)
- #define TO_BE32(x) (x)
- #define TO_BE32X(x) (x)
- #define FROM_LE16(x) BSWAP16(x)
- #define FROM_LE32(x) BSWAP32(x)
- #define TO_LE16(x) BSWAP16(x)
- #define TO_LE32(x) BSWAP32(x)
- #define TO_LE32X(x) BSWAP32(x)
+# define FROM_BE16(x) (x)
+# define FROM_BE32(x) (x)
+# define TO_BE16(x) (x)
+# define TO_BE32(x) (x)
+# define TO_BE32X(x) (x)
+# define FROM_LE16(x) BSWAP16(x)
+# define FROM_LE32(x) BSWAP32(x)
+# define TO_LE16(x) BSWAP16(x)
+# define TO_LE32(x) BSWAP32(x)
+# define TO_LE32X(x) BSWAP32(x)
#else
- #define FROM_BE16(x) BSWAP16(x)
- #define FROM_BE32(x) BSWAP32(x)
- #define TO_BE16(x) BSWAP16(x)
- #define TO_BE32(x) BSWAP32(x)
- #define TO_BE32X(x) BSWAP32(x)
- #define FROM_LE16(x) (x)
- #define FROM_LE32(x) (x)
- #define TO_LE16(x) (x)
- #define TO_LE32(x) (x)
- #define TO_LE32X(x) (x)
+# define FROM_BE16(x) BSWAP16(x)
+# define FROM_BE32(x) BSWAP32(x)
+# define TO_BE16(x) BSWAP16(x)
+# define TO_BE32(x) BSWAP32(x)
+# define TO_BE32X(x) BSWAP32(x)
+# define FROM_LE16(x) (x)
+# define FROM_LE32(x) (x)
+# define TO_LE16(x) (x)
+# define TO_LE32(x) (x)
+# define TO_LE32X(x) (x)
#endif /* TTD_ENDIAN == TTD_BIG_ENDIAN */
static inline uint16 ReadLE16Aligned(const void *x)