Simd Library Documentation.

Home | Release Notes | Download | Documentation | Issues | GitHub
Hash Functions

Functions for hash estimation. More...

Functions

SIMD_API uint32_t SimdCrc32 (const void *src, size_t size)
 Gets 32-bit cyclic redundancy check (CRC32) for current data. More...
 
SIMD_API uint32_t SimdCrc32c (const void *src, size_t size)
 Gets 32-bit cyclic redundancy check (CRC32c) for current data. More...
 

Detailed Description

Functions for hash estimation.

Function Documentation

◆ SimdCrc32()

uint32_t SimdCrc32 ( const void *  src,
size_t  size 
)

Gets 32-bit cyclic redundancy check (CRC32) for current data.

Calculation is performed for polynomial 0xEDB88320.

Parameters
[in]src- a pointer to data.
[in]size- a size of the data.
Returns
32-bit cyclic redundancy check (CRC32).

◆ SimdCrc32c()

uint32_t SimdCrc32c ( const void *  src,
size_t  size 
)

Gets 32-bit cyclic redundancy check (CRC32c) for current data.

Calculation is performed for polynomial 0x1EDC6F41 (Castagnoli-crc).

Parameters
[in]src- a pointer to data.
[in]size- a size of the data.
Returns
32-bit cyclic redundancy check (CRC32c).