| 400 | } |
| 401 | |
| 402 | static inline uint32_t pcg64_cm_next32(pcg64_state *state) { |
| 403 | uint64_t next; |
| 404 | if (state->has_uint32) { |
| 405 | state->has_uint32 = 0; |
| 406 | return state->uinteger; |
| 407 | } |
| 408 | next = pcg_cm_random_r(state->pcg_state); |
| 409 | state->has_uint32 = 1; |
| 410 | state->uinteger = (uint32_t)(next >> 32); |
| 411 | return (uint32_t)(next & 0xffffffff); |
| 412 | } |
| 413 | |
| 414 | void pcg64_advance(pcg64_state *state, uint64_t *step); |
| 415 | void pcg64_cm_advance(pcg64_state *state, uint64_t *step); |
nothing calls this directly
no test coverage detected