[vector] implementation of single(...)

Paul Sandoz paul.sandoz at oracle.com
Tue May 22 23:25:16 UTC 2018


Hi,

With the advent of intrinsic with is the following a viable implementation of single on the public primitive vector types?

  @ForceInline
  public final IntVector<S> single(int e) {
      return zero().with(0, e);
  }

Paul.


More information about the panama-dev mailing list