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

Use NOT instead of XOR -1 on x86

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • hs14
    • hs14
    • hotspot
    • b06
    • generic
    • generic

        On x86, use NOT instead of XOR -1 when possible.

        XOR reg, -1 is 3 bytes, while NOT reg is 2 bytes. Both are 1 cycle. Don't expect earth shattering gains but it is smaller code.

              rasbold Chuck Rasbold
              rasbold Chuck Rasbold
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: