vp9_dsubexp: replace some divides with shifts
Change-Id: I24e10c37ea8f06600cd04b43512efa6170e23e5c
This commit is contained in:
parent
5609858785
commit
bd7162269f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user