MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ut0crc32.h File Reference
#include "univ.i"
Include dependency graph for ut0crc32.h:
This graph shows which files directly or indirectly include this file:

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

Definition in file ut0crc32.h.

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)

Definition at line 45 of file ut0crc32.h.

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.

Definition at line 276 of file ut0crc32.cc.

Here is the call graph for this function:

Here is the caller graph for this function: