#include <cstdlib>


Go to the source code of this file.
Namespaces | |
| namespace | Ceylan |
| This part of the Ceylan namespace gathers some convenient string manipulation facilities to be widely used. | |
Defines | |
| #define | ceylan_bswap_16(x) |
| #define | ceylan_bswap_32(x) |
| #define | ceylan_bswap_64(x) |
Functions | |
| void | Ceylan::byteswap (Ceylan::Uint64 &toSwap) |
| Swaps the bytes of specified 64-bit number according to the conventions of a change of endianness. | |
| #define ceylan_bswap_16 | ( | x | ) |
Value:
((((x) >> 8) & 0xff) \
| (((x) & 0xff) << 8))
Definition at line 73 of file CeylanEndianness.h.
Referenced by Ceylan::System::InputStream::readSint16(), Ceylan::System::InputStream::readUint16(), Ceylan::System::OutputStream::writeSint16(), and Ceylan::System::OutputStream::writeUint16().
| #define ceylan_bswap_32 | ( | x | ) |
Value:
((((x) & 0xff000000) >> 24) \
| (((x) & 0x00ff0000) >> 8) \
| (((x) & 0x0000ff00) << 8) \
| (((x) & 0x000000ff) << 24))
Definition at line 78 of file CeylanEndianness.h.
Referenced by Ceylan::byteswap(), Ceylan::System::InputStream::readFloat32(), Ceylan::System::InputStream::readSint32(), Ceylan::System::InputStream::readUint32(), Ceylan::System::OutputStream::writeFloat32(), Ceylan::System::OutputStream::writeSint32(), and Ceylan::System::OutputStream::writeUint32().
| #define ceylan_bswap_64 | ( | x | ) |
Value:
((((x) & 0xff00000000000000ull) >> 56) \
| (((x) & 0x00ff000000000000ull) >> 40) \
| (((x) & 0x0000ff0000000000ull) >> 24) \
| (((x) & 0x000000ff00000000ull) >> 8) \
| (((x) & 0x00000000ff000000ull) << 8) \
| (((x) & 0x0000000000ff0000ull) << 24) \
| (((x) & 0x000000000000ff00ull) << 40) \
| (((x) & 0x00000000000000ffull) << 56))
Definition at line 109 of file CeylanEndianness.h.
Referenced by Ceylan::byteswap(), Ceylan::System::InputStream::readFloat64(), and Ceylan::System::OutputStream::writeFloat64().
1.5.8