[Scipy-svn] r4265 - branches/refactor_fft/scipy/fftpack/src/djbfft
scipy-svn at scipy.org
scipy-svn at scipy.org
Sun May 11 07:04:41 EDT 2008
Author: cdavid
Date: 2008-05-11 06:04:37 -0500 (Sun, 11 May 2008)
New Revision: 4265
Added:
branches/refactor_fft/scipy/fftpack/src/djbfft/common.h
Modified:
branches/refactor_fft/scipy/fftpack/src/djbfft/zfft.cxx
Log:
Put DJBFFT key id in common header.
Added: branches/refactor_fft/scipy/fftpack/src/djbfft/common.h
===================================================================
--- branches/refactor_fft/scipy/fftpack/src/djbfft/common.h 2008-05-11 11:01:25 UTC (rev 4264)
+++ branches/refactor_fft/scipy/fftpack/src/djbfft/common.h 2008-05-11 11:04:37 UTC (rev 4265)
@@ -0,0 +1,9 @@
+#ifndef _SCIPY_DJBFFT_COMMON_H
+#define _SCIPY_DJBFFT_COMMON_H
+
+class DJBFFTCacheId : public CacheId {
+ public:
+ DJBFFTCacheId(int n) : CacheId(n) {};
+};
+
+#endif
Modified: branches/refactor_fft/scipy/fftpack/src/djbfft/zfft.cxx
===================================================================
--- branches/refactor_fft/scipy/fftpack/src/djbfft/zfft.cxx 2008-05-11 11:01:25 UTC (rev 4264)
+++ branches/refactor_fft/scipy/fftpack/src/djbfft/zfft.cxx 2008-05-11 11:04:37 UTC (rev 4265)
@@ -4,6 +4,9 @@
* zfft_def and zfft_def_destroy_cache are the functions
* used for size different than 2^N
*/
+
+#include "common.h"
+
#ifdef WITH_FFTWORK
#define zfft_def zfft_fftwork
#define zfft_def_destroy_cache destroy_zfftwork_cache
@@ -18,11 +21,6 @@
#define zfft_def_destroy_cache destroy_zfftpack_caches
#endif
-class DJBFFTCacheId : public CacheId {
- public:
- DJBFFTCacheId(int n) : CacheId(n) {};
-};
-
class DJBFFTCache: public Cache<DJBFFTCacheId> {
public:
DJBFFTCache(const DJBFFTCacheId& id);
More information about the Scipy-svn
mailing list