Commit 0a5f09fe authored by vitor's avatar vitor

Simplify t_sqrt()

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13918 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 042ea20e
...@@ -61,13 +61,13 @@ static int ra144_decode_init(AVCodecContext * avctx) ...@@ -61,13 +61,13 @@ static int ra144_decode_init(AVCodecContext * avctx)
*/ */
static int t_sqrt(unsigned int x) static int t_sqrt(unsigned int x)
{ {
int s = 0; int s = 2;
while (x > 0xfff) { while (x > 0xfff) {
s++; s++;
x = x >> 2; x = x >> 2;
} }
return (ff_sqrt(x << 20) << s) << 2; return ff_sqrt(x << 20) << s;
} }
/** /**
......
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