summaryrefslogtreecommitdiff
path: root/stdafx.h
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-02-05 14:18:28 +0000
committerbjarni <bjarni@openttd.org>2006-02-05 14:18:28 +0000
commit96e7349020b6be90c7b2ea16c9ad1dc8dd8e62b8 (patch)
treef5b29603bbae8a44c6c68462d0aa89149311113b /stdafx.h
parent99f55ae7330f0e6960a8d51aaef7fe0dfc525649 (diff)
downloadopenttd-96e7349020b6be90c7b2ea16c9ad1dc8dd8e62b8.tar.xz
(svn r3555) -Codechange: [Big Endian] removed defining OTTD_ALIGNMENT by default on Big Endian CPUs
this increased speed when reading unaligned data (like strings) test showed this to increase speed by 5,6% when drawing the mini map on PPC OSX the tradeoff is that now it will crash if a Big Endian computer don't support unaligned reading but it should easily fixable in stdafx.h if it turns out to be a problem
Diffstat (limited to 'stdafx.h')
-rw-r--r--stdafx.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/stdafx.h b/stdafx.h
index 873b880a6..efcfd70bb 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -201,7 +201,6 @@ typedef unsigned char byte;
// Setup alignment and conversion macros
#if defined(TTD_BIG_ENDIAN)
-# define OTTD_ALIGNMENT
static inline uint32 TO_LE32(uint32 x) { return BSWAP32(x); }
static inline uint16 TO_LE16(uint16 x) { return BSWAP16(x); }
static inline uint32 FROM_LE32(uint32 x) { return BSWAP32(x); }