Revision fd735e4b

View differences:

libavutil/internal.h
190 190
{
191 191
    int ret=0;
192 192
    int s;
193
    int ret_sq=0;
194 193

  
195 194
    if(a<128) return ff_sqrt_tab[a];
196 195

  
197 196
    for(s=15; s>=0; s--){
198
        int b= ret_sq + (1<<(s*2)) + (ret<<s)*2;
197
        int b= (1<<(s*2)) + (ret<<s)*2;
199 198
        if(b<=a){
200
            ret_sq=b;
199
            a-=b;
201 200
            ret+= 1<<s;
202 201
        }
203 202
    }

Also available in: Unified diff