Header And Logo

PostgreSQL
| The world's most advanced open source database.

Defines | Typedefs | Variables

pg_crc.h File Reference

This graph shows which files directly or indirectly include this file:

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 Documentation

#define COMP_CRC32 (   crc,
  data,
  len 
)
Value:
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 CRCDLLIMPORT   PGDLLIMPORT

Definition at line 29 of file pg_crc.h.

#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)
#define INIT_CRC32 (   crc  )     ((crc) = 0xFFFFFFFF)

Typedef Documentation

typedef uint32 pg_crc32

Definition at line 32 of file pg_crc.h.


Variable Documentation

CRCDLLIMPORT const uint32 pg_crc32_table[]

Definition at line 36 of file pg_crc_tables.h.