mirror of
				https://github.com/rtlsdrblog/rtl-sdr-blog.git
				synced 2025-10-30 16:38:07 +01:00 
			
		
		
		
	rtl_power: MSVC 2010 doesn't have log2()
Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
		
				
					committed by
					
						 Steve Markgraf
						Steve Markgraf
					
				
			
			
				
	
			
			
			
						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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user