|
Miosix
2.0alpha1
|
#include "interfaces-impl/endianness_impl.h"
Macros | |
| #define | toLittleEndian16(x) (x) |
| #define | toLittleEndian32(x) (x) |
| #define | toLittleEndian64(x) (x) |
| #define | toBigEndian16(x) swapBytes16(x) |
| #define | toBigEndian32(x) swapBytes32(x) |
| #define | toBigEndian64(x) swapBytes64(x) |
Functions | |
| __MIOSIX_INLINE unsigned short | swapBytes16 (unsigned short x) |
| __MIOSIX_INLINE unsigned int | swapBytes32 (unsigned int x) |
| __MIOSIX_INLINE unsigned long long | swapBytes64 (unsigned long long x) |
This file contains optimized functions to convert data from the system's endianness to little or big endian, as well as to perform byte swapping.