Displaying 1 result from an estimated 1 matches for "mwc1019".
Did you mean:
mcc101
2005 Mar 14
2
Bug on MWC1019?
Dear R-developer (Marsaglia??)
The following piece of code from package SuppDist , routine "dist.cc" seems
to have a bug
ULONG MWC1019(void){
ULONG long t;
int i = endQ-1;
t = 147669672LL*Q[i] + Q[endQ];
Q[endQ] = (t>>32);
if(i>0)
return(Q[i--] = t);
i = endQ-1;
return(Q[0] = t);
}
in fact , being "i" a local variable that have automatic storage, it is
initialized to endQ-1 (1019)
each time the routi...