mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-11-10 04:37:37 +01:00
rtl_power: MSVC 2010 doesn't have log2()
Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
parent
7855c7c876
commit
3ab6fffbdd
@ -219,6 +219,13 @@ int cic_9_tables[][10] = {
|
||||
{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
|
||||
http://www.jjj.de/fft/fftpage.html
|
||||
16 bit ints for everything
|
||||
|
Loading…
Reference in New Issue
Block a user