JDK-8350468 : x86: Improve implementation of vectorized numberOfLeadingZeros for int and long
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 25
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2025-02-21
  • Updated: 2025-02-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
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