Mercurial > hg > dmlib
changeset 751:817e792d9360
Use DM_PI instead of M_PI.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 04 May 2013 23:43:16 +0300 |
parents | e6d807ce715b |
children | 2b9dd22f01e9 |
files | dmfft.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dmfft.c Sat May 04 23:41:57 2013 +0300 +++ b/dmfft.c Sat May 04 23:43:16 2013 +0300 @@ -51,9 +51,9 @@ for (i = 0; i < ctx->npoints; i++) { - ctx->sinTable[ctx->breversed[i]] = -sin((2.0f * M_PI * i) / fftlen); + ctx->sinTable[ctx->breversed[i]] = -sin((2.0f * DM_PI * i) / fftlen); ctx->sinTable[ctx->breversed[i] + 1] = - -cos((2.0f * M_PI * i) / fftlen); + -cos((2.0f * DM_PI * i) / fftlen); } return DMERR_OK;