Go to the documentation of this file.
19 #ifndef AVUTIL_CRC_INTERNAL_H
20 #define AVUTIL_CRC_INTERNAL_H
25 static uint64_t
reverse(uint64_t
p,
unsigned int deg)
29 for (
i = 0;
i < (deg / 8);
i += 1) {
33 int rem = (deg + 1) - 8 *
i;
38 static uint64_t
xnmodp(
unsigned n, uint64_t poly,
unsigned deg, uint64_t *div,
int bitreverse)
46 mask = ((uint64_t)1 << deg) - 1;
53 *div = (*div << 1) |
high;
static uint64_t xnmodp(unsigned n, uint64_t poly, unsigned deg, uint64_t *div, int bitreverse)
const uint8_t ff_reverse[256]
#define i(width, name, range_min, range_max)
static int mod(int a, int b)
Modulo operation with only positive remainders.
IDirect3DDxgiInterfaceAccess _COM_Outptr_ void ** p
static uint64_t reverse(uint64_t p, unsigned int deg)