XenevaOS
Loading...
Searching...
No Matches
Macros
i_swap.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SYS_LITTLE_ENDIAN
 
#define SHORT(x)   ((signed short) (x))
 
#define LONG(x)   ((signed int) (x))
 
#define doom_swap_s(x)
 
#define doom_wtohs(x)   doom_swap_s(x)
 

Macro Definition Documentation

◆ doom_swap_s

#define doom_swap_s (   x)
Value:
((short int)((((unsigned short int)(x) & 0x00ff) << 8) | \
(((unsigned short int)(x) & 0xff00) >> 8)))

◆ doom_wtohs

#define doom_wtohs (   x)    doom_swap_s(x)

◆ LONG

#define LONG (   x)    ((signed int) (x))

◆ SHORT

#define SHORT (   x)    ((signed short) (x))

◆ SYS_LITTLE_ENDIAN

#define SYS_LITTLE_ENDIAN