[vectorIntrinsics] RFR: 8283598: [vectorapi] Add new vector operation for compress and expand bits [v4]
Smita Kamath
svkamath at openjdk.java.net
Thu Apr 14 00:29:23 UTC 2022
> Hi,
>
> I've added support for new vector operations for compressing bits of integral vector types(Byte/Short/Integer/Long).
> The implementation is based on Compress or Generalized Extract mentioned in Hackers Delight by Henry S. Warren, Jr.
> The implementation does the following: given a mask and the number to be compressed, the bits of the number corresponding to the set mask bit are selected and compressed.
>
> Currently, this PR addresses only Java changes for compress bits operation. I've also updated the test framework.
> Do review and share feedback.
Smita Kamath has updated the pull request incrementally with one additional commit since the last revision:
1) moved compress/expand bits to CompressExpand.java
2) Removed compressBits and expandBits 3) Created a separate test class 4) Updated template files
-------------
Changes:
- all: https://git.openjdk.java.net/panama-vector/pull/184/files
- new: https://git.openjdk.java.net/panama-vector/pull/184/files/2c6d1d3e..0048dc36
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=panama-vector&pr=184&range=03
- incr: https://webrevs.openjdk.java.net/?repo=panama-vector&pr=184&range=02-03
Stats: 1438 lines in 19 files changed: 678 ins; 724 del; 36 mod
Patch: https://git.openjdk.java.net/panama-vector/pull/184.diff
Fetch: git fetch https://git.openjdk.java.net/panama-vector pull/184/head:pull/184
PR: https://git.openjdk.java.net/panama-vector/pull/184
More information about the panama-dev
mailing list