# HG changeset patch # User Matti Hamalainen # Date 1425750793 -7200 # Node ID f077a709d49163bd43776b0f3846e0a24392f382 # Parent 75e20c34bb6a6581308f2e68b3420729654af509 Cleanup. diff -r 75e20c34bb6a -r f077a709d491 src/dmfft.c --- a/src/dmfft.c Sat Mar 07 19:45:51 2015 +0200 +++ b/src/dmfft.c Sat Mar 07 19:53:13 2015 +0200 @@ -76,6 +76,8 @@ if (ctx == NULL || buffer == NULL) return DMERR_NULLPTR; + const int *br1 = ctx->breversed + 1; + const int *br2 = ctx->breversed + ctx->npoints - 1; int rounds = ctx->npoints / 2; DMFFTType *endptr1 = buffer + ctx->npoints * 2; @@ -108,11 +110,7 @@ rounds >>= 1; } - /* - * Massage output to get the output for a real input sequence. - */ - const int *br1 = ctx->breversed + 1; - const int *br2 = ctx->breversed + ctx->npoints - 1; + // Massage output to get the output for a real input sequence. while (br1 <= br2) {