Merge pull request #13 from arielelkin/remove-register-keyword

remove register keyword
This commit is contained in:
garyscavone
2014-04-07 10:01:19 -04:00
6 changed files with 11 additions and 11 deletions

View File

@@ -73,7 +73,7 @@ class BeeThree : public FM
inline StkFloat BeeThree :: tick( unsigned int ) inline StkFloat BeeThree :: tick( unsigned int )
{ {
register StkFloat temp; StkFloat temp;
if ( modDepth_ > 0.0 ) { if ( modDepth_ > 0.0 ) {
temp = 1.0 + ( modDepth_ * vibrato_.tick() * 0.1 ); temp = 1.0 + ( modDepth_ * vibrato_.tick() * 0.1 );

View File

@@ -80,7 +80,7 @@ class FMVoices : public FM
inline StkFloat FMVoices :: tick( unsigned int ) inline StkFloat FMVoices :: tick( unsigned int )
{ {
register StkFloat temp, temp2; StkFloat temp, temp2;
temp = gains_[3] * adsr_[3]->tick() * waves_[3]->tick(); temp = gains_[3] * adsr_[3]->tick() * waves_[3]->tick();
temp2 = vibrato_.tick() * modDepth_ * 0.1; temp2 = vibrato_.tick() * modDepth_ * 0.1;

View File

@@ -69,7 +69,7 @@ class HevyMetl : public FM
inline StkFloat HevyMetl :: tick( unsigned int ) inline StkFloat HevyMetl :: tick( unsigned int )
{ {
register StkFloat temp; StkFloat temp;
temp = vibrato_.tick() * modDepth_ * 0.2; temp = vibrato_.tick() * modDepth_ * 0.2;
waves_[0]->setFrequency(baseFrequency_ * (1.0 + temp) * ratios_[0]); waves_[0]->setFrequency(baseFrequency_ * (1.0 + temp) * ratios_[0]);

View File

@@ -70,7 +70,7 @@ class PercFlut : public FM
inline StkFloat PercFlut :: tick( unsigned int ) inline StkFloat PercFlut :: tick( unsigned int )
{ {
register StkFloat temp; StkFloat temp;
temp = vibrato_.tick() * modDepth_ * 0.2; temp = vibrato_.tick() * modDepth_ * 0.2;
waves_[0]->setFrequency(baseFrequency_ * (1.0 + temp) * ratios_[0]); waves_[0]->setFrequency(baseFrequency_ * (1.0 + temp) * ratios_[0]);

View File

@@ -61,19 +61,19 @@ void Delay :: setDelay( unsigned long delay )
StkFloat Delay :: energy( void ) const StkFloat Delay :: energy( void ) const
{ {
unsigned long i; unsigned long i;
register StkFloat e = 0; StkFloat e = 0;
if ( inPoint_ >= outPoint_ ) { if ( inPoint_ >= outPoint_ ) {
for ( i=outPoint_; i<inPoint_; i++ ) { for ( i=outPoint_; i<inPoint_; i++ ) {
register StkFloat t = inputs_[i]; StkFloat t = inputs_[i];
e += t*t; e += t*t;
} }
} else { } else {
for ( i=outPoint_; i<inputs_.size(); i++ ) { for ( i=outPoint_; i<inputs_.size(); i++ ) {
register StkFloat t = inputs_[i]; StkFloat t = inputs_[i];
e += t*t; e += t*t;
} }
for ( i=0; i<inPoint_; i++ ) { for ( i=0; i<inPoint_; i++ ) {
register StkFloat t = inputs_[i]; StkFloat t = inputs_[i];
e += t*t; e += t*t;
} }
} }

View File

@@ -125,7 +125,7 @@ void Stk :: setRawwavePath( std::string path )
void Stk :: swap16(unsigned char *ptr) void Stk :: swap16(unsigned char *ptr)
{ {
register unsigned char val; unsigned char val;
// Swap 1st and 2nd bytes // Swap 1st and 2nd bytes
val = *(ptr); val = *(ptr);
@@ -135,7 +135,7 @@ void Stk :: swap16(unsigned char *ptr)
void Stk :: swap32(unsigned char *ptr) void Stk :: swap32(unsigned char *ptr)
{ {
register unsigned char val; unsigned char val;
// Swap 1st and 4th bytes // Swap 1st and 4th bytes
val = *(ptr); val = *(ptr);
@@ -151,7 +151,7 @@ void Stk :: swap32(unsigned char *ptr)
void Stk :: swap64(unsigned char *ptr) void Stk :: swap64(unsigned char *ptr)
{ {
register unsigned char val; unsigned char val;
// Swap 1st and 8th bytes // Swap 1st and 8th bytes
val = *(ptr); val = *(ptr);