/Users/hercules/trunk/SDL-1.2/include/SDL_endian.h File Reference

#include "SDL_stdinc.h"
#include "begin_code.h"
#include "close_code.h"

Go to the source code of this file.

Defines

#define SDL_BYTEORDER   SDL_LIL_ENDIAN
SDL_ENDIANs
The two types of endianness

#define SDL_LIL_ENDIAN   1234
#define SDL_BIG_ENDIAN   4321
SDL_SwapLE and SDL_SwapBE Functions
Byteswap item from the specified endianness to the native endianness

#define SDL_SwapLE16(X)   (X)
#define SDL_SwapLE32(X)   (X)
#define SDL_SwapLE64(X)   (X)
#define SDL_SwapBE16(X)   SDL_Swap16(X)
#define SDL_SwapBE32(X)   SDL_Swap32(X)
#define SDL_SwapBE64(X)   SDL_Swap64(X)

SDL_Swap Functions

Use inline functions for compilers that support them, and static functions for those that do not. Because these functions become static for compilers that do not support inline functions, this header should only be included in files that actually use them.

#define SDL_Swap64(X)   (X)


Detailed Description

Functions for reading and writing endian-specific values

Generated on Mon Sep 21 21:29:50 2009 for Simple DirectMedia Layer by  doxygen 1.5.8