Mercurial > libavcodec.hg
diff mlp.c @ 7566:d112b4655bbd libavcodec
mlp: split simple inline function that xors 4 bytes into one.
author | ramiro |
---|---|
date | Thu, 14 Aug 2008 03:58:05 +0000 |
parents | fd24c8628221 |
children | 45cfe1d44e86 |
line wrap: on
line diff
--- a/mlp.c Wed Aug 13 23:36:37 2008 +0000 +++ b/mlp.c Thu Aug 14 03:58:05 2008 +0000 @@ -110,8 +110,7 @@ for (; buf < buf_end - 3; buf += 4) scratch ^= *((const uint32_t*)buf); - scratch ^= scratch >> 16; - scratch ^= scratch >> 8; + scratch = xor_32_to_8(scratch); for (; buf < buf_end; buf++) scratch ^= *buf;