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

[vectorapi] Intrinsify VectorSupport.indexVector

XMLWordPrintable

    • b20

      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);
          }

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

              Created:
              Updated:
              Resolved: