SDL
2.0
|
Go to the source code of this file.
Macros | |
Swap to native | |
Byteswap item from the specified endianness to the native endianness. | |
#define | SDL_SwapLE16(X) SDL_Swap16(X) |
#define | SDL_SwapLE32(X) SDL_Swap32(X) |
#define | SDL_SwapLE64(X) SDL_Swap64(X) |
#define | SDL_SwapFloatLE(X) SDL_SwapFloat(X) |
#define | SDL_SwapBE16(X) (X) |
#define | SDL_SwapBE32(X) (X) |
#define | SDL_SwapBE64(X) (X) |
#define | SDL_SwapFloatBE(X) (X) |
The two types of endianness | |
#define | SDL_LIL_ENDIAN 1234 |
#define | SDL_BIG_ENDIAN 4321 |
#define | SDL_BYTEORDER SDL_LIL_ENDIAN |
SDL_FORCE_INLINE Uint16 | SDL_Swap16 (Uint16 x) |
SDL_FORCE_INLINE Uint32 | SDL_Swap32 (Uint32 x) |
SDL_FORCE_INLINE Uint64 | SDL_Swap64 (Uint64 x) |
SDL_FORCE_INLINE float | SDL_SwapFloat (float x) |
Functions for reading and writing endian-specific values
Definition in file SDL_endian.h.
#define SDL_BIG_ENDIAN 4321 |
Definition at line 38 of file SDL_endian.h.
#define SDL_BYTEORDER SDL_LIL_ENDIAN |
Definition at line 56 of file SDL_endian.h.
#define SDL_LIL_ENDIAN 1234 |
Definition at line 37 of file SDL_endian.h.
Definition at line 248 of file SDL_endian.h.
Definition at line 249 of file SDL_endian.h.
Definition at line 250 of file SDL_endian.h.
Definition at line 251 of file SDL_endian.h.
#define SDL_SwapFloatLE | ( | X | ) | SDL_SwapFloat(X) |
Definition at line 247 of file SDL_endian.h.
#define SDL_SwapLE16 | ( | X | ) | SDL_Swap16(X) |
Definition at line 244 of file SDL_endian.h.
#define SDL_SwapLE32 | ( | X | ) | SDL_Swap32(X) |
Definition at line 245 of file SDL_endian.h.
#define SDL_SwapLE64 | ( | X | ) | SDL_Swap64(X) |
Definition at line 246 of file SDL_endian.h.
SDL_FORCE_INLINE Uint16 SDL_Swap16 | ( | Uint16 | x | ) |
Definition at line 110 of file SDL_endian.h.
References SDL_static_cast.
Referenced by platform_testEndianessAndSwap(), SDL_ConvertPixels_SwapNV(), SDL_LoadBMP_RW(), and TestEndian().
SDL_FORCE_INLINE Uint32 SDL_Swap32 | ( | Uint32 | x | ) |
Definition at line 165 of file SDL_endian.h.
References SDL_static_cast.
Referenced by platform_testEndianessAndSwap(), SDL_LoadBMP_RW(), SDL_Swap64(), SDL_SwapFloat(), and TestEndian().
SDL_FORCE_INLINE Uint64 SDL_Swap64 | ( | Uint64 | x | ) |
Definition at line 199 of file SDL_endian.h.
References SDL_static_cast, and SDL_Swap32().
Referenced by platform_testEndianessAndSwap(), and TestEndian().
SDL_FORCE_INLINE float SDL_SwapFloat | ( | float | x | ) |