Skip to content

Conversation

@aelizaro
Copy link
Collaborator

  • Discard fix
  • Initial bunch of tests

@aelizaro aelizaro requested a review from rarutyun July 26, 2024 11:32
{
promotion_type tmp = z;
for(std::size_t j = 0; j < n; j++) {
z += (unsigned long long)x[j];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

promotion type is for result_type, not for unsigned long long.
Let unsigned long long be 64 bits; and result_type be 32 bits. promotion type will be 64 bits.
Same example; z=-1; x[0]=1; skipped nothing. Period of this thing is 2^(32*4+2) -> we are in wrong state.

Base automatically changed from philox_reference_implementation to main August 1, 2024 22:59
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

Successfully merging this pull request may close these issues.

4 participants