<div dir="ltr">yes, scale value less than 32768 should take the faster path and scale value >= 32768 should take the slower path. I will send patch for that.<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Feb 20, 2014 at 12:02 AM, chen <span dir="ltr"><<a href="mailto:chenm003@163.com" target="_blank">chenm003@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="line-height:1.7;font-size:14px;font-family:arial"><div><div class="">>@@ -1154,8 +1151,11 @@<br>> ; void dequant_normal(const int32_t* quantCoef, int32_t* coef, int num, int scale, int shift)<br>> ;-----------------------------------------------------------------------------<br>
> INIT_XMM sse4<br>>-cglobal dequant_normal, 2,5,8<br>>-    movd        m1, r3m             ; m1 = word [scale]<br>>+cglobal dequant_normal, 4,5,5<br>>+    movd        m1, r3             ; m1 = word [scale]<br>
>+    cmp         r3d, 255<br></div>r3 is scale, it maximum is (72 << per), when QP more than 12, the code will enter slower path.</div>
<div> </div></div><br>_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">With Regards,<div><br></div><div>Murugan. V</div><div>+919659287478</div></div>
</div>