Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
Functions | |
posh_u16_t | POSH_SwapU16 (posh_u16_t u) |
posh_s16_t | POSH_SwapS16 (posh_s16_t u) |
posh_u32_t | POSH_SwapU32 (posh_u32_t u) |
posh_s32_t | POSH_SwapS32 (posh_s32_t u) |
These functions perform byte swapping of 16 and 32-bit values. The 64-bit versions of these functions are documented under SixtyFourBit
posh_s16_t POSH_SwapS16 | ( | posh_s16_t | v) |
Byte swaps a 16-bit signed value
v[in] | signed 16-bit input value to swap |
Definition at line 217 of file posh.cpp.
References POSH_SwapU16().
posh_s32_t POSH_SwapS32 | ( | posh_s32_t | v) |
Byte swaps a 32-bit signed value
v[in] | signed 32-bit input value to swap |
Definition at line 249 of file posh.cpp.
References POSH_SwapU32().
posh_u16_t POSH_SwapU16 | ( | posh_u16_t | v) |
Byte swaps a 16-bit unsigned value
v[in] | unsigned 16-bit input value to swap |
Definition at line 198 of file posh.cpp.
Referenced by POSH_SwapS16().
posh_u32_t POSH_SwapU32 | ( | posh_u32_t | v) |
Byte swaps a 32-bit unsigned value
v[in] | unsigned 32-bit input value to swap |
Definition at line 228 of file posh.cpp.
Referenced by POSH_BigFloatBits(), POSH_FloatFromBigBits(), POSH_FloatFromLittleBits(), POSH_LittleFloatBits(), and POSH_SwapS32().