[x265] [PATCH] asm: fix bug in cvt16to32_shl

Min Chen chenm003 at 163.com
Wed Feb 12 07:47:20 CET 2014


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1392187632 -28800
# Node ID e6d34e979e4b65e49d6d8b20a90527b66eb4790e
# Parent  d6fdfa9f493871eff9283d0968179a8c93063230
asm: fix bug in cvt16to32_shl

diff -r d6fdfa9f4938 -r e6d34e979e4b source/common/x86/blockcopy8.asm
--- a/source/common/x86/blockcopy8.asm	Tue Feb 11 12:57:32 2014 -0600
+++ b/source/common/x86/blockcopy8.asm	Wed Feb 12 14:47:12 2014 +0800
@@ -2896,6 +2896,8 @@
     ; r3 - shift
     ; r4 - size
 
+    sub             r2d,      r4d
+    add             r2d,      r2d
     mov             r5d,      r4d
     shr             r4d,      2
 .loop_row
@@ -2912,6 +2914,7 @@
     dec             r6d
     jnz             .loop_col
 
+    add             r1,       r2
     dec             r5d
     jnz             .loop_row
 



More information about the x265-devel mailing list