From: James Zern Date: Wed, 1 Jul 2015 03:09:00 +0000 (-0700) Subject: vp9_dsubexp: replace some divides with shifts X-Git-Tag: v1.5.0~505^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd7162269feefa15679f571c220060ebf39895b1;p=libvpx vp9_dsubexp: replace some divides with shifts Change-Id: I24e10c37ea8f06600cd04b43512efa6170e23e5c --- diff --git a/vp9/decoder/vp9_dsubexp.c b/vp9/decoder/vp9_dsubexp.c index 470e4c1ed..b33c3b718 100644 --- a/vp9/decoder/vp9_dsubexp.c +++ b/vp9/decoder/vp9_dsubexp.c @@ -18,7 +18,7 @@ static int inv_recenter_nonneg(int v, int m) { if (v > 2 * m) 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) {