PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
pg_bswap.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BSWAP32(x)
 
#define BSWAP64(x)
 
#define DatumBigEndianToNative(x)   BSWAP32(x)
 

Macro Definition Documentation

#define BSWAP32 (   x)
Value:
((((x) << 24) & 0xff000000) | \
(((x) << 8) & 0x00ff0000) | \
(((x) >> 8) & 0x0000ff00) | \
(((x) >> 24) & 0x000000ff))

Definition at line 28 of file pg_bswap.h.

#define BSWAP64 (   x)
Value:
((((x) << 56) & UINT64CONST(0xff00000000000000)) | \
(((x) << 40) & UINT64CONST(0x00ff000000000000)) | \
(((x) << 24) & UINT64CONST(0x0000ff0000000000)) | \
(((x) << 8) & UINT64CONST(0x000000ff00000000)) | \
(((x) >> 8) & UINT64CONST(0x00000000ff000000)) | \
(((x) >> 24) & UINT64CONST(0x0000000000ff0000)) | \
(((x) >> 40) & UINT64CONST(0x000000000000ff00)) | \
(((x) >> 56) & UINT64CONST(0x00000000000000ff)))
#define UINT64CONST(x)
Definition: c.h:311

Definition at line 37 of file pg_bswap.h.

Referenced by uuid_2_double().

#define DatumBigEndianToNative (   x)    BSWAP32(x)

Definition at line 65 of file pg_bswap.h.

Referenced by macaddr_abbrev_convert(), uuid_abbrev_convert(), and varstr_abbrev_convert().