summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarti Maria <marti.maria@littlecms.com>2020-12-18 18:38:21 +0100
committerMarti Maria <marti.maria@littlecms.com>2020-12-18 18:38:21 +0100
commit34d52d3ffe507855f811365f47a825e1254a5c91 (patch)
tree129098bd2d66a75de299294e98715e63fc299ecb
parentceced6f55ad2dbe92f80f600fa06a3716a3b758f (diff)
downloadlcms2-34d52d3ffe507855f811365f47a825e1254a5c91.tar.gz
clean "register" keyword
some were left in the testbed code
-rwxr-xr-xtestbed/testplugin.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/testbed/testplugin.c b/testbed/testplugin.c
index cc7777e..eba1a8b 100755
--- a/testbed/testplugin.c
+++ b/testbed/testplugin.c
@@ -239,9 +239,9 @@ void Fake1Dfloat(const cmsFloat32Number Value[],
// This fake interpolation just uses scrambled negated indexes for output
static
-void Fake3D16(register const cmsUInt16Number Input[],
- register cmsUInt16Number Output[],
- register const struct _cms_interp_struc* p)
+void Fake3D16(CMSREGISTER const cmsUInt16Number Input[],
+ CMSREGISTER cmsUInt16Number Output[],
+ CMSREGISTER const struct _cms_interp_struc* p)
{
Output[0] = 0xFFFF - Input[2];
Output[1] = 0xFFFF - Input[1];
@@ -635,10 +635,10 @@ Error:
#define TYPE_RGB_565 (COLORSPACE_SH(PT_RGB)|CHANNELS_SH(3)|BYTES_SH(0) | (1 << 23))
-cmsUInt8Number* my_Unroll565(register struct _cmstransform_struct* nfo,
- register cmsUInt16Number wIn[],
- register cmsUInt8Number* accum,
- register cmsUInt32Number Stride)
+cmsUInt8Number* my_Unroll565(CMSREGISTER struct _cmstransform_struct* nfo,
+ CMSREGISTER cmsUInt16Number wIn[],
+ CMSREGISTER cmsUInt8Number* accum,
+ CMSREGISTER cmsUInt32Number Stride)
{
cmsUInt16Number pixel = *(cmsUInt16Number*) accum; // Take whole pixel
@@ -653,13 +653,13 @@ cmsUInt8Number* my_Unroll565(register struct _cmstransform_struct* nfo,
return accum + 2;
}
-cmsUInt8Number* my_Pack565(register _cmsTRANSFORM* info,
- register cmsUInt16Number wOut[],
- register cmsUInt8Number* output,
- register cmsUInt32Number Stride)
+cmsUInt8Number* my_Pack565(CMSREGISTER _cmsTRANSFORM* info,
+ CMSREGISTER cmsUInt16Number wOut[],
+ CMSREGISTER cmsUInt8Number* output,
+ CMSREGISTER cmsUInt32Number Stride)
{
- register cmsUInt16Number pixel;
+ CMSREGISTER cmsUInt16Number pixel;
int r, g, b;
r = (int) floor(( wOut[2] * 31) / 65535.0 + 0.5);
@@ -1113,9 +1113,9 @@ Error:
// --------------------------------------------------------------------------------------------------
static
-void FastEvaluateCurves(register const cmsUInt16Number In[],
- register cmsUInt16Number Out[],
- register const void* Data)
+void FastEvaluateCurves(CMSREGISTER const cmsUInt16Number In[],
+ CMSREGISTER cmsUInt16Number Out[],
+ CMSREGISTER const struct _cms_interp_struc* Data)
{
Out[0] = In[0];
}