summaryrefslogtreecommitdiff
path: root/libavcodec/cabac.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-10-08 13:20:22 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-10-08 13:20:22 +0000
commit260ceb632295f7cea1248ed062e9ac95641edf27 (patch)
tree65e24c8fc44b1d5f8b2f9d2eaad7f389209eaa88 /libavcodec/cabac.c
parent99ce10873df41ba650e51c8069280a32a1f57961 (diff)
branchless renormalization (1% faster get_cabac) old branchless renormalization wasnt faster because gcc was scared of the shift variable (missusing bit variable now)
Originally committed as revision 6587 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cabac.c')
-rw-r--r--libavcodec/cabac.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c
index 8dd00a3cd9..f724dd5368 100644
--- a/libavcodec/cabac.c
+++ b/libavcodec/cabac.c
@@ -73,22 +73,22 @@ const uint8_t ff_h264_lps_state[64]= {
};
const uint8_t ff_h264_norm_shift[256]= {
- 8,7,6,6,5,5,5,5,4,4,4,4,4,4,4,4,
+ 9,8,7,7,6,6,6,6,5,5,5,5,5,5,5,5,
+ 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
+ 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
+ 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
+ 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
+ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
+ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
+ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
+ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1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