Mercurial > libavutil.hg
changeset 333:893380ba2425 libavutil
simplify
author | michael |
---|---|
date | Fri, 04 May 2007 21:22:43 +0000 |
parents | 88e453a0975d |
children | d4ccc9609aa9 |
files | internal.h |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/internal.h Fri Apr 27 20:22:01 2007 +0000 +++ b/internal.h Fri May 04 21:22:43 2007 +0000 @@ -190,14 +190,13 @@ { 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; } }