Skip to content
Snippets Groups Projects
Commit 2a04ac69 authored by Lactozilla's avatar Lactozilla :speech_balloon:
Browse files

()

parent acc8dae2
No related branches found
No related tags found
No related merge requests found
...@@ -42,8 +42,8 @@ ...@@ -42,8 +42,8 @@
// Big to little endian // Big to little endian
#ifdef SRB2_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_LONG(x) ((INT32)(((x)>>24)&0xff)|(((x)<<8)&0xff0000)|(((x)>>8)&0xff00)|(((x)<<24)&0xff000000))
#define BIGENDIAN_SHORT(x) ((INT16)((x>>8)|(x<<8))) #define BIGENDIAN_SHORT(x) ((INT16)(((x)>>8)|((x)<<8)))
#else #else
#define BIGENDIAN_LONG(x) ((INT32)(x)) #define BIGENDIAN_LONG(x) ((INT32)(x))
#define BIGENDIAN_SHORT(x) ((INT16)(x)) #define BIGENDIAN_SHORT(x) ((INT16)(x))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment