pcg-c-basic icon indicating copy to clipboard operation
pcg-c-basic copied to clipboard

incorrect constant in `pcg_output_xsh_rr_128_64`?

Open simonbyrne opened this issue 8 years ago • 2 comments

Is the shift of 29 here: https://github.com/imneme/pcg-c/blob/e2383c4bfcc862b40c3d85a43c9d495ff61186cb/include/pcg_variants.h#L166 correct?

From what I can tell from the paper, it should be floor((6+64)/2) = 35?

simonbyrne avatar Jun 03 '16 13:06 simonbyrne

With the algorithm here the shift is actually 35, rather than 29.

So the expected files of tests are also wrong.

sunoru avatar Jun 14 '16 14:06 sunoru

I'll look into it, but it does seem like you've found an issue!

Thanks!

Melissa.

On Jun 14, 2016, at 7:04 AM, スノル [email protected] wrote:

With the algorithm here the shift is actually 35, rather than 29.

So the expected files of tests are also wrong.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

imneme avatar Jun 14 '16 16:06 imneme