[FFmpeg-cvslog] x86/takdsp: use arithmetic shift instructions
James Almer
git at videolan.org
Sat Oct 10 04:53:29 CEST 2015
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Oct 9 23:17:31 2015 -0300| [dab5f65b25f1c9c3de4d1f42c135768b72f45351] | committer: James Almer
x86/takdsp: use arithmetic shift instructions
p1 and p2 are int32_t.
Reviewed-by: Ronald S. Bultje <rsbultje at gmail.com>
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dab5f65b25f1c9c3de4d1f42c135768b72f45351
---
libavcodec/x86/takdsp.asm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavcodec/x86/takdsp.asm b/libavcodec/x86/takdsp.asm
index d3c6a13..5f3ded3 100644
--- a/libavcodec/x86/takdsp.asm
+++ b/libavcodec/x86/takdsp.asm
@@ -75,8 +75,8 @@ cglobal tak_decorrelate_sm, 3, 3, 6, p1, p2, length
mova m4, [p2q+lengthq+mmsize]
mova m2, m1
mova m5, m4
- psrld m2, 1
- psrld m5, 1
+ psrad m2, 1
+ psrad m5, 1
psubd m0, m2
psubd m3, m5
paddd m1, m0
@@ -104,10 +104,10 @@ cglobal tak_decorrelate_sf, 3, 3, 5, p1, p2, length, dshift, dfactor
.loop:
mova m0, [p1q+lengthq]
mova m1, [p2q+lengthq]
- psrld m1, m2
+ psrad m1, m2
pmulld m1, m3
paddd m1, m4
- psrld m1, 8
+ psrad m1, 8
pslld m1, m2
psubd m1, m0
mova [p1q+lengthq], m1
More information about the ffmpeg-cvslog
mailing list