[libav-commits] audiodsp/x86: clear the high bits of the order parameter on 64bit
Module: libav Branch: release/11 Commit: 3792f8c5599a2c0bddd88da21df97e424c138851 Author:Anton Khirnov Committer: Anton Khirnov Date: Tue Aug 9 14:17:15 2016 +0200 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-sta...@libav.org (cherry picked from commit 75d98e30afab61542faab3c0f11880834653bd6b) Signed-off-by: Anton Khirnov --- libavcodec/x86/audiodsp.asm |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/x86/audiodsp.asm b/libavcodec/x86/audiodsp.asm index 51afbd9..6b02193 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 ___ libav-commits mailing list libav-commits@libav.org https://lists.libav.org/mailman/listinfo/libav-commits
[libav-commits] audiodsp/x86: clear the high bits of the order parameter on 64bit
Module: libav Branch: release/12 Commit: 73da71e44635cf1b7b17dea9daf725c88e015cda Author:Anton Khirnov Committer: Anton Khirnov Date: Tue Aug 9 14:17:15 2016 +0200 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-sta...@libav.org (cherry picked from commit 75d98e30afab61542faab3c0f11880834653bd6b) Signed-off-by: Anton Khirnov --- libavcodec/x86/audiodsp.asm |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/x86/audiodsp.asm b/libavcodec/x86/audiodsp.asm index dc38ada..d7e63eb 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 ___ libav-commits mailing list libav-commits@libav.org https://lists.libav.org/mailman/listinfo/libav-commits
[libav-commits] audiodsp/x86: clear the high bits of the order parameter on 64bit
Module: libav Branch: master Commit: 75d98e30afab61542faab3c0f11880834653bd6b Author:Anton Khirnov Committer: Anton Khirnov Date: Tue Aug 9 14:17:15 2016 +0200 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-sta...@libav.org --- libavcodec/x86/audiodsp.asm |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/x86/audiodsp.asm b/libavcodec/x86/audiodsp.asm index dc38ada..d7e63eb 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 ___ libav-commits mailing list libav-commits@libav.org https://lists.libav.org/mailman/listinfo/libav-commits