pacemaker  2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
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

◆ bswap_16

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

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

◆ bswap_32

#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.

◆ bswap_64

#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.