Helper function for next()
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=i8), | intent(in) | :: | x | |||
| integer, | intent(in) | :: | k |
pure function rotl(x, k) result(res) integer(i8), intent(in) :: x integer, intent(in) :: k integer(i8) :: res res = ior(shiftl(x, k), shiftr(x, 64 - k)) end function rotl