Go to the source code of this file.
◆ pg_hton16
◆ pg_hton32
◆ pg_hton64
◆ pg_ntoh16
◆ pg_ntoh32
◆ pg_ntoh64
◆ pg_bswap16()
◆ pg_bswap32()
Definition at line 64 of file pg_bswap.h.
67 ((
x << 24) & 0xff000000) |
68 ((
x << 8) & 0x00ff0000) |
69 ((
x >> 8) & 0x0000ff00) |
70 ((
x >> 24) & 0x000000ff);
References x.
Referenced by network_abbrev_convert().
◆ pg_bswap64()
static uint64 pg_bswap64 |
( |
uint64 |
x | ) |
|
|
inlinestatic |
Definition at line 89 of file pg_bswap.h.
92 ((
x << 56) & UINT64CONST(0xff00000000000000)) |
93 ((
x << 40) & UINT64CONST(0x00ff000000000000)) |
94 ((
x << 24) & UINT64CONST(0x0000ff0000000000)) |
95 ((
x << 8) & UINT64CONST(0x000000ff00000000)) |
96 ((
x >> 8) & UINT64CONST(0x00000000ff000000)) |
97 ((
x >> 24) & UINT64CONST(0x0000000000ff0000)) |
98 ((
x >> 40) & UINT64CONST(0x000000000000ff00)) |
99 ((
x >> 56) & UINT64CONST(0x00000000000000ff));
References x.
Referenced by for(), and uuid_2_double().