shithub: sox

Download patch

ref: 7bbcb9d7527e4f0069ce79a8fb29c86cb10b1618
parent: 539ce7d60ccd73fc8ff6465e686a031b15bab199
author: jching <jching>
date: Mon Aug 29 16:37:22 EDT 2005

Don't use inline keyword to be compatible with C89.

--- a/src/FFT.c
+++ b/src/FFT.c
@@ -112,13 +112,8 @@
    }
 }
 
-inline int FastReverseBits(int i, int NumBits)
-{
-   if (NumBits <= MaxFastBits)
-      return gFFTBitTable[NumBits - 1][i];
-   else
-      return ReverseBits(i, NumBits);
-}
+#define FastReverseBits(i, NumBits) \
+   (NumBits <= MaxFastBits) ? gFFTBitTable[NumBits - 1][i] : ReverseBits(i, NumBits)
 
 /*
  * Complex Fast Fourier Transform