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

Go to the source code of this file.

Macros

#define crc32(buf)   ltree_crc32_sz((buf),strlen(buf))
 

Functions

unsigned int ltree_crc32_sz (const char *buf, int size)
 

Macro Definition Documentation

◆ crc32

#define crc32 (   buf)    ltree_crc32_sz((buf),strlen(buf))

Definition at line 10 of file crc32.h.

Function Documentation

◆ ltree_crc32_sz()

unsigned int ltree_crc32_sz ( const char *  buf,
int  size 
)

Definition at line 24 of file crc32.c.

25{
27 const char *p = buf;
28
30 while (size > 0)
31 {
32 char c = (char) TOLOWER(*p);
33
35 size--;
36 p++;
37 }
39 return (unsigned int) crc;
40}
#define TOLOWER(x)
Definition: crc32.c:15
return crc
uint32 pg_crc32
Definition: pg_crc.h:37
#define FIN_TRADITIONAL_CRC32(crc)
Definition: pg_crc.h:47
#define INIT_TRADITIONAL_CRC32(crc)
Definition: pg_crc.h:46
#define COMP_TRADITIONAL_CRC32(crc, data, len)
Definition: pg_crc.h:48
static char * buf
Definition: pg_test_fsync.c:72
char * c
static pg_noinline void Size size
Definition: slab.c:607

References buf, COMP_TRADITIONAL_CRC32, crc, FIN_TRADITIONAL_CRC32, INIT_TRADITIONAL_CRC32, size, and TOLOWER.

Referenced by gist_te(), hashing(), parse_lquery(), and pushval_asis().