Browse Source

Removed explicit usage of the 'register' keyword.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
master
Michele Calgaro 3 months ago
parent
commit
f71f7a065a
No known key found for this signature in database GPG Key ID: 2A75B7CA8ADED5CF
4 changed files with 32 additions and 32 deletions
  1. +11
    -11
      ksquirrel/fmt_filters.cpp
  2. +11
    -11
      ksquirrel/ksquirrelpart/fmt_filters.cpp
  3. +5
    -5
      ksquirrel/ksquirrelpart/sq_utils_scale.cpp
  4. +5
    -5
      ksquirrel/sq_utils_scale.cpp

+ 11
- 11
ksquirrel/fmt_filters.cpp View File

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


+ 11
- 11
ksquirrel/ksquirrelpart/fmt_filters.cpp View File

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


+ 5
- 5
ksquirrel/ksquirrelpart/sq_utils_scale.cpp View File

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

/*


+ 5
- 5
ksquirrel/sq_utils_scale.cpp View File

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

/*


Loading…
Cancel
Save