From 5cb8abea294208f9ce4457e5ee6fa22b2f72b9d8 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 24 Jan 2014 14:52:38 -0300 Subject: [PATCH] src/spectral/ooura_fft8g.c: use COS and SIN aliases --- src/spectral/ooura_fft8g.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/spectral/ooura_fft8g.c b/src/spectral/ooura_fft8g.c index a016c9b3..004d8de1 100644 --- a/src/spectral/ooura_fft8g.c +++ b/src/spectral/ooura_fft8g.c @@ -2,6 +2,7 @@ // - replace all 'double' with 'smpl_t' // - include "aubio_priv.h" (for config.h and types.h) // - add missing prototypes +// - use COS and SIN macros #include "aubio_priv.h" @@ -692,12 +693,12 @@ void makewt(int nw, int *ip, smpl_t *w) delta = atan(1.0) / nwh; w[0] = 1; w[1] = 0; - w[nwh] = cos(delta * nwh); + w[nwh] = COS(delta * nwh); w[nwh + 1] = w[nwh]; if (nwh > 2) { for (j = 2; j < nwh; j += 2) { - x = cos(delta * j); - y = sin(delta * j); + x = COS(delta * j); + y = SIN(delta * j); w[j] = x; w[j + 1] = y; w[nw - j] = y; -- 2.11.0