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

[vector] Vector API:single can be removed.

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: repo-panama
    • Component/s: hotspot

      Description

      In Vector API, there is an API single.
      The implementation is as follows:
          
      public static final IntVector single(VectorSpecies<Integer> species, int e)
      { return zero(species).with(0, e); }

      It returns a vector where the first lane is e, all other lanes are 0.

      It just reuses zero and with API. Developers can implement this by themselves. To make Vector API concise, it can be removed.

        Attachments

          Activity

            People

            • Assignee:
              yzhang Yang Zhang
              Reporter:
              yzhang Yang Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: