From 11c044e0d8dd6ee13d5c2f11b2009964d14d5d67 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 27 Dec 2024 18:38:01 +0100 Subject: [PATCH] imdct.c: Remove fft(). It has only one caller, imdct_half(), so get rid of the trivial function. Dedox the static imdct_half() while at it. --- imdct.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/imdct.c b/imdct.c index 2e1089f1..32bec8c7 100644 --- a/imdct.c +++ b/imdct.c @@ -239,11 +239,6 @@ static void (*fft_dispatch[]) (struct fft_complex *) = { fft2048, fft4096, fft8192, fft16384, fft32768, fft65536, }; -static void fft(struct fft_context *s, struct fft_complex *z) -{ - fft_dispatch[s->nbits - 2] (z); -} - /* complex multiplication: p = a * b */ #define CMUL(pre, pim, are, aim, bre, bim) \ {\ @@ -255,13 +250,9 @@ static void fft(struct fft_context *s, struct fft_complex *z) (pim) = _are * _bim + _aim * _bre;\ } -/** - * Compute the middle half of the inverse MDCT of size N = 2^nbits - * - * Thus excluding the parts that can be derived by symmetry. - * - * \param output N/2 samples. - * \param input N/2 samples. +/* + * Compute the middle half of the inverse MDCT, excluding the parts that can be + * derived by symmetry. */ static void imdct_half(struct mdct_context *s, fftsample_t *output, const fftsample_t *input) @@ -287,7 +278,7 @@ static void imdct_half(struct mdct_context *s, fftsample_t *output, in1 += 2; in2 -= 2; } - fft(&s->fft, z); + fft_dispatch[s->fft.nbits - 2](z); /* post rotation + reordering */ for (k = 0; k < n8; k++) { -- 2.39.5