Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Namespaces | Macros | Functions
crc32c.cc File Reference
#include "util/crc32c.h"
#include <stdint.h>
#include "util/coding.h"
Include dependency graph for crc32c.cc:

Go to the source code of this file.

Namespaces

 leveldb
 
 leveldb::crc32c
 

Macros

#define STEP1
 
#define STEP4
 

Functions

uint32_t leveldb::crc32c::Extend (uint32_t crc, const char *buf, size_t size)
 

Macro Definition Documentation

#define STEP1
Value:
do { \
int c = (l & 0xff) ^ *p++; \
l = table0_[c] ^ (l >> 8); \
} while (0)
#define STEP4
Value:
do { \
uint32_t c = l ^ LE_LOAD32(p); \
p += 4; \
l = table3_[c & 0xff] ^ \
table2_[(c >> 8) & 0xff] ^ \
table1_[(c >> 16) & 0xff] ^ \
table0_[c >> 24]; \
} while (0)
unsigned int uint32_t
Definition: stdint.h:21