diff options
Diffstat (limited to 'src/signalProcessing/ifft/difftmx.c')
-rw-r--r-- | src/signalProcessing/ifft/difftmx.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/signalProcessing/ifft/difftmx.c b/src/signalProcessing/ifft/difftmx.c index 29604c49..a4aef2d4 100644 --- a/src/signalProcessing/ifft/difftmx.c +++ b/src/signalProcessing/ifft/difftmx.c @@ -10,6 +10,7 @@ * */ +#include <stdlib.h> #include <math.h> #include "max.h" #include "min.h" @@ -110,7 +111,7 @@ static int mulByRotationFactor (void ); static int post_sqFactor2NormlOrder (void); static void single_sqFactor2NormlOrder (void); static int multi_sqFactor2NormlOrder (void); - + /* End Prototypes */ @@ -281,7 +282,7 @@ switch ( nfac[i-1] ) k = nfac[i-1] ; kspnn = kspan ; kspan = kspan / k ; - + factorOf3Transform ( ) ; break ; @@ -301,7 +302,7 @@ switch ( nfac[i-1] ) kspan = kspan / k ; if ( nfac[i-1] != jf) preFOtherTransform ( ) ; - + factorOfOtherTransform ( ) ; break ; } @@ -346,7 +347,7 @@ static void permute_stage2 (void) /*permutation for square-free facotrs of n */ nonSqFactor2NormOrder () ; - + /*determine the permutation cycles of length greater than 1*/ detPermutCycles (); @@ -426,7 +427,7 @@ static int factorOf2Transform (void) kk = k2 + kspan; }while ( kk < nt ); - + k2 = kk - nt; c1 = -c1; kk = k1 - k2; @@ -646,11 +647,11 @@ static void factorOf3Transform (void) a[k1-1] = ak - bj ; b[k1-1] = bk + aj ; a[k2-1] = ak + bj ; - b[k2-1] = bk - aj ; + b[k2-1] = bk - aj ; kk = k2 + kspan ; } while (kk < nn); - + kk -= nn ; }while (kk <= kspan); |