[FFmpeg-devel] [PATCH] avutil/md5: inline function, 2% speedup

Michael Niedermayer michaelni at gmx.at
Mon May 20 14:25:30 CEST 2013


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavutil/md5.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/md5.c b/libavutil/md5.c
index e3c4981..2df37cc 100644
--- a/libavutil/md5.c
+++ b/libavutil/md5.c
@@ -92,7 +92,7 @@ static const uint32_t T[64] = { // T[i]= fabs(sin(i+1)<<32)
         a = b + (a << t | a >> (32 - t));                               \
     } while (0)
 
-static void body(uint32_t ABCD[4], uint32_t X[16])
+static av_always_inline void body(uint32_t ABCD[4], uint32_t X[16])
 {
     int i av_unused;
     uint32_t t;
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list