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

[vectorapi] Intrinsify VectorSupport.indexVector

    XMLWordPrintable

Details

    • b20

    Description

      Following "indexVector" can be implemented with vector instructions on most of the platforms.
      Adding hotspot intrinsifaction implementation benefits some APIs like "VectorMask.indexInRange".

      // FIXME @IntrinsicCandidate
          public static
          <V extends Vector<E>,
           E,
           S extends VectorSpecies<E>>
          V indexVector(Class<? extends V> vClass, Class<E> eClass,
                        int length,
                        V v, int step, S s,
                        IndexOperation<V, S> defaultImpl) {
              assert isNonCapturingLambda(defaultImpl) : defaultImpl;
              return defaultImpl.index(v, step, s);
          }

      Attachments

        Issue Links

          Activity

            People

              xgong Xiaohong Gong (Inactive)
              xgong Xiaohong Gong (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: