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

Support cmov vectorization for float

XMLWordPrintable

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

        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}

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

                Created:
                Updated:
                Resolved: