Rebracketing and Reshaping
Kharbas, Kishor
kishor.kharbas at intel.com
Mon Mar 25 17:55:18 UTC 2019
Hi Richard,
Rebracket() has been renamed to reinterpret() and is now defined in Vector class as part of refactoring.
[1] https://mail.openjdk.java.net/pipermail/panama-dev/2019-January/003832.html
[2] http://hg.openjdk.java.net/panama/dev/rev/f15b67c4b503
Regards,
Kishor
> -----Original Message-----
> From: panama-dev [mailto:panama-dev-bounces at openjdk.java.net] On
> Behalf Of Richard Startin
> Sent: Saturday, March 23, 2019 7:42 AM
> To: panama-dev at openjdk.java.net
> Subject: Rebracketing and Reshaping
>
> I have noticed that Vector.rebracket has disappeared recently, and I can't
> find a way to concatenate bytes into wider integral types any more. Is there a
> new API, or will this be no longer possible?
>
> If the latter, I think that would amount to a significant loss of functionality. Its
> demise would also have an impact on performance. For instance, the
> implementation of ByteVector.shiftR is much slower than rebracketing to
> IntVector, shifting right, masking out the high bits, and rebracketing back to
> ByteVector was.
>
> Why would a user want to reshape a ByteVector to a ByteVector? To reduce
> the number of lanes?
More information about the panama-dev
mailing list