changeset 11284:aaca4b58880f libavcodec

unroll tiny and trivial loop. Same speed but clearer.
author michael
date Thu, 25 Feb 2010 12:51:32 +0000
parents 853e93a50fe5
children 613370892df2
files h264.h
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/h264.h	Thu Feb 25 04:11:33 2010 +0000
+++ b/h264.h	Thu Feb 25 12:51:32 2010 +0000
@@ -1430,9 +1430,9 @@
                 AV_ZERO128(mvd_dst);
             else{
             AV_COPY64(mvd_dst, mvd_src + 8*3);
-            for(y=0; y<3; y++){
-                AV_COPY16(mvd_dst + 3 + 3 - y, mvd_src + 3 + 8*y);
-            }
+                AV_COPY16(mvd_dst + 3 + 3, mvd_src + 3 + 8*0);
+                AV_COPY16(mvd_dst + 3 + 2, mvd_src + 3 + 8*1);
+                AV_COPY16(mvd_dst + 3 + 1, mvd_src + 3 + 8*2);
             }
         }