X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=fec.c;h=233a87803ebcf06fe38d172473cfa15e23b17c96;hp=dc6e75209473c3eb14c9d52324707f5329d398d0;hb=d54dd90e5c4a15727491b9880a534eb948fe82e5;hpb=c7269c6960a0f67fcd3f5c9b5bbaad53824d0ae9 diff --git a/fec.c b/fec.c index dc6e7520..233a8780 100644 --- a/fec.c +++ b/fec.c @@ -179,14 +179,14 @@ static void generate_gf(void) * This is used often, so better optimize it! Currently the loop is unrolled 16 * times. The case c=0 is also optimized, whereas c=1 is not. */ -static void addmul(unsigned char *dst1, const unsigned char const *src1, +static void addmul(unsigned char *dst1, const unsigned char *src1, unsigned char c, int sz) { if (c == 0) return; unsigned char *dst = dst1, *lim = &dst[sz - UNROLL + 1], *col = gf_mul_table[c]; - const unsigned char const *src = src1; + const unsigned char *src = src1; for (; dst < lim; dst += UNROLL, src += UNROLL) { dst[0] ^= col[src[0]];