Commit f74c55eb authored by Deb Mukherjee's avatar Deb Mukherjee
Browse files

Minor optimization in mv entropy adaptation

Adds a check to exit from the increment_nmv_count function when the
increment is 0.

Change-Id: I99c1e342d351f7800e23590f9c2419881bf1d708
parent a28139c8
...@@ -138,6 +138,7 @@ static void increment_nmv_component(int v, ...@@ -138,6 +138,7 @@ static void increment_nmv_component(int v,
int incr, int incr,
int usehp) { int usehp) {
int s, z, c, o, d, e, f; int s, z, c, o, d, e, f;
if (!incr) return;
assert (v != 0); /* should not be zero */ assert (v != 0); /* should not be zero */
s = v < 0; s = v < 0;
mvcomp->sign[s] += incr; mvcomp->sign[s] += incr;
......
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