swscale/arm/yuv2rgb: factorize lsl in load_args_nvx
authorMatthieu Bouron <matthieu.bouron@stupeflix.com>
Thu, 24 Mar 2016 16:33:28 +0000 (17:33 +0100)
committerMatthieu Bouron <matthieu.bouron@stupeflix.com>
Fri, 1 Apr 2016 15:23:45 +0000 (17:23 +0200)
libswscale/arm/yuv2rgb_neon.S

index 4601a79..ef7b0a6 100644 (file)
     add                 r12, r4, r5                                    @ r12 = srcY + linesizeY (srcY2)
     lsl                 r3, r3, #1
     lsl                 r5, r5, #1
-    lsl                 r8, r0, #2
-    sub                 r3, r3, r8                                     @ r3 = linesize  * 2 - width * 4 (padding)
+    sub                 r3, r3, r0, lsl #2                             @ r3 = linesize  * 2 - width * 4 (padding)
     sub                 r5, r5, r0                                     @ r5 = linesizeY * 2 - width     (paddingY)
     sub                 r7, r7, r0                                     @ r7 = linesizeC     - width     (paddingC)
 .endm