[FFmpeg-cvslog] x86/avf_showcqt: use the FMULADD_PS x86util macro
James Almer
git at videolan.org
Sat Aug 20 08:18:27 EEST 2016
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Aug 20 02:12:33 2016 -0300| [a8e3833a61c31f8271a55e847e8556d96cb9048a] | committer: James Almer
x86/avf_showcqt: use the FMULADD_PS x86util macro
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a8e3833a61c31f8271a55e847e8556d96cb9048a
---
libavfilter/x86/avf_showcqt.asm | 17 ++++-------------
1 file changed, 4 insertions(+), 13 deletions(-)
diff --git a/libavfilter/x86/avf_showcqt.asm b/libavfilter/x86/avf_showcqt.asm
index 659afeb..63e5840 100644
--- a/libavfilter/x86/avf_showcqt.asm
+++ b/libavfilter/x86/avf_showcqt.asm
@@ -35,15 +35,6 @@ struc Coeffs
.sizeof:
endstruc
-%macro EMULATE_FMADDPS 5 ; dst, src1, src2, src3, tmp
-%if cpuflag(fma3) || cpuflag(fma4)
- fmaddps %1, %2, %3, %4
-%else
- mulps %5, %2, %3
- addps %1, %4, %5
-%endif
-%endmacro ; EMULATE_FMADDPS
-
%macro CQT_CALC 9
; %1 = a_re, %2 = a_im, %3 = b_re, %4 = b_im
; %5 = m_re, %6 = m_im, %7 = tmp, %8 = coeffval, %9 = coeffsq_offset
@@ -54,9 +45,9 @@ endstruc
shufps m%6, m%5, m%7, q3131
shufps m%5, m%5, m%7, q2020
sub id, fft_lend
- EMULATE_FMADDPS m%2, m%6, m%8, m%2, m%6
+ FMULADD_PS m%2, m%6, m%8, m%2, m%6
neg id
- EMULATE_FMADDPS m%1, m%5, m%8, m%1, m%5
+ FMULADD_PS m%1, m%5, m%8, m%1, m%5
movups m%5, [srcq + 8 * iq - mmsize + 8]
movups m%7, [srcq + 8 * iq - 2*mmsize + 8]
%if mmsize == 32
@@ -65,8 +56,8 @@ endstruc
%endif
shufps m%6, m%5, m%7, q1313
shufps m%5, m%5, m%7, q0202
- EMULATE_FMADDPS m%4, m%6, m%8, m%4, m%6
- EMULATE_FMADDPS m%3, m%5, m%8, m%3, m%5
+ FMULADD_PS m%4, m%6, m%8, m%4, m%6
+ FMULADD_PS m%3, m%5, m%8, m%3, m%5
%endmacro ; CQT_CALC
%macro CQT_SEPARATE 6 ; a_re, a_im, b_re, b_im, tmp, tmp2
More information about the ffmpeg-cvslog
mailing list