pacemaker  2.0.4-2deceaa
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
byteswap.in.h File Reference

Go to the source code of this file.

Macros

#define bswap_16(x)
 
#define bswap_32(x)
 
#define bswap_64(x)
 

Macro Definition Documentation

#define bswap_16 (   x)
Value:
((((x) & 0x00FF) << 8) | \
(((x) & 0xFF00) >> 8))

Definition at line 23 of file byteswap.in.h.

#define bswap_32 (   x)
Value:
((((x) & 0x000000FF) << 24) | \
(((x) & 0x0000FF00) << 8) | \
(((x) & 0x00FF0000) >> 8) | \
(((x) & 0xFF000000) >> 24))

Definition at line 28 of file byteswap.in.h.

#define bswap_64 (   x)
Value:
((((x) & 0x00000000000000FFULL) << 56) | \
(((x) & 0x000000000000FF00ULL) << 40) | \
(((x) & 0x0000000000FF0000ULL) << 24) | \
(((x) & 0x00000000FF000000ULL) << 8) | \
(((x) & 0x000000FF00000000ULL) >> 8) | \
(((x) & 0x0000FF0000000000ULL) >> 24) | \
(((x) & 0x00FF000000000000ULL) >> 40) | \
(((x) & 0xFF00000000000000ULL) >> 56))

Definition at line 35 of file byteswap.in.h.