RFR: 8287289: Gather/Scatter with Index Vector

Quan Anh Mai qamai at openjdk.org
Fri Apr 7 15:30:08 UTC 2023


On Fri, 7 Apr 2023 15:21:46 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 and memory segments. 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, which can span a larger-than-4GiB space.
> 
> Please take a look and leave reviews.
> Thanks a lot.

I am not confident in implementing the AArch64 port of this patch, so it would be appreciated if someone can help me with it, thanks very much in advance.

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

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


More information about the panama-dev mailing list