summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:54 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 23:52:58 +0900
commit71027a3071af9cb2d9102bb48a60157e490ccdab (patch)
tree1e0ca4ba37c5f59f64e18070ab0778fd24181470
parent9d237f1867465f9f542a77cded282a5d8dc51f09 (diff)
downloadksquirrel-71027a3071af9cb2d9102bb48a60157e490ccdab.tar.gz
ksquirrel-71027a3071af9cb2d9102bb48a60157e490ccdab.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit f71f7a065a8e2b8b39985a3bf2914c3d5f32d4ce)
-rw-r--r--ksquirrel/fmt_filters.cpp22
-rw-r--r--ksquirrel/ksquirrelpart/fmt_filters.cpp22
-rw-r--r--ksquirrel/ksquirrelpart/sq_utils_scale.cpp10
-rw-r--r--ksquirrel/sq_utils_scale.cpp10
4 files changed, 32 insertions, 32 deletions
diff --git a/ksquirrel/fmt_filters.cpp b/ksquirrel/fmt_filters.cpp
index 6496846..9f6222c 100644
--- a/ksquirrel/fmt_filters.cpp
+++ b/ksquirrel/fmt_filters.cpp
@@ -1254,7 +1254,7 @@ void edge(image &im, double radius)
double *kernel;
int width;
- register long i;
+ long i;
rgba *dest = 0;
width = getOptimalKernelWidth(radius, 0.5);
@@ -1298,7 +1298,7 @@ void emboss(image &im, double radius, double sigma)
double alpha, *kernel;
int j, width;
- register long i, u, v;
+ long i, u, v;
rgba *dest = 0;
if(sigma == 0.0)
@@ -1360,7 +1360,7 @@ void sharpen(image &im, double radius, double sigma)
double alpha, normalize, *kernel;
int width;
- register long i, u, v;
+ long i, u, v;
rgba *dest = 0;
if(sigma == 0.0)
@@ -1570,8 +1570,8 @@ static bool convolveImage(image *image, rgba **dest, const unsigned int order,
double red, green, blue;
u8 alpha;
double normalize, *normal_kernel;
- register const double *k;
- register rgba *q;
+ const double *k;
+ rgba *q;
int x, y, mx, my, sx, sy;
long i;
int mcx, mcy;
@@ -1917,7 +1917,7 @@ static u32 generateNoise(u32 pixel, NoiseType noise_type)
}
case PoissonNoise:
{
- register s32
+ s32
i;
for (i=0; alpha > exp(-SigmaPoisson*pixel); i++)
@@ -1959,10 +1959,10 @@ static inline void scaleDown(T &val, T min, T max)
static void blurScanLine(double *kernel, s32 width, rgba *src, rgba *dest, s32 columns)
{
- register double *p;
+ double *p;
rgba *q;
- register s32 x;
- register long i;
+ s32 x;
+ long i;
double red, green, blue, alpha;
double scale = 0.0;
@@ -2123,7 +2123,7 @@ static s32 getBlurKernel(s32 width, double sigma, double **kernel)
#define KernelRankQ 18.0
double alpha, normalize;
- register long i;
+ long i;
s32 bias;
if(sigma == 0.0)
@@ -2256,7 +2256,7 @@ static int getOptimalKernelWidth(double radius, double sigma)
{
double normalize, value;
long width;
- register long u;
+ long u;
if(sigma == 0.0)
sigma = 0.01;
diff --git a/ksquirrel/ksquirrelpart/fmt_filters.cpp b/ksquirrel/ksquirrelpart/fmt_filters.cpp
index 60e5278..860cdeb 100644
--- a/ksquirrel/ksquirrelpart/fmt_filters.cpp
+++ b/ksquirrel/ksquirrelpart/fmt_filters.cpp
@@ -1253,7 +1253,7 @@ void edge(image &im, double radius)
double *kernel;
int width;
- register long i;
+ long i;
rgba *dest = 0;
width = getOptimalKernelWidth(radius, 0.5);
@@ -1297,7 +1297,7 @@ void emboss(image &im, double radius, double sigma)
double alpha, *kernel;
int j, width;
- register long i, u, v;
+ long i, u, v;
rgba *dest = 0;
if(sigma == 0.0)
@@ -1359,7 +1359,7 @@ void sharpen(image &im, double radius, double sigma)
double alpha, normalize, *kernel;
int width;
- register long i, u, v;
+ long i, u, v;
rgba *dest = 0;
if(sigma == 0.0)
@@ -1569,8 +1569,8 @@ static bool convolveImage(image *image, rgba **dest, const unsigned int order,
double red, green, blue;
u8 alpha;
double normalize, *normal_kernel;
- register const double *k;
- register rgba *q;
+ const double *k;
+ rgba *q;
int x, y, mx, my, sx, sy;
long i;
int mcx, mcy;
@@ -1916,7 +1916,7 @@ static u32 generateNoise(u32 pixel, NoiseType noise_type)
}
case PoissonNoise:
{
- register s32
+ s32
i;
for (i=0; alpha > exp(-SigmaPoisson*pixel); i++)
@@ -1958,10 +1958,10 @@ static inline void scaleDown(T &val, T min, T max)
static void blurScanLine(double *kernel, s32 width, rgba *src, rgba *dest, s32 columns)
{
- register double *p;
+ double *p;
rgba *q;
- register s32 x;
- register long i;
+ s32 x;
+ long i;
double red, green, blue, alpha;
double scale = 0.0;
@@ -2122,7 +2122,7 @@ static s32 getBlurKernel(s32 width, double sigma, double **kernel)
#define KernelRankQ 18.0
double alpha, normalize;
- register long i;
+ long i;
s32 bias;
if(sigma == 0.0)
@@ -2255,7 +2255,7 @@ static int getOptimalKernelWidth(double radius, double sigma)
{
double normalize, value;
long width;
- register long u;
+ long u;
if(sigma == 0.0)
sigma = 0.01;
diff --git a/ksquirrel/ksquirrelpart/sq_utils_scale.cpp b/ksquirrel/ksquirrelpart/sq_utils_scale.cpp
index fac4586..dbf9aae 100644
--- a/ksquirrel/ksquirrelpart/sq_utils_scale.cpp
+++ b/ksquirrel/ksquirrelpart/sq_utils_scale.cpp
@@ -438,7 +438,7 @@ static void HorizontalFilter(const TQImage& source,TQImage& destination,
stop,
y;
- register long
+ long
i,
x;
@@ -523,7 +523,7 @@ static void VerticalFilter(const TQImage& source,TQImage& destination,
stop,
x;
- register long
+ long
i,
y;
@@ -737,13 +737,13 @@ TQImage SampleImage(const TQImage& image,const int columns,
uchar
*pixels;
- register const uchar
+ const uchar
*p;
- register long
+ long
x;
- register uchar
+ uchar
*q;
/*
diff --git a/ksquirrel/sq_utils_scale.cpp b/ksquirrel/sq_utils_scale.cpp
index f72aea0..acb740d 100644
--- a/ksquirrel/sq_utils_scale.cpp
+++ b/ksquirrel/sq_utils_scale.cpp
@@ -438,7 +438,7 @@ static void HorizontalFilter(const TQImage& source,TQImage& destination,
stop,
y;
- register long
+ long
i,
x;
@@ -523,7 +523,7 @@ static void VerticalFilter(const TQImage& source,TQImage& destination,
stop,
x;
- register long
+ long
i,
y;
@@ -737,13 +737,13 @@ TQImage SampleImage(const TQImage& image,const int columns,
uchar
*pixels;
- register const uchar
+ const uchar
*p;
- register long
+ long
x;
- register uchar
+ uchar
*q;
/*