Changeset 5cb8abe


Ignore:
Timestamp:
Jan 24, 2014, 6:52:38 PM (10 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
082c88b
Parents:
52ca8a3
Message:

src/spectral/ooura_fft8g.c: use COS and SIN aliases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/ooura_fft8g.c

    r52ca8a3 r5cb8abe  
    33//  - include "aubio_priv.h" (for config.h and types.h)
    44//  - add missing prototypes
     5//  - use COS and SIN macros
    56
    67#include "aubio_priv.h"
     
    693694        w[0] = 1;
    694695        w[1] = 0;
    695         w[nwh] = cos(delta * nwh);
     696        w[nwh] = COS(delta * nwh);
    696697        w[nwh + 1] = w[nwh];
    697698        if (nwh > 2) {
    698699            for (j = 2; j < nwh; j += 2) {
    699                 x = cos(delta * j);
    700                 y = sin(delta * j);
     700                x = COS(delta * j);
     701                y = SIN(delta * j);
    701702                w[j] = x;
    702703                w[j + 1] = y;
Note: See TracChangeset for help on using the changeset viewer.