diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-05-04 21:22:43 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-05-04 21:22:43 +0000 |
commit | fd735e4b77a2e973b890c328805ee029dfe4b318 (patch) | |
tree | 5e93ce9b7185c2c0c5d0d315d4e8373cbea83f96 /libavutil | |
parent | e300ab4ed2373d3485bf8529699f00c9c9d9495f (diff) | |
download | ffmpeg-streaming-fd735e4b77a2e973b890c328805ee029dfe4b318.zip ffmpeg-streaming-fd735e4b77a2e973b890c328805ee029dfe4b318.tar.gz |
simplify
Originally committed as revision 8890 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/internal.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h index 9856ca1..244e3c0 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -190,14 +190,13 @@ static inline int ff_sqrt(int a) { int ret=0; int s; - int ret_sq=0; if(a<128) return ff_sqrt_tab[a]; for(s=15; s>=0; s--){ - int b= ret_sq + (1<<(s*2)) + (ret<<s)*2; + int b= (1<<(s*2)) + (ret<<s)*2; if(b<=a){ - ret_sq=b; + a-=b; ret+= 1<<s; } } |