OpenTTD Source  20240917-master-g9ab0a47812
endian_func.hpp File Reference
#include "endian_type.hpp"
#include "bitmath_func.hpp"

Go to the source code of this file.

Macros

#define FROM_BE16(x)   BSWAP16(x)
 
#define FROM_BE32(x)   BSWAP32(x)
 
#define TO_BE16(x)   BSWAP16(x)
 
#define TO_BE32(x)   BSWAP32(x)
 
#define TO_BE32X(x)   BSWAP32(x)
 
#define FROM_LE16(x)   (x)
 
#define FROM_LE32(x)   (x)
 
#define TO_LE16(x)   (x)
 
#define TO_LE32(x)   (x)
 
#define TO_LE32X(x)   (x)
 

Detailed Description

Function to handling different endian machines.

Definition in file endian_func.hpp.