[Scipy-svn] r4882 - branches/remove_fft_backends/scipy/fftpack/src
scipy-svn at scipy.org
scipy-svn at scipy.org
Sat Nov 1 09:37:30 EDT 2008
Author: cdavid
Date: 2008-11-01 08:37:23 -0500 (Sat, 01 Nov 2008)
New Revision: 4882
Modified:
branches/remove_fft_backends/scipy/fftpack/src/drfft.c
Log:
Remove any non-fftpack code for real, one-dimension fft.
Modified: branches/remove_fft_backends/scipy/fftpack/src/drfft.c
===================================================================
--- branches/remove_fft_backends/scipy/fftpack/src/drfft.c 2008-11-01 13:36:08 UTC (rev 4881)
+++ branches/remove_fft_backends/scipy/fftpack/src/drfft.c 2008-11-01 13:37:23 UTC (rev 4882)
@@ -20,52 +20,5 @@
drfft_##name(inout, n, direction, howmany, normalize);\
}
-/* ************** Definition of backend specific functions ********* */
-
-/*
- * To add a backend :
- * - create a file drfft_name.c, where you define a function drfft_name where
- * name is the name of your backend. If you do not use the GEN_CACHE macro,
- * you will need to define a function void destroy_drname_caches(void),
- * which can do nothing
- * - in drfft.c, include the drfft_name.c file, and add the 3 following lines
- * just after it:
- * #ifndef WITH_DJBFFT
- * GEN_PUBLIC_API(name)
- * #endif
- */
-
-#ifdef WITH_FFTW3
- #include "drfft_fftw3.c"
- #ifndef WITH_DJBFFT
- GEN_PUBLIC_API(fftw3)
- #endif
-#elif defined WITH_FFTW
- #include "drfft_fftw.c"
- #ifndef WITH_DJBFFT
- GEN_PUBLIC_API(fftw)
- #endif
-#else /* Use fftpack by default */
- #include "drfft_fftpack.c"
- #ifndef WITH_DJBFFT
- GEN_PUBLIC_API(fftpack)
- #endif
-#endif
-
-/*
- * djbfft must be used at the end, because it needs another backend (defined
- * above) for non 2^n * size
- */
-#ifdef WITH_DJBFFT
- #include "drfft_djbfft.c"
- void destroy_drfft_cache(void)
- {
- destroy_drdjbfft_caches();
- drfft_def_destroy_cache();
- }
- void drfft(double *inout, int n,
- int direction, int howmany, int normalize)
- {
- drfft_djbfft(inout, n, direction, howmany, normalize);
- }
-#endif
+#include "drfft_fftpack.c"
+GEN_PUBLIC_API(fftpack)
More information about the Scipy-svn
mailing list