fix: get rid of the old "register" keyword in eoRng
This commit is contained in:
parent
ee5e1a36f6
commit
dff32c9a96
1 changed files with 0 additions and 12 deletions
|
|
@ -483,14 +483,8 @@ inline void eoRng::initialize(uint32_t seed)
|
||||||
{
|
{
|
||||||
left = -1;
|
left = -1;
|
||||||
|
|
||||||
// ISO C++17 does not allow 'register' storage class specifier
|
|
||||||
#if __cplusplus < 201703L
|
|
||||||
register uint32_t x = (seed | 1U) & 0xFFFFFFFFU, *s = state;
|
|
||||||
register int j;
|
|
||||||
#else
|
|
||||||
uint32_t x = (seed | 1U) & 0xFFFFFFFFU, *s = state;
|
uint32_t x = (seed | 1U) & 0xFFFFFFFFU, *s = state;
|
||||||
int j;
|
int j;
|
||||||
#endif
|
|
||||||
for(left=0, *s++=x, j=N; --j;
|
for(left=0, *s++=x, j=N; --j;
|
||||||
*s++ = (x*=69069U) & 0xFFFFFFFFU) ;
|
*s++ = (x*=69069U) & 0xFFFFFFFFU) ;
|
||||||
}
|
}
|
||||||
|
|
@ -499,14 +493,8 @@ inline void eoRng::initialize(uint32_t seed)
|
||||||
|
|
||||||
inline uint32_t eoRng::restart()
|
inline uint32_t eoRng::restart()
|
||||||
{
|
{
|
||||||
// ISO C++17 does not allow 'register' storage class specifier
|
|
||||||
#if __cplusplus < 201703L
|
|
||||||
register uint32_t *p0=state, *p2=state+2, *pM=state+M, s0, s1;
|
|
||||||
register int j;
|
|
||||||
#else
|
|
||||||
uint32_t *p0=state, *p2=state+2, *pM=state+M, s0, s1;
|
uint32_t *p0=state, *p2=state+2, *pM=state+M, s0, s1;
|
||||||
int j;
|
int j;
|
||||||
#endif
|
|
||||||
|
|
||||||
left=N-1, next=state+1;
|
left=N-1, next=state+1;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue