[FFmpeg-cvslog] lavu/tx: slightly optimize fft15

Lynne git at videolan.org
Thu Feb 13 22:37:26 EET 2020


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Mon Feb 10 17:37:34 2020 +0000| [223b58c74b4070b5726ed29ddd8df7b343c6b78a] | committer: Lynne

lavu/tx: slightly optimize fft15

Saves 2 additions.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=223b58c74b4070b5726ed29ddd8df7b343c6b78a
---

 libavutil/tx_template.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavutil/tx_template.c b/libavutil/tx_template.c
index 0dafc4ba76..f30f3bf5b6 100644
--- a/libavutil/tx_template.c
+++ b/libavutil/tx_template.c
@@ -160,8 +160,8 @@ static av_always_inline void NAME(FFTComplex *out, FFTComplex *in,
     BF(t[3].im, t[2].re, in[2].re, in[3].re);                                                     \
     BF(t[3].re, t[2].im, in[2].im, in[3].im);                                                     \
                                                                                                   \
-    out[D0*stride].re = in[0].re + in[1].re + in[2].re + in[3].re + in[4].re;                     \
-    out[D0*stride].im = in[0].im + in[1].im + in[2].im + in[3].im + in[4].im;                     \
+    out[D0*stride].re = in[0].re + t[0].re + t[2].re;                                             \
+    out[D0*stride].im = in[0].im + t[0].im + t[2].im;                                             \
                                                                                                   \
     SMUL(t[4].re, t[0].re, TX_NAME(ff_cos_53)[2].re, TX_NAME(ff_cos_53)[3].re, t[2].re, t[0].re); \
     SMUL(t[4].im, t[0].im, TX_NAME(ff_cos_53)[2].re, TX_NAME(ff_cos_53)[3].re, t[2].im, t[0].im); \



More information about the ffmpeg-cvslog mailing list