RFR (XS) 8238909: x86_32 fails gtest:power_of_2

Claes Redestad claes.redestad at oracle.com
Thu Feb 13 11:31:40 UTC 2020



On 2020-02-13 12:18, Stefan Karlsson wrote:
>>
> 
> My proposal is to move exact_log2 and exact_log2_log to powerOfTwo.hpp. 
> Their semantics is "log2 of an is_power_of_2 value", so I think it 
> sort-of makes sense to group them together with the other power-of-2 
> functions.

+1

Hopefully there won't be any (or at least not too many) tricky
circularity issues due powerOfTwo.hpp depending on various
metaprogramming utilities (and count_leading_zeros).

/Claes


More information about the hotspot-dev mailing list