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

Define isPowerOf2 utility methods for unsigned #7377

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

hzongaro
Copy link
Contributor

There are isPowerOf2 methods defined in Bit.hpp for int32_t and int64_t values. This change defines new isPowerOf2 methods for values of type uint32_t and uint64_t.

Also added Doxygen comments for the various isPowerOf2 methods.

This change doesn't introduce any uses of these methods in OMR, but I will be able to take advantage of them in a downstream project.

There are isPowerOf2 methods defined in Bit.hpp for int32_t and int64_t
values.  This change defines new isPowerOf2 methods for values of type
uint32_t and uint64_t.

Also added Doxygen comments for the various isPowerOf2 methods.

Signed-off-by:  Henry Zongaro <zongaro@ca.ibm.com>
@hzongaro hzongaro marked this pull request as ready for review July 4, 2024 19:55
@hzongaro
Copy link
Contributor Author

hzongaro commented Jul 4, 2024

@0xdaryl, may I ask you to review this change?

@0xdaryl
Copy link
Contributor

0xdaryl commented Jul 5, 2024

Jenkins build all

@0xdaryl 0xdaryl self-assigned this Jul 5, 2024
@0xdaryl 0xdaryl merged commit 127e633 into eclipse-omr:master Jul 5, 2024
17 checks passed
@hzongaro hzongaro deleted the isPowerOf2-unsigned branch July 5, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants