lemon/random.h
changeset 2551 5004899aa870
parent 2483 bf6d7b624d5c
child 2553 bfced05fa852
equal deleted inserted replaced
14:a34f0a0b8a9c 15:1cf45a0b6b16
   255           curr[0] = (((curr[0] & hiMask) | (curr[-1] & loMask)) >> 1) ^
   255           curr[0] = (((curr[0] & hiMask) | (curr[-1] & loMask)) >> 1) ^
   256             curr[length - shift] ^ mask[curr[-1] & 1ul];
   256             curr[length - shift] ^ mask[curr[-1] & 1ul];
   257           --curr;
   257           --curr;
   258         }
   258         }
   259         curr[0] = (((curr[0] & hiMask) | (curr[length - 1] & loMask)) >> 1) ^
   259         curr[0] = (((curr[0] & hiMask) | (curr[length - 1] & loMask)) >> 1) ^
   260           curr[length - shift] ^ mask[curr[length - 1] & 1ul];
   260           curr[length - shift] ^ mask[int(curr[length - 1] & 1ul)];
   261 
   261 
   262       }
   262       }
   263 
   263 
   264   
   264   
   265       Word *current;
   265       Word *current;