You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	swresample/resample: manually unroll the main loop in bessel()
About 10% faster Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
		| @@ -51,11 +51,13 @@ static double bessel(double x){ | ||||
|     x= x*x/4; | ||||
|     t = x; | ||||
|     v = 1 + x; | ||||
|     for(i=1; v != lastv; i++){ | ||||
|         lastv=v; | ||||
|     for(i=1; v != lastv; i+=2){ | ||||
|         t *= x*inv[i]; | ||||
|         v += t; | ||||
|         av_assert2(i<99); | ||||
|         lastv=v; | ||||
|         t *= x*inv[i + 1]; | ||||
|         v += t; | ||||
|         av_assert2(i<98); | ||||
|     } | ||||
|     return v; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user