rtl_power: MSVC 2010 doesn't have log2()

Signed-off-by: Steve Markgraf <steve@steve-m.de>
master
Kyle Keen 11 years ago committed by Steve Markgraf
parent 7855c7c876
commit 3ab6fffbdd
  1. 7
      src/rtl_power.c

@ -219,6 +219,13 @@ int cic_9_tables[][10] = {
{9, -199, -362, 5303, -25505, 77489, -25505, 5303, -362, -199}, {9, -199, -362, 5303, -25505, 77489, -25505, 5303, -362, -199},
}; };
#ifdef _MSC_VER
double log2(double n)
{
return log(n) / log(2.0);
}
#endif
/* FFT based on fix_fft.c by Roberts, Slaney and Bouras /* FFT based on fix_fft.c by Roberts, Slaney and Bouras
http://www.jjj.de/fft/fftpage.html http://www.jjj.de/fft/fftpage.html
16 bit ints for everything 16 bit ints for everything

Loading…
Cancel
Save