Rev 298 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 298 | Rev 333 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | #pragma implementation "m_swap.h" |
29 | #pragma implementation "m_swap.h" |
30 | #endif |
30 | #endif |
31 | #include "m_swap.h" |
31 | #include "m_swap.h" |
Line -... | Line 32... | ||
- | 32 | ||
- | 33 | ||
- | 34 | // Not needed with big endian. |
|
32 | 35 | #ifndef __BIG_ENDIAN__ |
|
33 | 36 | ||
34 | // Swap 16bit, that is, MSB and LSB byte. |
37 | // Swap 16bit, that is, MSB and LSB byte. |
35 | unsigned short SwapSHORT(unsigned short x) |
38 | unsigned short SwapSHORT(unsigned short x) |
36 | { |
39 | { |
Line 47... | Line 50... | ||
47 | | ((x<<8) & 0xff0000) |
50 | | ((x<<8) & 0xff0000) |
48 | | (x<<24); |
51 | | (x<<24); |
49 | }24); |
52 | } |
Line -... | Line 53... | ||
- | 53 | ||
- | 54 | ||
- | 55 | #endif24); |