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).

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: