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 inBit.hpp
forint32_t
andint64_t
values. This change defines newisPowerOf2
methods for values of typeuint32_t
anduint64_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.