From a7cc783d711f0f47eb748a33b55d0c4f57ac1840 Mon Sep 17 00:00:00 2001 From: Ramiro Polla <ramiro.polla@gmail.com> Date: Thu, 14 Aug 2008 03:58:05 +0000 Subject: mlp: split simple inline function that xors 4 bytes into one. Originally committed as revision 14747 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mlp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavcodec/mlp.c') diff --git a/libavcodec/mlp.c b/libavcodec/mlp.c index f2a0276574..2ac2e658f1 100644 --- a/libavcodec/mlp.c +++ b/libavcodec/mlp.c @@ -110,8 +110,7 @@ uint8_t ff_mlp_calculate_parity(const uint8_t *buf, unsigned int buf_size) 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; -- cgit v1.2.3