RFR: 8287289: Gather/Scatter with Index Vector [v3]

Xiaohong Gong xgong at openjdk.org
Tue Apr 11 07:31:54 UTC 2023


On Sat, 8 Apr 2023 13:49:57 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:

>> Hi,
>> 
>> This patch implements gather/scatter operations using an index vector in the form of an `IntVector` or a `LongVector` on arrays. According to the rationales in the [original PR](https://github.com/openjdk/panama-vector/pull/201), gathering/scattering using a vector is more flexible and can be used to implement the original interface of using an index array easily. Furthermore, 64-bit indexing is necessary for operating on `MemorySegment`s in the future, which can span a larger-than-4GiB space.
>> 
>> Please take a look and leave reviews.
>> Thanks a lot.
>
> Quan Anh Mai has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - remove memory segment support
>  - load store from memory segment

I'm wondering whether it's better to also keep the original array APIs as well?

-------------

PR Comment: https://git.openjdk.org/panama-vector/pull/213#issuecomment-1502827089


More information about the panama-dev mailing list