ref: 95dc082168f8e81b036e8cbe6c3eae369afd5f5e
parent: b49de21d74050c08b51032fc6c707b140f6fefe8
parent: bd7162269feefa15679f571c220060ebf39895b1
author: James Zern <[email protected]>
date: Wed Jul 1 21:51:24 EDT 2015
Merge "vp9_dsubexp: replace some divides with shifts"
--- a/vp9/decoder/vp9_dsubexp.c
+++ b/vp9/decoder/vp9_dsubexp.c
@@ -18,7 +18,7 @@
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) {