Go to the source code of this file.
Defines | |
#define | CRCDLLIMPORT PGDLLIMPORT |
#define | INIT_CRC32(crc) ((crc) = 0xFFFFFFFF) |
#define | FIN_CRC32(crc) ((crc) ^= 0xFFFFFFFF) |
#define | COMP_CRC32(crc, data, len) |
#define | EQ_CRC32(c1, c2) ((c1) == (c2)) |
Typedefs | |
typedef uint32 | pg_crc32 |
Variables | |
CRCDLLIMPORT const uint32 | pg_crc32_table [] |
#define COMP_CRC32 | ( | crc, | ||
data, | ||||
len | ||||
) |
do { \ const unsigned char *__data = (const unsigned char *) (data); \ uint32 __len = (len); \ \ while (__len-- > 0) \ { \ int __tab_index = ((int) ((crc) >> 24) ^ *__data++) & 0xFF; \ (crc) = pg_crc32_table[__tab_index] ^ ((crc) << 8); \ } \ } while (0)
Definition at line 41 of file pg_crc.h.
Referenced by BootStrapXLOG(), compact_trigram(), EndPrepare(), gtsvector_compress(), load_relmap_file(), main(), pushValue(), ReadControlFile(), ReadTwoPhaseFile(), RecreateTwoPhaseFile(), RewriteControlFile(), tsqueryrecv(), UpdateControlFile(), ValidXLogRecord(), write_relmap_file(), WriteControlFile(), WriteEmptyXLOG(), and XLogInsert().
#define EQ_CRC32 | ( | c1, | ||
c2 | ||||
) | ((c1) == (c2)) |
Definition at line 54 of file pg_crc.h.
Referenced by load_relmap_file(), main(), ReadControlFile(), ReadTwoPhaseFile(), and ValidXLogRecord().
#define FIN_CRC32 | ( | crc | ) | ((crc) ^= 0xFFFFFFFF) |
Definition at line 38 of file pg_crc.h.
Referenced by BootStrapXLOG(), compact_trigram(), EndPrepare(), gtsvector_compress(), load_relmap_file(), main(), pushValue(), ReadControlFile(), ReadTwoPhaseFile(), RecreateTwoPhaseFile(), RewriteControlFile(), tsqueryrecv(), UpdateControlFile(), ValidXLogRecord(), write_relmap_file(), WriteControlFile(), WriteEmptyXLOG(), and XLogInsert().
#define INIT_CRC32 | ( | crc | ) | ((crc) = 0xFFFFFFFF) |
Definition at line 35 of file pg_crc.h.
Referenced by BootStrapXLOG(), compact_trigram(), EndPrepare(), gtsvector_compress(), load_relmap_file(), main(), pushValue(), ReadControlFile(), ReadTwoPhaseFile(), RecreateTwoPhaseFile(), RewriteControlFile(), tsqueryrecv(), UpdateControlFile(), ValidXLogRecord(), write_relmap_file(), WriteControlFile(), WriteEmptyXLOG(), and XLogInsert().
CRCDLLIMPORT const uint32 pg_crc32_table[] |
Definition at line 36 of file pg_crc_tables.h.