Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Endianess Conversion Macros

Macros

#define POSH_BigU16(x)   (x)
 
#define POSH_BigU32(x)   (x)
 
#define POSH_BigS16(x)   (x)
 
#define POSH_BigS32(x)   (x)
 
#define POSH_LittleU16(x)   POSH_SwapU16( x )
 
#define POSH_LittleU32(x)   POSH_SwapU32( x )
 
#define POSH_LittleS16(x)   POSH_SwapS16( x )
 
#define POSH_LittleS32(x)   POSH_SwapS32( x )
 

Detailed Description

The actual definitions of these macros depend on the underlying platform. They will either map to a no-op, or they will map to the appropriate byte swapping function.

Macro Definition Documentation

#define POSH_BigS16 (   x)    (x)

Definition at line 1262 of file posh.h.

Referenced by POSH_ReadS16FromBig().

#define POSH_BigS32 (   x)    (x)

Definition at line 1263 of file posh.h.

Referenced by POSH_ReadS32FromBig().

#define POSH_BigU16 (   x)    (x)

Definition at line 1260 of file posh.h.

Referenced by POSH_ReadU16FromBig(), and POSH_WriteU16ToBig().

#define POSH_BigU32 (   x)    (x)

Definition at line 1261 of file posh.h.

Referenced by POSH_ReadU32FromBig(), and POSH_WriteU32ToBig().

#define POSH_LittleS16 (   x)    POSH_SwapS16( x )

Definition at line 1272 of file posh.h.

Referenced by POSH_ReadS16FromLittle().

#define POSH_LittleS32 (   x)    POSH_SwapS32( x )

Definition at line 1273 of file posh.h.

Referenced by POSH_ReadS32FromLittle().