diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-01-31 10:07:22 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-01-31 10:07:22 +0000 |
commit | 801778bc8306e4b58d8c27022aa7903e86a2b040 (patch) | |
tree | 19f9d215a4a2d2bebdd96d1a5c4e715ddebfaeaf | |
parent | d62a0c1e5db1607d3223cc18299e5f7f8f154237 (diff) | |
download | ffmpeg-801778bc8306e4b58d8c27022aa7903e86a2b040.tar.gz |
replace if(x>>b) by if(x>C) as shifts are slow on some cpus and i have my doubts that gcc can replace the shifts as x is signed, it could in theory but well its gcc ...
Originally committed as revision 7776 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/lzo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/lzo.c b/libavcodec/lzo.c index e4a1111b5e..54a34c2bf2 100644 --- a/libavcodec/lzo.c +++ b/libavcodec/lzo.c @@ -184,11 +184,11 @@ int lzo1x_decode(void *out, int *outlen, void *in, int *inlen) { } while (!c.error) { int cnt, back; - if (x >> 4) { - if (x >> 6) { + if (x > 15) { + if (x > 63) { cnt = (x >> 5) - 1; back = (GETB(c) << 3) + ((x >> 2) & 7) + 1; - } else if (x >> 5) { + } else if (x > 31) { cnt = get_len(&c, x, 31); x = GETB(c); back = (GETB(c) << 6) + (x >> 2) + 1; |