shithub: libvpx

Download patch

ref: c1435e321cf7005e8333be8a92e226b87130aa0f
parent: 93da1ba2dc1c8b8af5c266d502fdbafa5dfef55a
author: Johann <[email protected]>
date: Tue Feb 20 09:49:02 EST 2018

remove deprecated 'register' keyword

Will be removed in C++17:
http://en.cppreference.com/w/cpp/language/storage_duration

Change-Id: Iadce5e2b974c707799fa939f3ff1c420fb79a871

--- a/vp8/decoder/dboolhuff.h
+++ b/vp8/decoder/dboolhuff.h
@@ -76,7 +76,7 @@
   }
 
   {
-    register int shift = vp8_norm[range];
+    const int shift = vp8_norm[range];
     range <<= shift;
     value <<= shift;
     count -= shift;
--- a/vp8/encoder/boolhuff.h
+++ b/vp8/encoder/boolhuff.h
@@ -61,7 +61,7 @@
   int count = br->count;
   unsigned int range = br->range;
   unsigned int lowvalue = br->lowvalue;
-  register int shift;
+  int shift;
 
 #ifdef VP8_ENTROPY_STATS
 #if defined(SECTIONBITS_OUTPUT)
--- a/vpx_dsp/bitreader.h
+++ b/vpx_dsp/bitreader.h
@@ -94,7 +94,7 @@
   }
 
   {
-    register int shift = vpx_norm[range];
+    const int shift = vpx_norm[range];
     range <<= shift;
     value <<= shift;
     count -= shift;
--- a/vpx_dsp/bitwriter.h
+++ b/vpx_dsp/bitwriter.h
@@ -35,7 +35,7 @@
   int count = br->count;
   unsigned int range = br->range;
   unsigned int lowvalue = br->lowvalue;
-  register int shift;
+  int shift;
 
   split = 1 + (((range - 1) * probability) >> 8);