mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-09 16:32:33 +00:00
This was lost
This commit is contained in:
parent
fc934b38e1
commit
1f1607cc6d
1 changed files with 9 additions and 0 deletions
|
|
@ -44,4 +44,13 @@
|
|||
#define MSBF_LONG SWAP_LONG
|
||||
#endif
|
||||
|
||||
// Big to little endian
|
||||
#ifdef SRB2_LITTLE_ENDIAN
|
||||
#define BIGENDIAN_LONG(x) ((INT32)(((x)>>24)&0xff)|(((x)<<8)&0xff0000)|(((x)>>8)&0xff00)|(((x)<<24)&0xff000000))
|
||||
#define BIGENDIAN_SHORT(x) ((INT16)(((x)>>8)|((x)<<8)))
|
||||
#else
|
||||
#define BIGENDIAN_LONG(x) ((INT32)(x))
|
||||
#define BIGENDIAN_SHORT(x) ((INT16)(x))
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue