diff options
author | James Almer <jamrial@gmail.com> | 2016-06-08 20:18:00 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-06-08 20:18:00 +0300 |
commit | 99b899483e10d68358f8018cf120c42f370235e6 (patch) | |
tree | 29b2a2b7dfdff852f405ea44c5a3b0698527b26a /libavutil/x86/x86util.asm | |
parent | 9d8664dd848eece30a63df12b8a7efded0e012ae (diff) |
avutil/x86util: move haddps sse emulation from showcqt
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/x86/x86util.asm')
-rw-r--r-- | libavutil/x86/x86util.asm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavutil/x86/x86util.asm b/libavutil/x86/x86util.asm index b09fa813e2..50b7b50535 100644 --- a/libavutil/x86/x86util.asm +++ b/libavutil/x86/x86util.asm @@ -357,6 +357,17 @@ %endif %endmacro +%macro HADDPS 3 ; dst, src, tmp +%if cpuflag(sse3) + haddps %1, %2 +%else + movaps %3, %1 + shufps %1, %2, q2020 + shufps %3, %2, q3131 + addps %1, %3 +%endif +%endmacro + %macro PALIGNR 4-5 %if cpuflag(ssse3) %if %0==5 |