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:
Michael Niedermayer 2007-03-22 00:52:49 +00:00
parent 14f887efc6
commit 50df67d3b5
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}