Skip to content
Snippets Groups Projects
Unverified Commit f64bf511 authored by Jayesh Badwaik's avatar Jayesh Badwaik
Browse files

- testzell::pcg: make lowering precision explicit

parent 5aa905b6
No related branches found
No related tags found
No related merge requests found
Pipeline #139446 passed
......@@ -14,7 +14,7 @@ auto pcg32_random(state32* rng) -> uint32_t
rng->state = (rng->state) * 0X5851F42D4C957F2DULL;
// NOLINTNEXTLINE(hicpp-signed-bitwise)
rng->state += (rng->stream | 1);
const uint32_t xorshifted = ((old >> 18U) ^ old) >> 27U;
auto const xorshifted = static_cast<uint32_t>(((old >> 18U) ^ old) >> 27U);
const uint32_t rot = old >> 59U;
// NOLINTNEXTLINE(hicpp-signed-bitwise)
return (xorshifted >> rot) | (xorshifted << ((-rot) & 31));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment