diff options
author | skidd13 <skidd13@openttd.org> | 2008-06-22 15:21:51 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2008-06-22 15:21:51 +0000 |
commit | 640e5478862e3b83d85db6332e0d82a45a95e4ed (patch) | |
tree | 8904cbdb49b1373360cba22af59cfdea4811c6de /src/core/endian_func.hpp | |
parent | 31b002dab0cb1bcbc00c9982a72e2cd948f74de5 (diff) | |
download | openttd-640e5478862e3b83d85db6332e0d82a45a95e4ed.tar.xz |
(svn r13606) -Codechange: use "static FORCEINLINE" where possible as default for core functions (big functions use just inline instead)
Diffstat (limited to 'src/core/endian_func.hpp')
-rw-r--r-- | src/core/endian_func.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/endian_func.hpp b/src/core/endian_func.hpp index 9032b4cef..2b80ccc68 100644 --- a/src/core/endian_func.hpp +++ b/src/core/endian_func.hpp @@ -33,12 +33,12 @@ #define TO_LE32X(x) (x) #endif /* TTD_ENDIAN == TTD_BIG_ENDIAN */ -static inline uint16 ReadLE16Aligned(const void *x) +static FORCEINLINE uint16 ReadLE16Aligned(const void *x) { return FROM_LE16(*(const uint16*)x); } -static inline uint16 ReadLE16Unaligned(const void *x) +static FORCEINLINE uint16 ReadLE16Unaligned(const void *x) { #if OTTD_ALIGNMENT == 1 return ((const byte*)x)[0] | ((const byte*)x)[1] << 8; |