mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-21 12:20:29 +00:00
8345591: [aarch64] macroAssembler_aarch64.cpp compile fails ceil_log2 not declared
Reviewed-by: coleenp, alanb, syan
This commit is contained in:
parent
7513b1378d
commit
ef8da28487
@ -5305,7 +5305,7 @@ MacroAssembler::KlassDecodeMode MacroAssembler::klass_decode_mode() {
|
||||
if (operand_valid_for_logical_immediate(
|
||||
/*is32*/false, (uint64_t)CompressedKlassPointers::base())) {
|
||||
const size_t range = CompressedKlassPointers::klass_range_end() - CompressedKlassPointers::base();
|
||||
const uint64_t range_mask = right_n_bits(ceil_log2(range));
|
||||
const uint64_t range_mask = right_n_bits(log2i_ceil(range));
|
||||
if (((uint64_t)CompressedKlassPointers::base() & range_mask) == 0) {
|
||||
return (_klass_decode_mode = KlassDecodeXor);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user