Commit 95dc0821 authored by James Zern's avatar James Zern Committed by Gerrit Code Review

Merge "vp9_dsubexp: replace some divides with shifts"

parents b49de21d bd716226
...@@ -18,7 +18,7 @@ static int inv_recenter_nonneg(int v, int m) { ...@@ -18,7 +18,7 @@ static int inv_recenter_nonneg(int v, int m) {
if (v > 2 * m) if (v > 2 * m)
return v; return v;
return v % 2 ? m - (v + 1) / 2 : m + v / 2; return (v & 1) ? m - ((v + 1) >> 1) : m + (v >> 1);
} }
static int decode_uniform(vp9_reader *r) { static int decode_uniform(vp9_reader *r) {
......
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