Revision: 42020
          http://brlcad.svn.sourceforge.net/brlcad/?rev=42020&view=rev
Author:   starseeker
Date:     2011-01-07 19:05:53 +0000 (Fri, 07 Jan 2011)

Log Message:
-----------
Pull updates to libfft from CMake into trunk.

Modified Paths:
--------------
    brlcad/trunk/src/libfft/fft.h
    brlcad/trunk/src/libfft/fftest.c
    brlcad/trunk/src/libfft/fftfast.c

Modified: brlcad/trunk/src/libfft/fft.h
===================================================================
--- brlcad/trunk/src/libfft/fft.h       2011-01-07 18:56:08 UTC (rev 42019)
+++ brlcad/trunk/src/libfft/fft.h       2011-01-07 19:05:53 UTC (rev 42020)
@@ -47,9 +47,24 @@
 #  endif
 #endif
 
+/* The COMPLEX type used throughout */
+typedef struct {
+    double re; /* Real Part */
+    double im; /* Imaginary Part */
+} COMPLEX;
+
 FFT_EXPORT extern void splitdit(int N, int M);
 FFT_EXPORT extern void ditsplit(int n /* length */, int m /* n = 2^m */);
+FFT_EXPORT extern void rfft(double *X, int N);
+FFT_EXPORT extern void irfft(double *X, int n);
+FFT_EXPORT extern void cfft(COMPLEX *dat, int num);
+FFT_EXPORT extern void icfft(COMPLEX *dat, int num);
 
+/* These should come from a generated header, but until
+ * CMake is live we'll just add the ones used by our current code */
+FFT_EXPORT extern void rfft256(register double X[]);
+FFT_EXPORT extern void irfft256(register double X[]);
+
 /*
  * Local Variables:
  * mode: C

Modified: brlcad/trunk/src/libfft/fftest.c
===================================================================
--- brlcad/trunk/src/libfft/fftest.c    2011-01-07 18:56:08 UTC (rev 42019)
+++ brlcad/trunk/src/libfft/fftest.c    2011-01-07 19:05:53 UTC (rev 42020)
@@ -30,12 +30,6 @@
 
 #include "fft.h"
 
-
-typedef struct {
-    double re; /* Real Part */
-    double im; /* Imaginary Part */
-} COMPLEX;
-
 /***** TEST ROUTINES *****/
 COMPLEX data[64];
 

Modified: brlcad/trunk/src/libfft/fftfast.c
===================================================================
--- brlcad/trunk/src/libfft/fftfast.c   2011-01-07 18:56:08 UTC (rev 42019)
+++ brlcad/trunk/src/libfft/fftfast.c   2011-01-07 19:05:53 UTC (rev 42020)
@@ -43,13 +43,6 @@
 #define MAXSIZE 65536  /* Needed for sin/cos tables */
 int _init_size = 0;    /* Internal: shows last initialized size */
 
-
-/* The COMPLEX type used throughout */
-typedef struct {
-    double re; /* Real Part */
-    double im; /* Imaginary Part */
-} COMPLEX;
-
 void scramble(int numpoints, COMPLEX *dat);
 void butterflies(int numpoints, int inverse, COMPLEX *dat);
 int init_sintab(int size);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to