summaryrefslogtreecommitdiffstats
path: root/noatun/library
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:37 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 23:52:44 +0900
commit0c9e076a4ab62782b73ac09fb45fd9da0df19aec (patch)
tree93c54de885a10fdfb44b39fee0972aa9b394e8d9 /noatun/library
parente51ec3eaa1902878a55ad0ca8ed50f6c5662d352 (diff)
downloadtdemultimedia-0c9e076a4ab62782b73ac09fb45fd9da0df19aec.tar.gz
tdemultimedia-0c9e076a4ab62782b73ac09fb45fd9da0df19aec.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 6db8697910438fd063598f66a73b68d2dcd70a36)
Diffstat (limited to 'noatun/library')
-rw-r--r--noatun/library/conversion.cpp2
-rw-r--r--noatun/library/noatunarts/Equalizer_impl.cpp12
-rw-r--r--noatun/library/noatunarts/StereoVolumeControl_impl.cpp12
3 files changed, 13 insertions, 13 deletions
diff --git a/noatun/library/conversion.cpp b/noatun/library/conversion.cpp
index 791b5554..dbbf5b09 100644
--- a/noatun/library/conversion.cpp
+++ b/noatun/library/conversion.cpp
@@ -136,7 +136,7 @@ void swapEndian(unsigned long length, char *buffer)
#else
while (length--)
{
- register char c=*(buffer+1);
+ char c=*(buffer+1);
*(buffer+1)=*buffer;
*(buffer)=c;
buffer++; buffer++;
diff --git a/noatun/library/noatunarts/Equalizer_impl.cpp b/noatun/library/noatunarts/Equalizer_impl.cpp
index 9914842a..552c3f91 100644
--- a/noatun/library/noatunarts/Equalizer_impl.cpp
+++ b/noatun/library/noatunarts/Equalizer_impl.cpp
@@ -209,11 +209,11 @@ public:
mBufferLength = samples;
}
- register float *buffer=mBuffer;
- register float *bufferEnd=buffer+samples;
+ float *buffer=mBuffer;
+ float *bufferEnd=buffer+samples;
while (level<end)
{
- register float *buffIter, *outIter;
+ float *buffIter, *outIter;
float levelAndIntensity=*level * intensity;
BandPass(leftBand, outleft, buffer, samples);
@@ -415,11 +415,11 @@ public:
float *end=&mLevels.back();
float intensity=1.0/(float)mLevels.size();
- register float *buffer=new float[samples];
- register float *bufferEnd=buffer+samples;
+ float *buffer=new float[samples];
+ float *bufferEnd=buffer+samples;
while (level<end)
{
- register float *buffIter, *outIter;
+ float *buffIter, *outIter;
float levelAndIntensity=*level * intensity;
BandPassSSE(leftBand, outleft, buffer, samples);
diff --git a/noatun/library/noatunarts/StereoVolumeControl_impl.cpp b/noatun/library/noatunarts/StereoVolumeControl_impl.cpp
index 88f33c8f..c0019ede 100644
--- a/noatun/library/noatunarts/StereoVolumeControl_impl.cpp
+++ b/noatun/library/noatunarts/StereoVolumeControl_impl.cpp
@@ -28,16 +28,16 @@ public:
void calculateBlock(unsigned long samples)
{
- register float *left=inleft;
- register float *right=inright;
- register float *oleft=outleft;
- register float *oright=outright;
+ float *left=inleft;
+ float *right=inright;
+ float *oleft=outleft;
+ float *oright=outright;
level = *right + *left;
- register float p=mPercent;
+ float p=mPercent;
- register float *end=left+samples;
+ float *end=left+samples;
while (left<end)
{