Currently, the vectorized assembly for Long.numberOfLeadingZeros does not use the same floating point exponent trick that the integer variant uses, which emits fewer vector operations. Furthermore, the implementation of Integer.numberOfLeadingZeros could be improved to use fewer vector operations, as discussed here: https://github.com/openjdk/jdk/pull/23579#issuecomment-2661332497
- causes
-
JDK-8371642 TestNumberOfContinuousZeros.java fails on PPC64
-
- Resolved
-
- relates to
-
JDK-8349637 Integer.numberOfLeadingZeros outputs incorrectly in certain cases
-
- Closed
-
- links to
-
Commit(master)
openjdk/jdk/f77a5117
-
Review(master)
openjdk/jdk/26610