ref: 5cb8abea294208f9ce4457e5ee6fa22b2f72b9d8
parent: 52ca8a39caa3479d1cc32d43f8e398f3c2de2a5a
author: Paul Brossier <piem@piem.org>
date: Fri Jan 24 09:52:38 EST 2014
src/spectral/ooura_fft8g.c: use COS and SIN aliases
--- 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 @@
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;