3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 13:53:40 +01:00
This commit is contained in:
Olivier Parcollet 2013-10-18 13:46:43 +02:00
parent 25cb68e253
commit 7419b1a68e

View File

@ -121,8 +121,8 @@ class RandMT {
} }
uint32 reloadMT(void) { uint32 reloadMT(void) {
register uint32 *p0=state, *p2=state+2, *pM=state+M, s0, s1; uint32 *p0=state, *p2=state+2, *pM=state+M, s0, s1;
register int j; int j;
if(left < -1) if(left < -1)
seedMT(initseed); seedMT(initseed);
@ -209,8 +209,8 @@ public:
// //
initseed = seed; initseed = seed;
register uint32 x = (seed | 1U) & 0xFFFFFFFFU, *s = state; uint32 x = (seed | 1U) & 0xFFFFFFFFU, *s = state;
register int j; int j;
left = 0; left = 0;
for(*s++=x, j=N; --j; *s++ = (x*=69069U) & 0xFFFFFFFFU); for(*s++=x, j=N; --j; *s++ = (x*=69069U) & 0xFFFFFFFFU);
} }