]> git.sesse.net Git - ffmpeg/commitdiff
explain where the T table comes from
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 14 Mar 2007 19:43:31 +0000 (19:43 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 14 Mar 2007 19:43:31 +0000 (19:43 +0000)
Originally committed as revision 8406 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/md5.c

index 7c078bb016f3638d845113fffe0c01c2f250d0cf..cacae65f458731c6b086afcecf8de0b9cc294c8e 100644 (file)
@@ -49,7 +49,7 @@ static const uint8_t S[4][4] = {
     { 6, 10, 15, 21 }   /* Round 4 */
 };
 
-static const uint32_t T[64] = {
+static const uint32_t T[64] = { // T[i]= fabs(sin(i+1)<<32)
     0xd76aa478, 0xe8c7b756, 0x242070db, 0xc1bdceee,   /* Round 1 */
     0xf57c0faf, 0x4787c62a, 0xa8304613, 0xfd469501,
     0x698098d8, 0x8b44f7af, 0xffff5bb1, 0x895cd7be,