Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-02-20 03:18:29 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-02-20 04:21:05 +0300
commit146fe1decfd9fe8760df6d184770d6c8c2a5d994 (patch)
treebecd7f064ae16bba8ddb773ba637a44ce323043f /source/blender/blenlib/intern/noise.c
parent60e877bb78dce39e05b3d6d87b2a45803073f802 (diff)
Cleanup: remove use of 'register'
This isn't needed with modern compilers.
Diffstat (limited to 'source/blender/blenlib/intern/noise.c')
-rw-r--r--source/blender/blenlib/intern/noise.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/noise.c b/source/blender/blenlib/intern/noise.c
index e388cc06295..229a06948c2 100644
--- a/source/blender/blenlib/intern/noise.c
+++ b/source/blender/blenlib/intern/noise.c
@@ -331,8 +331,8 @@ static float newPerlinU(float x, float y, float z)
/* Was BLI_hnoise(), removed noisesize, so other functions can call it without scaling. */
static float orgBlenderNoise(float x, float y, float z)
{
- register float cn1, cn2, cn3, cn4, cn5, cn6, i;
- register const float *h;
+ float cn1, cn2, cn3, cn4, cn5, cn6, i;
+ const float *h;
float fx, fy, fz, ox, oy, oz, jx, jy, jz;
float n = 0.5;
int ix, iy, iz, b00, b01, b10, b11, b20, b21;
@@ -785,7 +785,7 @@ static float noise3_perlin(float vec[3])
int bx0, bx1, by0, by1, bz0, bz1, b00, b10, b01, b11;
float rx0, rx1, ry0, ry1, rz0, rz1, sx, sy, sz, a, b, c, d, t, u, v;
const float *q;
- register int i, j;
+ int i, j;
SETUP(vec[0], bx0, bx1, rx0, rx1);
SETUP(vec[1], by0, by1, ry0, ry1);