[Ffmpeg-cvslog] r8407 - trunk/libavutil/md5.c

michael subversion
Wed Mar 14 20:47:58 CET 2007


Author: michael
Date: Wed Mar 14 20:47:58 2007
New Revision: 8407

Modified:
   trunk/libavutil/md5.c

Log:
160 bytes smaller object file, ask gcc devels why


Modified: trunk/libavutil/md5.c
==============================================================================
--- trunk/libavutil/md5.c	(original)
+++ trunk/libavutil/md5.c	Wed Mar 14 20:47:58 2007
@@ -75,11 +75,12 @@ static const uint32_t T[64] = { // T[i]=
         t = S[i>>4][i&3];\
         a += T[i];\
 \
-        switch(i>>4){\
-        case 0: a += (d ^ (b&(c^d))) + X[      i &15 ]; break;\
-        case 1: a += (c ^ (d&(c^b))) + X[ (1+5*i)&15 ]; break;\
-        case 2: a += (b^c^d)         + X[ (5+3*i)&15 ]; break;\
-        case 3: a += (c^(b|~d))      + X[ (  7*i)&15 ]; break;\
+        if(i<32){\
+            if(i<16) a += (d ^ (b&(c^d))) + X[      i &15 ];\
+            else     a += (c ^ (d&(c^b))) + X[ (1+5*i)&15 ];\
+        }else{\
+            if(i<48) a += (b^c^d)         + X[ (5+3*i)&15 ];\
+            else     a += (c^(b|~d))      + X[ (  7*i)&15 ];\
         }\
         a = b + (( a << t ) | ( a >> (32 - t) ));
 




More information about the ffmpeg-cvslog mailing list