]> granicus.if.org Git - libvpx/commitdiff
Add inline to mod_index()
authorJingning Han <jingning@google.com>
Fri, 17 Aug 2018 16:07:34 +0000 (09:07 -0700)
committerJames Zern <jzern@google.com>
Fri, 17 Aug 2018 21:50:56 +0000 (21:50 +0000)
Change-Id: I97c03e8d7c0907e728dc183f47564f206388118b

vp9/encoder/vp9_temporal_filter.c

index 4b28af15ca41ca6c0d3dee89e1c134b96718c17d..ee4c1d059aee88fd6425a6f15dfbcfc7778a96aa 100644 (file)
@@ -94,8 +94,8 @@ void vp9_temporal_filter_init(void) {
   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;