From: Andre Noll Date: Fri, 27 Dec 2024 17:38:01 +0000 (+0100) Subject: wmadec: Remove fft(). X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=9bd1c88368f9fc86e7facb2366f9c1d351147e66;p=paraslash.git wmadec: Remove fft(). It has only one caller, imdct_half(), so get rid of the trivial function. Dedox the static imdct_half() while at it. --- 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++) {