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

Architecture word bits predefs #107

Closed
wants to merge 5 commits into from
Closed

Architecture word bits predefs #107

wants to merge 5 commits into from

Conversation

nemothenoone
Copy link

@nemothenoone nemothenoone commented Jul 9, 2020

Each architecture has pre-defined word size in bits. Since this has no way to be detected correctly from compiler-only definitions (and sizeof(int) is obviously not the way as well), pre-defining according to the each architecture's documentation is the only way. So, here it is.

Resolves https://github.com/NilFoundation/predef/issues/2.

@grafikrobot
Copy link
Member

Than you for the contribution.. I'm going to rework it locally into an equivalent as this is missing documentation and it would be closer to the library design to have a group of BOOST_ARCH_WORD_SIZE_<arch-name> definitions to follow current conventions. I'll also probably rework #108 to follow it.

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