Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8350468

x86: Improve implementation of vectorized numberOfLeadingZeros for int and long

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 25
    • hotspot

      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

            jkarthikeyan Jasmine Karthikeyan
            jkarthikeyan Jasmine Karthikeyan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: