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

Support cmov vectorization for float

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 10
    • 9
    • hotspot
    • b36
    • x86_64
    • linux

    Backports

      Description

        JDK-8139340 has added vectorization support for double cmoves. Float support is a trivial extension which can piggyback on top of existing algorithm.

        With such an enhancement, the following pattern can be supported:
        {code}
        private void cmove_kernel_float(float[] in1, float[] in2, int length, float[] out) {
          for (int i = 0; i < length; i++) {
            out[i] = (in1[i] > in2[i]) ? in1[i] : in2[i];
          }
        }
        {code}

        Attachments

          Issue Links

            Activity

              People

                rlupusoru Razvan Lupusoru
                rlupusoru Razvan Lupusoru
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: