diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-08-09 15:17:15 +0300 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-09-19 20:18:07 +0300 |
commit | 75d98e30afab61542faab3c0f11880834653bd6b (patch) | |
tree | 291d62eba9987cd309dd05377f6da2e17d383b02 /libavcodec | |
parent | 1d6c76e11febb58738c9647c47079d02b5e10094 (diff) |
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
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/x86/audiodsp.asm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/x86/audiodsp.asm b/libavcodec/x86/audiodsp.asm index dc38ada71f..d7e63eb0cb 100644 --- a/libavcodec/x86/audiodsp.asm +++ b/libavcodec/x86/audiodsp.asm @@ -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 |