for offsets larger than 32, rotate right by 64 - offset */
| 424 | |
| 425 | /* for offsets larger than 32, rotate right by 64 - offset */ |
| 426 | static Rand64 rotl1 (Rand64 i, int n) { |
| 427 | lua_assert(n > 32 && n < 64); |
| 428 | n = 64 - n; |
| 429 | return packI((trim32(i.h) >> n) | (i.l << (32 - n)), |
| 430 | (i.h << (32 - n)) | (trim32(i.l) >> n)); |
| 431 | } |
| 432 | |
| 433 | /* |
| 434 | ** implementation of 'xoshiro256**' algorithm on 'Rand64' values |