CeylanEndianness.h File Reference

#include <cstdlib>

Include dependency graph for CeylanEndianness.h:

This graph shows which files directly or indirectly include this file:

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 Documentation

#define ceylan_bswap_16 (  ) 

#define ceylan_bswap_32 (  ) 

#define ceylan_bswap_64 (  ) 

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().


Generated on Thu Jun 4 20:39:24 2009 for Ceylan by  doxygen 1.5.8