mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
optimize bessel function instead of trusting gcc to do trivial optimizations (as gcc doesnt ...)
Originally committed as revision 8474 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
14f887efc6
commit
50df67d3b5
@ -71,9 +71,10 @@ static double bessel(double x){
|
||||
double t=1;
|
||||
int i;
|
||||
|
||||
x= x*x/4;
|
||||
for(i=1; i<50; i++){
|
||||
t *= i;
|
||||
v += pow(x*x/4, i)/(t*t);
|
||||
t *= x/(i*i);
|
||||
v += t;
|
||||
}
|
||||
return v;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user