37 for (i = 8; i < 64; i += 4) {
56 w = x1 * x1 + x2 * x2;
59 w = sqrt((-2.0 * log(w)) / w);
65 unsigned int beg,
end, segm;
70 if (length > (UINT_MAX / 128
U))
return AVERROR(EINVAL);
79 for (segm = 0;segm < 64;segm++) {
80 end = (((segm + 1) * length) / 64);
81 crc =
av_crc(avcrc, crc, data + beg, end - beg);
ptrdiff_t const GLvoid * data
Macro definitions for various function/variable attributes.
static av_cold int end(AVCodecContext *avctx)
Public header for CRC hash function implementation.
void av_md5_sum(uint8_t *dst, const uint8_t *src, const int len)
Hash an array of data.
void av_bmg_get(AVLFG *lfg, double out[2])
Get the next two numbers generated by a Box-Muller Gaussian generator using the random numbers issued...
uint32_t av_crc(const AVCRC *ctx, uint32_t crc, const uint8_t *buffer, size_t length)
Calculate the CRC of a block.
int av_lfg_init_from_data(AVLFG *c, const uint8_t *data, unsigned int length)
Seed the state of the ALFG using binary data.
static unsigned int av_lfg_get(AVLFG *c)
Get the next random unsigned 32-bit number using an ALFG.
av_cold void av_lfg_init(AVLFG *c, unsigned int seed)
const AVCRC * av_crc_get_table(AVCRCId crc_id)
Get an initialized standard CRC table.
Public header for MD5 hash function implementation.
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_RL32