Skip to content

Conversation

yperbasis
Copy link
Contributor

For instance, on Windows long is 32 bit, while long long is 64 bit

@ValarDragon
Copy link
Member

Thanks for the fix! Would this alternatively be fixed by changing 1ul << to 1ull <<?

@yperbasis
Copy link
Contributor Author

I guess 1ull can work as well, but it's less clean when mp_limb_t == long and sizeof(long) == 32. 1ull is 64 bit and the bit shift result will be truncated from 64 bit to 32 bit. That will probably work, but the extra conversion is unnecessary.

ValarDragon
ValarDragon previously approved these changes Oct 20, 2020
Copy link
Member

@ValarDragon ValarDragon left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for the PR!

@ValarDragon ValarDragon changed the base branch from staging to develop October 20, 2020 04:00
@ValarDragon ValarDragon dismissed their stale review October 20, 2020 04:00

The base branch was changed.

@ValarDragon
Copy link
Member

ValarDragon commented Oct 20, 2020

Not sure why changing the base branch added so many commits, I'll just merge to staging, and then cherry-pick this onto develop. Thanks!

@ValarDragon ValarDragon changed the base branch from develop to staging October 20, 2020 04:01
@ValarDragon ValarDragon merged commit ca223fe into scipr-lab:staging Oct 20, 2020
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.

2 participants