summaryrefslogtreecommitdiffstats
path: root/third_party/aom/aom_dsp/entdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/aom/aom_dsp/entdec.c')
-rw-r--r--third_party/aom/aom_dsp/entdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/third_party/aom/aom_dsp/entdec.c b/third_party/aom/aom_dsp/entdec.c
index b8e9078c3..d1764c47b 100644
--- a/third_party/aom/aom_dsp/entdec.c
+++ b/third_party/aom/aom_dsp/entdec.c
@@ -112,6 +112,7 @@ static int od_ec_dec_normalize(od_ec_dec *dec, od_ec_window dif, unsigned rng,
int ret) {
int d;
assert(rng <= 65535U);
+ // The number of leading zeros in the 16-bit binary representation of rng.
d = 16 - OD_ILOG_NZ(rng);
dec->cnt -= d;
/*This is equivalent to shifting in 1's instead of 0's.*/