[x264-devel] x86: Deduplicate a constant in hpel_filter_c

Henrik Gramner git at videolan.org
Tue Sep 20 20:57:52 CEST 2016


x264 | branch: master | Henrik Gramner <henrik at gramner.com> | Sat Sep 17 21:14:35 2016 +0200| [8c07263ad9218bdc3e0f5b84d578968513885df7] | committer: Anton Mitrofanov

x86: Deduplicate a constant in hpel_filter_c

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=8c07263ad9218bdc3e0f5b84d578968513885df7
---

 common/x86/mc-a2.asm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/common/x86/mc-a2.asm b/common/x86/mc-a2.asm
index b2b5641..50a4a31 100644
--- a/common/x86/mc-a2.asm
+++ b/common/x86/mc-a2.asm
@@ -67,7 +67,6 @@ pf_256:    times 4 dd 256.0
 pf_inv256: times 4 dd 0.00390625
 
 pd_16: times 4 dd 16
-pd_0f: times 4 dd 0xffff
 
 pad10: times 8 dw    10*PIXEL_MAX
 pad20: times 8 dw    20*PIXEL_MAX
@@ -287,7 +286,7 @@ cglobal hpel_filter_c, 3,3,10
     psrad      m1, 10
     psrad      m2, 10
     pslld      m2, 16
-    pand       m1, [pd_0f]
+    pand       m1, [pd_ffff]
     por        m1, m2
     CLIPW      m1, [pb_0], [pw_pixel_max]
     mova  [r0+r2], m1



More information about the x264-devel mailing list