[Scipy-svn] r5349 - trunk/scipy/fftpack/src

scipy-svn@scip... scipy-svn@scip...
Wed Jan 7 08:46:23 CST 2009


Author: cdavid
Date: 2009-01-07 08:46:12 -0600 (Wed, 07 Jan 2009)
New Revision: 5349

Modified:
   trunk/scipy/fftpack/src/cfftnd_fftpack.c
Log:
Rename flatten for single prec to avoid clash with double prec.

Modified: trunk/scipy/fftpack/src/cfftnd_fftpack.c
===================================================================
--- trunk/scipy/fftpack/src/cfftnd_fftpack.c	2009-01-07 14:45:41 UTC (rev 5348)
+++ trunk/scipy/fftpack/src/cfftnd_fftpack.c	2009-01-07 14:46:12 UTC (rev 5349)
@@ -21,21 +21,7 @@
 	  , 10)
 
 static
-/*inline : disabled because MSVC6.0 fails to compile it. */
-int next_comb(int *ia, int *da, int m)
-{
-    while (m >= 0 && ia[m] == da[m]) {
-        ia[m--] = 0;
-    }
-    if (m < 0) {
-        return 0;
-    }
-    ia[m]++;
-    return 1;
-}
-
-static
-void flatten(complex_float * dest, complex_float * src,
+void sflatten(complex_float * dest, complex_float * src,
 	     int rank, int strides_axis, int dims_axis, int unflat,
 	     int *tmp)
 {
@@ -109,9 +95,9 @@
                     *(itmp + 2 * rank + j++) = dims[k] - 1;
                 }
             }
-            flatten(tmp, ptr, rank, itmp[axis], dims[axis], 0, itmp);
+            sflatten(tmp, ptr, rank, itmp[axis], dims[axis], 0, itmp);
             cfft(tmp, dims[axis], direction, sz / dims[axis], normalize);
-            flatten(ptr, tmp, rank, itmp[axis], dims[axis], 1, itmp);
+            sflatten(ptr, tmp, rank, itmp[axis], dims[axis], 1, itmp);
         }
     }
 



More information about the Scipy-svn mailing list