remove deprecated 'register' keyword
authorJohann <johannkoenig@google.com>
Tue, 20 Feb 2018 22:49:02 +0000 (14:49 -0800)
committerJohann <johannkoenig@google.com>
Tue, 20 Feb 2018 22:49:02 +0000 (14:49 -0800)
Will be removed in C++17:
http://en.cppreference.com/w/cpp/language/storage_duration

Change-Id: Iadce5e2b974c707799fa939f3ff1c420fb79a871

vp8/decoder/dboolhuff.h
vp8/encoder/boolhuff.h
vpx_dsp/bitreader.h
vpx_dsp/bitwriter.h

index 04c027c..9c529f2 100644 (file)
@@ -76,7 +76,7 @@ static int vp8dx_decode_bool(BOOL_DECODER *br, int probability) {
   }
 
   {
-    register int shift = vp8_norm[range];
+    const int shift = vp8_norm[range];
     range <<= shift;
     value <<= shift;
     count -= shift;
index 1593f23..3c5775f 100644 (file)
@@ -61,7 +61,7 @@ static void vp8_encode_bool(BOOL_CODER *br, int bit, int probability) {
   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)
index 6ee2a58..16272ae 100644 (file)
@@ -94,7 +94,7 @@ static INLINE int vpx_read(vpx_reader *r, int prob) {
   }
 
   {
-    register int shift = vpx_norm[range];
+    const int shift = vpx_norm[range];
     range <<= shift;
     value <<= shift;
     count -= shift;
index 41040cf..e63092a 100644 (file)
@@ -35,7 +35,7 @@ static INLINE void vpx_write(vpx_writer *br, int bit, int probability) {
   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);