From c174a2d8db023a8a77eebd55525a46f0f928de11 Mon Sep 17 00:00:00 2001 From: phernst Date: Tue, 17 Mar 2026 18:17:19 +0100 Subject: [PATCH] Fix lookup table index --- src/ffts_trig.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ffts_trig.c b/src/ffts_trig.c index 65efa866e1f..910e646fa17 100644 --- a/src/ffts_trig.c +++ b/src/ffts_trig.c @@ -37,11 +37,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * For more information on algorithms: * * D. Potts, G. Steidl, M. Tasche, Numerical stability of fast -* trigonometric transforms — a worst case study, -* J. Concrete Appl. Math. 1 (2003) 1–36 +* trigonometric transforms — a worst case study, +* J. Concrete Appl. Math. 1 (2003) 1–36 * -* O. Buneman, Stable on–line creation of sines and cosines of -* successive angles, Proc. IEEE 75, 1434 – 1435 (1987). +* O. Buneman, Stable on–line creation of sines and cosines of +* successive angles, Proc. IEEE 75, 1434 – 1435 (1987). */ /* An union to initialize doubles using byte presentation, @@ -406,7 +406,7 @@ ffts_cexp_32f64f(size_t n, size_t d, double *output) /* table lookup */ cos_a = ct[4 * i + 0].d; - sin_a = ct[4 * i + 2].d; + sin_a = ct[4 * i + 1].d; /* evaluate polynomials */ cos_b = 1.0 + z * (cc[0].d + z * (cc[1].d + z * cc[2].d));