shithub: libvpx

Download patch

ref: 98efa1c43f5fec025dc48b8bd63b6d15f2cd6498
parent: 5226940ef2ae65ea324c82859557ebb39b023bae
author: Jingning Han <jingning@google.com>
date: Fri Aug 17 05:07:34 EDT 2018

Add inline to mod_index()

Change-Id: I97c03e8d7c0907e728dc183f47564f206388118b

--- a/vp9/encoder/vp9_temporal_filter.c
+++ b/vp9/encoder/vp9_temporal_filter.c
@@ -94,8 +94,8 @@
   for (i = 1; i < 512; ++i) fixed_divide[i] = 0x80000 / i;
 }
 
-static int mod_index(int sum_dist, int index, int rounding, int strength,
-                     int filter_weight) {
+static INLINE int mod_index(int sum_dist, int index, int rounding, int strength,
+                            int filter_weight) {
   int mod = (sum_dist * 3) / index;
   mod += rounding;
   mod >>= strength;