[x265] [PATCH] asm: modified the range of scale value in dequant

murugan at multicorewareinc.com murugan at multicorewareinc.com
Thu Feb 20 07:12:47 CET 2014


# HG changeset patch
# User Murugan Vairavel <murugan at multicorewareinc.com>
# Date 1392876751 -19800
#      Thu Feb 20 11:42:31 2014 +0530
# Node ID 96e64ac56117b13b1f1ff098e1c3e6f28b3bf3f4
# Parent  3389061b75a486e004409ab628c46fed39d03b72
asm: modified the range of scale value in dequant

diff -r 3389061b75a4 -r 96e64ac56117 source/common/x86/pixel-util8.asm
--- a/source/common/x86/pixel-util8.asm	Wed Feb 19 17:03:21 2014 -0600
+++ b/source/common/x86/pixel-util8.asm	Thu Feb 20 11:42:31 2014 +0530
@@ -1153,8 +1153,9 @@
 INIT_XMM sse4
 cglobal dequant_normal, 4,5,5
     movd        m1, r3             ; m1 = word [scale]
-    cmp         r3d, 255
+    cmp         r3d, 32767
     jle         .skip
+
     psrld       m1, 2
     mov         r4d, r4m
     movd        m0, r4d             ; m0 = shift


More information about the x265-devel mailing list