Rebracketing and Reshaping
Richard Startin
richard at openkappa.co.uk
Sat Mar 23 14:42:00 UTC 2019
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