audiodsp/x86: clear the high bits of the order parameter on 64bit

Also change shl to add, since it can be faster on some CPUs.

CC: libav-stable@libav.org
This commit is contained in:
Anton Khirnov 2016-08-09 14:17:15 +02:00
parent 1d6c76e11f
commit 75d98e30af
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ SECTION .text
%macro SCALARPRODUCT 0
; int ff_scalarproduct_int16(int16_t *v1, int16_t *v2, int order)
cglobal scalarproduct_int16, 3,3,3, v1, v2, order
shl orderq, 1
add orderd, orderd
add v1q, orderq
add v2q, orderq
neg orderq