diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-24 08:56:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-24 08:59:34 +0300 |
commit | 4b9ff3cd42be427e478743648e9951bf8c189a04 (patch) | |
tree | b0cb1462a8fdae38df4a0a1067349f3118d56a43 /source/blender/python/mathutils/mathutils_noise.c | |
parent | 2e99a74df9ecfa18c4081cdcc82227e2e24f14b1 (diff) |
Cleanup: comment blocks, trailing space in comments
Diffstat (limited to 'source/blender/python/mathutils/mathutils_noise.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils_noise.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/python/mathutils/mathutils_noise.c b/source/blender/python/mathutils/mathutils_noise.c index c24960f2d04..e37e083d5e1 100644 --- a/source/blender/python/mathutils/mathutils_noise.c +++ b/source/blender/python/mathutils/mathutils_noise.c @@ -93,7 +93,7 @@ #define MIXBITS(u, v) (((u)&UMASK) | ((v)&LMASK)) #define TWIST(u, v) ((MIXBITS(u, v) >> 1) ^ ((v)&1UL ? MATRIX_A : 0UL)) -static ulong state[N]; /* the array for the state vector */ +static ulong state[N]; /* The array for the state vector. */ static int left = 1; static int initf = 0; static ulong *next; @@ -106,10 +106,10 @@ static void init_genrand(ulong s) state[0] = s & 0xffffffffUL; for (j = 1; j < N; j++) { state[j] = (1812433253UL * (state[j - 1] ^ (state[j - 1] >> 30)) + j); - /* See Knuth TAOCP Vol2. 3rd Ed. P.106 for multiplier. */ - /* In the previous versions, MSBs of the seed affect */ - /* only MSBs of the array state[]. */ - /* 2002/01/09 modified by Makoto Matsumoto */ + /* See Knuth TAOCP Vol2. 3rd Ed. P.106 for multiplier. + * In the previous versions, MSBs of the seed affect + * only MSBs of the array state[]. + * 2002/01/09 modified by Makoto Matsumoto. */ state[j] &= 0xffffffffUL; /* for >32 bit machines */ } left = 1; |