Commit 7ce0794b authored by michael's avatar michael

optimize bessel function instead of trusting gcc to do trivial optimizations (as gcc doesnt ...)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8474 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5d748226
...@@ -71,9 +71,10 @@ static double bessel(double x){ ...@@ -71,9 +71,10 @@ static double bessel(double x){
double t=1; double t=1;
int i; int i;
x= x*x/4;
for(i=1; i<50; i++){ for(i=1; i<50; i++){
t *= i; t *= x/(i*i);
v += pow(x*x/4, i)/(t*t); v += t;
} }
return v; return v;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment