62 const uint8_t *
buffer,
size_t length);
69 uint32_t prev_crc =
rnd();
71 for (
size_t j = 0; j <
sizeof(buf); j += 4)
77 if (crc_ref != crc_new)
85 static const char *
const tests[] = {
86#define TEST(CRC) [AV_CRC_ ## CRC] = #CRC
simple assert() macros that are a bit more flexible than ISO C assert().
#define av_assert0(cond)
assert() equivalent, that is always enabled.
#define i(width, name, range_min, range_max)
Public header for CRC hash function implementation.
uintptr_t CheckasmKey
Opaque type used to identify function implementations.
static const uint8_t bits[8]
int av_crc_init(AVCRC *ctx, int le, int bits, uint32_t poly, int ctx_size)
Initialize a CRC table.
const AVCRC * av_crc_get_table(AVCRCId crc_id)
Get an initialized standard CRC table.
uint32_t av_crc(const AVCRC *ctx, uint32_t crc, const uint8_t *buffer, size_t length)
Calculate the CRC of a block.
static const int offsets[]
static const int sizes[][2]
Macro definitions for various function/variable attributes.
Utility Preprocessor macros.
Memory handling functions.
#define DECLARE_ALIGNED(n, t, v)
Declare a variable that is aligned in memory.
#define FF_ARRAY_ELEMS(a)
#define checkasm_call(func,...)
Call a function with signal handling.
void checkasm_check_crc(void)
static void check_crc(const AVCRC *table_new, const char *name, size_t size, size_t offset)
static CustomTest * ctx_list
void checkasm_uninit_crc(void)
static AVFormatContext * ctx