diff mlp.h @ 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 0dc289443426
children d73cd240d68c
line wrap: on
line diff
--- a/mlp.h	Wed Aug 13 23:36:37 2008 +0000
+++ b/mlp.h	Thu Aug 14 03:58:05 2008 +0000
@@ -107,4 +107,12 @@
 
 void ff_mlp_init_crc();
 
+/** XOR four bytes into one. */
+static inline uint8_t xor_32_to_8(uint32_t value)
+{
+    value ^= value >> 16;
+    value ^= value >>  8;
+    return value;
+}
+
 #endif /* FFMPEG_MLP_H */