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

scipy-svn@scip... scipy-svn@scip...
Sun Jan 18 05:24:07 CST 2009


Author: cdavid
Date: 2009-01-18 05:23:59 -0600 (Sun, 18 Jan 2009)
New Revision: 5481

Modified:
   trunk/scipy/fftpack/src/dct.c
Log:
Remove tabs.

Modified: trunk/scipy/fftpack/src/dct.c
===================================================================
--- trunk/scipy/fftpack/src/dct.c	2009-01-18 11:23:38 UTC (rev 5480)
+++ trunk/scipy/fftpack/src/dct.c	2009-01-18 11:23:59 UTC (rev 5481)
@@ -8,8 +8,8 @@
 #include "fftpack.h"
 
 enum normalize {
-	DCT_NORMALIZE_NO = 0,
-	DCT_NORMALIZE_ORTHONORMAL = 1
+    DCT_NORMALIZE_NO = 0,
+    DCT_NORMALIZE_ORTHONORMAL = 1
 };
 
 extern void F_FUNC(dcosti,DCOSTI)(int*,double*);
@@ -25,50 +25,50 @@
 extern void F_FUNC(cosqf,COSQF)(int*,float*,float*);
 
 GEN_CACHE(dct1,(int n)
-	  ,double* wsave;
-	  ,(caches_dct1[i].n==n)
-	  ,caches_dct1[id].wsave = (double*)malloc(sizeof(double)*(3*n+15));
-	   F_FUNC(dcosti,DCOSTI)(&n,caches_dct1[id].wsave);
-	  ,free(caches_dct1[id].wsave);
-	  ,10)
+      ,double* wsave;
+      ,(caches_dct1[i].n==n)
+      ,caches_dct1[id].wsave = (double*)malloc(sizeof(double)*(3*n+15));
+       F_FUNC(dcosti,DCOSTI)(&n,caches_dct1[id].wsave);
+      ,free(caches_dct1[id].wsave);
+      ,10)
 
 GEN_CACHE(dct2,(int n)
-	  ,double* wsave;
-	  ,(caches_dct2[i].n==n)
-	  ,caches_dct2[id].wsave = (double*)malloc(sizeof(double)*(3*n+15));
-	   F_FUNC(dcosqi,DCOSQI)(&n,caches_dct2[id].wsave);
-	  ,free(caches_dct2[id].wsave);
-	  ,10)
+      ,double* wsave;
+      ,(caches_dct2[i].n==n)
+      ,caches_dct2[id].wsave = (double*)malloc(sizeof(double)*(3*n+15));
+       F_FUNC(dcosqi,DCOSQI)(&n,caches_dct2[id].wsave);
+      ,free(caches_dct2[id].wsave);
+      ,10)
 
 GEN_CACHE(fdct1,(int n)
-	  ,float* wsave;
-	  ,(caches_fdct1[i].n==n)
-	  ,caches_fdct1[id].wsave = (float*)malloc(sizeof(float)*(3*n+15));
-	   F_FUNC(costi,COSTI)(&n,caches_fdct1[id].wsave);
-	  ,free(caches_fdct1[id].wsave);
-	  ,10)
+      ,float* wsave;
+      ,(caches_fdct1[i].n==n)
+      ,caches_fdct1[id].wsave = (float*)malloc(sizeof(float)*(3*n+15));
+       F_FUNC(costi,COSTI)(&n,caches_fdct1[id].wsave);
+      ,free(caches_fdct1[id].wsave);
+      ,10)
 
 GEN_CACHE(fdct2,(int n)
-	  ,float* wsave;
-	  ,(caches_fdct2[i].n==n)
-	  ,caches_fdct2[id].wsave = (float*)malloc(sizeof(float)*(3*n+15));
-	   F_FUNC(cosqi,DCOSQI)(&n,caches_fdct2[id].wsave);
-	  ,free(caches_fdct2[id].wsave);
-	  ,10)
+      ,float* wsave;
+      ,(caches_fdct2[i].n==n)
+      ,caches_fdct2[id].wsave = (float*)malloc(sizeof(float)*(3*n+15));
+       F_FUNC(cosqi,DCOSQI)(&n,caches_fdct2[id].wsave);
+      ,free(caches_fdct2[id].wsave);
+      ,10)
 
 void dct1(double * inout, int n, int howmany, int normalize)
 {
-	int i;
-	double *ptr = inout;
-	double *wsave = NULL;
+    int i;
+    double *ptr = inout;
+    double *wsave = NULL;
 
-	wsave = caches_dct1[get_cache_id_dct1(n)].wsave;
+    wsave = caches_dct1[get_cache_id_dct1(n)].wsave;
 
     for (i = 0; i < howmany; ++i, ptr += n) {
         dcost_(&n, (double*)(ptr), wsave);
     }
 
-	if (normalize) {
+    if (normalize) {
         fprintf(stderr, "dct1: normalize not yet supported=%d\n",
                 normalize);
     } else {
@@ -84,12 +84,12 @@
 
 void dct2(double * inout, int n, int howmany, int normalize)
 {
-	int i, j;
-	double *ptr = inout;
-	double *wsave = NULL;
-	double n1, n2;
+    int i, j;
+    double *ptr = inout;
+    double *wsave = NULL;
+    double n1, n2;
 
-	wsave = caches_dct2[get_cache_id_dct2(n)].wsave;
+    wsave = caches_dct2[get_cache_id_dct2(n)].wsave;
 
     for (i = 0; i < howmany; ++i, ptr += n) {
         dcosqb_(&n, (double *) (ptr), wsave);
@@ -129,11 +129,11 @@
 
 void fdct1(float * inout, int n, int howmany, int normalize)
 {
-	int i;
-	float *ptr = inout;
-	float *wsave = NULL;
+    int i;
+    float *ptr = inout;
+    float *wsave = NULL;
 
-	wsave = caches_fdct1[get_cache_id_fdct1(n)].wsave;
+    wsave = caches_fdct1[get_cache_id_fdct1(n)].wsave;
 
     for (i = 0; i < howmany; ++i, ptr += n) {
         cost_(&n, (float*)(ptr), wsave);
@@ -155,12 +155,12 @@
 
 void fdct2(float * inout, int n, int howmany, int normalize)
 {
-	int i, j;
-	float *ptr = inout;
-	float *wsave = NULL;
-	float n1, n2;
+    int i, j;
+    float *ptr = inout;
+    float *wsave = NULL;
+    float n1, n2;
 
-	wsave = caches_fdct2[get_cache_id_fdct2(n)].wsave;
+    wsave = caches_fdct2[get_cache_id_fdct2(n)].wsave;
 
     for (i = 0; i < howmany; ++i, ptr += n) {
         cosqb_(&n, (float *) (ptr), wsave);



More information about the Scipy-svn mailing list