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

DefaultSynthStyle.{getStateInfo,getMatchCount) should use Integer.bitCount

XMLWordPrintable

    • b116
    • generic
    • generic

      DefaultSynthStyle.getStateInfo and DefaultSynthStyle.getMatchCount actually duplicate the code of Integer.bitCount. The suggested fix leads to better maintainability and can lead to better performance on architectures which support a population count instruction (see 6378821).

            serb Sergey Bylokhov
            twisti Christian Thalinger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: