diff options
author | celestar <celestar@openttd.org> | 2007-01-11 12:32:10 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2007-01-11 12:32:10 +0000 |
commit | 1691b2da618e2701adee128eb5fc4168bff69f59 (patch) | |
tree | 5641df6933c5082202a0fd343b0195526ff1345c /src/macros.h | |
parent | 2ac0410767683fb0e6315433f9805712cb85f5bd (diff) | |
download | openttd-1691b2da618e2701adee128eb5fc4168bff69f59.tar.xz |
(svn r8056) -Codechange: Remove swap_byte, swap_byte, and siblings (some were not used anyway) and replace them by our SwapT implementation
Diffstat (limited to 'src/macros.h')
-rw-r--r-- | src/macros.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/macros.h b/src/macros.h index 07011f14c..63d59eb72 100644 --- a/src/macros.h +++ b/src/macros.h @@ -140,13 +140,6 @@ static inline int intxchg_(int *a, int b) { int t = *a; *a = b; return t; } static inline int uintxchg_(uint *a, uint b) { uint t = *a; *a = b; return t; } #define uintswap(a,b) ((b) = uintxchg_(&(a), (b))) -static inline void swap_byte(byte *a, byte *b) { byte t = *a; *a = *b; *b = t; } -static inline void swap_uint16(uint16 *a, uint16 *b) { uint16 t = *a; *a = *b; *b = t; } -static inline void swap_int16(int16 *a, int16 *b) { int16 t = *a; *a = *b; *b = t; } -static inline void swap_uint32(uint32 *a, uint32 *b) { uint32 t = *a; *a = *b; *b = t; } -static inline void swap_int32(int32 *a, int32 *b) { int32 t = *a; *a = *b; *b = t; } -static inline void swap_tile(TileIndex *a, TileIndex *b) { TileIndex t = *a; *a = *b; *b = t; } - static inline uint16 ReadLE16Aligned(const void* x) { |