diff options
Diffstat (limited to 'src/signalProcessing/fft')
-rw-r--r-- | src/signalProcessing/fft/dfftmx.c | 2 | ||||
-rw-r--r-- | src/signalProcessing/fft/r8tx.c | 4 | ||||
-rw-r--r-- | src/signalProcessing/fft/zfftma.c | 12 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/signalProcessing/fft/dfftmx.c b/src/signalProcessing/fft/dfftmx.c index 27061b91..f7d6ce30 100644 --- a/src/signalProcessing/fft/dfftmx.c +++ b/src/signalProcessing/fft/dfftmx.c @@ -141,7 +141,7 @@ int dfftmx ( double* _pdblA , double* _pdblB , int _iNtot, int _iN, int _iNspan, inc = abs ( isn ) ; nt = inc*ntot ; ks = inc*nspan; - rad = atan(1); + rad = atan((double)1); c72 = cos (rad/0.6250); s72 = sin (rad/0.6250); s120= sqrt(0.750); diff --git a/src/signalProcessing/fft/r8tx.c b/src/signalProcessing/fft/r8tx.c index bafb4698..5f6628b3 100644 --- a/src/signalProcessing/fft/r8tx.c +++ b/src/signalProcessing/fft/r8tx.c @@ -30,8 +30,8 @@ void r8tx ( int nxtlt,int nthpo,int lengt, int j , kk; - double dblP7 = 1 / sqrt (2) ; - double dblPi2 = 8 * atan (1); + double dblP7 = 1 / sqrt (double(2)) ; + double dblPi2 = 8 * atan (double(1)); double scale, arg; double c1,c2,c3,c4,c5,c6,c7; diff --git a/src/signalProcessing/fft/zfftma.c b/src/signalProcessing/fft/zfftma.c index 56f13d2d..b126a0f3 100644 --- a/src/signalProcessing/fft/zfftma.c +++ b/src/signalProcessing/fft/zfftma.c @@ -48,10 +48,10 @@ void zfftma ( doubleComplex* in , int rows, int cols, doubleComplex* out) if ( rows == 1 || cols == 1 ) { - sizeTemp = (int) pow ( 2 , (int ) (log( size + 0.5 ) /log ( 2 ))) ; + sizeTemp = (int) pow ( double(2) , (int ) (log(double(size + 0.5) ) /log ( double(2) ))) ; if ( size == sizeTemp ) { - if ( size <= pow ( 2 , 15 )) + if ( size <= pow ( double(2) , double(15) )) { fft842 ( inCopy , size , 0 ); choosenAlgo = FFT842 ; @@ -68,12 +68,12 @@ void zfftma ( doubleComplex* in , int rows, int cols, doubleComplex* out) } else { - rowsTemp = (int) pow ( 2 ,(int ) (log( rows + 0.5) /log ( 2 ))) ; - colsTemp = (int) pow ( 2 ,(int ) (log( cols + 0.5) /log ( 2 ))) ; + rowsTemp = (int) pow ( (double)2 ,(int ) (log( double(rows + 0.5)) /log ( double(2) ))) ; + colsTemp = (int) pow ( (double)2 ,(int ) (log( double(cols + 0.5)) /log ( double(2) ))) ; if ( rows == rowsTemp) { - if ( rows <= pow ( 2 , 15 )) + if ( rows <= pow ((double) 2 , (double)15 )) { for ( i = 0 ; i < cols ; i++ ) { @@ -105,7 +105,7 @@ void zfftma ( doubleComplex* in , int rows, int cols, doubleComplex* out) /*second call*/ if ( colsTemp == cols ) { - if ( cols <= pow ( 2 ,15) ) + if ( cols <= pow ( (double)2 ,(double)15) ) { /*compute the fft on each line of the matrix */ for (i = 0 ; i < rows ; i++ ) |