remove deprecated 'register' keyword

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

Change-Id: Iadce5e2b974c707799fa939f3ff1c420fb79a871
This commit is contained in:
Johann 2018-02-20 14:49:02 -08:00
parent 93da1ba2dc
commit c1435e321c
4 changed files with 4 additions and 4 deletions

View 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;

View 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)

View 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;

View 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);