Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect constant in pcg_output_xsh_rr_128_64? #7

Open
simonbyrne opened this issue Jun 3, 2016 · 2 comments
Open

incorrect constant in pcg_output_xsh_rr_128_64? #7

simonbyrne opened this issue Jun 3, 2016 · 2 comments

Comments

@simonbyrne
Copy link

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?

@sunoru
Copy link

sunoru commented Jun 14, 2016

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

So the expected files of tests are also wrong.

@imneme
Copy link
Owner

imneme commented Jun 14, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants