BB2 C port
API reference: Blitz libraries in C and the shared code
Loading...
Searching...
No Matches
basictest_crc.c File Reference
#include "basictest.h"

Functions

uint32_t basictest_crc32 (const uint8_t *data, size_t length)
 The CRC32 of a string value: the standard CRC-32 of IEEE 802.3 (zlib, PNG; the polynomial $EDB88320 reflected, $FFFFFFFF at the start and XORed at the end); $CBF43926 for "123456789", 0 for none.

Variables

static const uint32_t nibble [16]

Function Documentation

◆ basictest_crc32()

uint32_t basictest_crc32 ( const uint8_t * data,
size_t length )

The CRC32 of a string value: the standard CRC-32 of IEEE 802.3 (zlib, PNG; the polynomial $EDB88320 reflected, $FFFFFFFF at the start and XORed at the end); $CBF43926 for "123456789", 0 for none.

Variable Documentation

◆ nibble

const uint32_t nibble[16]
static
Initial value:
= {
0x00000000UL, 0x1DB71064UL, 0x3B6E20C8UL, 0x26D930ACUL,
0x76DC4190UL, 0x6B6B51F4UL, 0x4DB26158UL, 0x5005713CUL,
0xEDB88320UL, 0xF00F9344UL, 0xD6D6A3E8UL, 0xCB61B38CUL,
0x9B64C2B0UL, 0x86D3D2D4UL, 0xA00AE278UL, 0xBDBDF21CUL
}