From 8269d6d9e5165bb82495ecc99a527b11aaf24680 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Jan 2020 20:17:40 +0900 Subject: Removed explicit usage of the 'register' keyword. Signed-off-by: Michele Calgaro (cherry picked from commit 57ef93c0c479addaa00d9a0cb9ba627dc8599fc5) --- noatun-plugins/tippercanoe/core.cpp | 4 ++-- noatun-plugins/tippercanoe/sdlwrap.cpp | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'noatun-plugins/tippercanoe') diff --git a/noatun-plugins/tippercanoe/core.cpp b/noatun-plugins/tippercanoe/core.cpp index 0fb6fa2..8d1f155 100644 --- a/noatun-plugins/tippercanoe/core.cpp +++ b/noatun-plugins/tippercanoe/core.cpp @@ -115,7 +115,7 @@ inline void Core::addPixelFast(unsigned char *p,int br1,int br2) void Core::fadeFade() { - register unsigned long *ptr = (unsigned long*)output(); + unsigned long *ptr = (unsigned long*)output(); int i = outWidth*outHeight*2/4; do { //Bytewize version was: *(ptr++) -= *ptr+(*ptr>>1)>>4; @@ -303,7 +303,7 @@ bool Core::calculate() int clarity[NumSamples]; //Surround sound int i,j,k; #ifndef LITTLEENDIAN - register sampleType temp; + sampleType temp; #endif int brightFactor = int(Brightness * brightnessTwiddler /(starSize+0.01)); diff --git a/noatun-plugins/tippercanoe/sdlwrap.cpp b/noatun-plugins/tippercanoe/sdlwrap.cpp index 7449aec..0ca2f4e 100644 --- a/noatun-plugins/tippercanoe/sdlwrap.cpp +++ b/noatun-plugins/tippercanoe/sdlwrap.cpp @@ -142,19 +142,19 @@ int SdlScreen::sizeUpdate(void) { return 0; } void SdlScreen::show(void) { SDL_LockSurface(surface); - register unsigned long *ptr2 = (unsigned long*)core->output(); + unsigned long *ptr2 = (unsigned long*)core->output(); unsigned long *ptr1 = (unsigned long*)( surface->pixels ); int i = core->outWidth*core->outHeight/4; do { // Asger Alstrup Nielsen's (alstrup@diku.dk) // optimized 32 bit screen loop - register unsigned int const r1 = *(ptr2++); - register unsigned int const r2 = *(ptr2++); + unsigned int const r1 = *(ptr2++); + unsigned int const r2 = *(ptr2++); //if (r1 || r2) { #ifdef LITTLEENDIAN - register unsigned int const v = + unsigned int const v = ((r1 & 0x000000f0ul) >> 4) | ((r1 & 0x0000f000ul) >> 8) | ((r1 & 0x00f00000ul) >> 12) @@ -165,7 +165,7 @@ void SdlScreen::show(void) { | ((r2 & 0x00f00000ul) << 4) | ((r2 & 0xf0000000ul))); #else - register unsigned int const v = + unsigned int const v = ((r2 & 0x000000f0ul) >> 4) | ((r2 & 0x0000f000ul) >> 8) | ((r2 & 0x00f00000ul) >> 12) -- cgit v1.2.1