diff options
author | jofret | 2009-04-23 06:42:40 +0000 |
---|---|---|
committer | jofret | 2009-04-23 06:42:40 +0000 |
commit | ec299e68a36ea293f9d76352411c3ec2c00cf5ce (patch) | |
tree | 7965518c3691d6d51bcf89fae0020db694215b8e /src | |
parent | 615a03cddae90617504d9bcb1a2d23c3f46b2aca (diff) | |
download | scilab2c-ec299e68a36ea293f9d76352411c3ec2c00cf5ce.tar.gz scilab2c-ec299e68a36ea293f9d76352411c3ec2c00cf5ce.tar.bz2 scilab2c-ec299e68a36ea293f9d76352411c3ec2c00cf5ce.zip |
Force compiler to see this as double without a cast.
Diffstat (limited to 'src')
-rw-r--r-- | src/signalProcessing/ifft/zifftma.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/signalProcessing/ifft/zifftma.c b/src/signalProcessing/ifft/zifftma.c index 1ad7c461..63f91a0c 100644 --- a/src/signalProcessing/ifft/zifftma.c +++ b/src/signalProcessing/ifft/zifftma.c @@ -51,12 +51,12 @@ void zifftma ( doubleComplex* in , int rows, int cols, doubleComplex* out) if ( rows == 1 || cols == 1 ) { - sizeTemp = (int) pow ( double(2) , (int ) (log(double( size + 0.5) ) /log ( double(2) ))) ; + sizeTemp = (int) pow(2.0 , log(size + 0.5) / log(2.0)) ; if ( size == sizeTemp ) { - if ( size <= pow ( double(2) , double(15) )) + if ( size <= pow(2.0, 15.0)) { ifft842 ( inCopy , size , 1 ); choosenAlgo = IFFT842 ; @@ -77,12 +77,12 @@ void zifftma ( doubleComplex* in , int rows, int cols, doubleComplex* out) else { - 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) ))) ; + rowsTemp = (int) pow(2.0, log(rows + 0.5) / log(2.0)); + colsTemp = (int) pow(2.0, log(cols + 0.5) / log(2.0)); - if ( rows == rowsTemp) + if (rows == rowsTemp) { - if ( rows <= pow (double(2) , 15 )) + if (rows <= pow(2.0, 15.0)) { for ( i = 0 ; i < cols ; i++ ) { @@ -106,7 +106,7 @@ void zifftma ( doubleComplex* in , int rows, int cols, doubleComplex* out) /*second call*/ if ( colsTemp == cols ) { - if ( cols <= pow ( double(2) ,15) ) + if ( cols <= pow(2.0, 15.0) ) { /*compute the fft on each line of the matrix */ for (i = 0 ; i < rows ; i++ ) |