InnoDB Plugin  1.0
Typedefs | Functions | Variables
ut0crc32.h File Reference
#include "univ.i"
Include dependency graph for ut0crc32.h:

Go to the source code of this file.

Typedefs

typedef ib_uint32_t(* ib_ut_crc32_t )(const byte *ptr, ulint len)

Functions

UNIV_INTERN void ut_crc32_init ()

Variables

ib_ut_crc32_t ut_crc32
bool ut_crc32_sse2_enabled

Detailed Description

CRC32 implementation

Created Aug 10, 2011 Vasil Dimov

Typedef Documentation

typedef ib_uint32_t(* ib_ut_crc32_t)(const byte *ptr, ulint len)

Calculates CRC32.

Parameters
ptr- data over which to calculate CRC32.
len- data length in bytes.
Returns
CRC32 (CRC-32C, using the GF(2) primitive polynomial 0x11EDC6F41, or 0x1EDC6F41 without the high-order bit)

Function Documentation

UNIV_INTERN void ut_crc32_init ( )

Initializes the data structures used by ut_crc32(). Does not do any allocations, would not hurt if called twice, but would be pointless.