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 27 of file pg_bswap.h.

#define BSWAP64 (   x)
Value:
(((x << 56) & 0xff00000000000000UL) | \
((x << 40) & 0x00ff000000000000UL) | \
((x << 24) & 0x0000ff0000000000UL) | \
((x << 8) & 0x000000ff00000000UL) | \
((x >> 8) & 0x00000000ff000000UL) | \
((x >> 24) & 0x0000000000ff0000UL) | \
((x >> 40) & 0x000000000000ff00UL) | \
((x >> 56) & 0x00000000000000ffUL))

Definition at line 36 of file pg_bswap.h.

Referenced by uuid_2_double().

#define DatumBigEndianToNative (   x)    BSWAP32(x)

Definition at line 64 of file pg_bswap.h.

Referenced by uuid_abbrev_convert(), and varstr_abbrev_convert().