diff src/dmfft.c @ 1252:f077a709d491

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 07 Mar 2015 19:53:13 +0200
parents 848a88ce7a57
children e68f7b0cb536
line wrap: on
line diff
--- 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)
     {