diff options
author | James Almer <jamrial@gmail.com> | 2015-10-10 05:17:31 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2015-10-10 05:52:39 +0300 |
commit | dab5f65b25f1c9c3de4d1f42c135768b72f45351 (patch) | |
tree | eff2f319e1cbdf649a88df68b9556a19f2f1ef78 /libavcodec/x86 | |
parent | 4ab56667594842283dc5ae07f0daba2a2cb4d3af (diff) |
x86/takdsp: use arithmetic shift instructions
p1 and p2 are int32_t.
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/x86')
-rw-r--r-- | libavcodec/x86/takdsp.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/x86/takdsp.asm b/libavcodec/x86/takdsp.asm index d3c6a13f11..5f3ded3ea2 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 |