In `powerOfTwo.hpp`, there a few log2 related functions returning `int`. However, some of them always return only unsigned number.
For example, `log2i_exact` essentially calls `count_trailing_zeros`, which returns `unsigned`.
For example, `log2i_exact` essentially calls `count_trailing_zeros`, which returns `unsigned`.
- relates to
-
JDK-8233144 undefined behavior: signed integer overflow
- Open