mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8183574: Unify the is_power_of_2 functions
Reviewed-by: kbarrett, redestad
This commit is contained in:
parent
248b61710e
commit
e4b27a48a0
100 changed files with 183 additions and 75 deletions
|
@ -29,6 +29,7 @@
|
|||
#include "runtime/globals.hpp"
|
||||
#include "runtime/safepointMechanism.hpp"
|
||||
#include "runtime/task.hpp"
|
||||
#include "utilities/powerOfTwo.hpp"
|
||||
|
||||
JVMFlag::Error ObjectAlignmentInBytesConstraintFunc(intx value, bool verbose) {
|
||||
if (!is_power_of_2(value)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue