RFR: 8339910: RISC-V: crc32 intrinsic with carry-less multiplication [v4]

Hamlin Li mli at openjdk.org
Thu Dec 5 17:07:32 UTC 2024


> Hi,
> Can you review this patch to implement CRC32 with `vclmul` (Zvbc)?
> Thanks!
> 
> For more details of the algorithm, please check the paper: "Fast CRC Computation for Generic Polynomials Using PCLMULQDQ Instruction - Intel", please also refer to the corresponding code in aarch64 or x86 ones.
> As the riscv carry-less multiplication instructions are a bit different from the other platforms, so the implementation itself is also a bit different from others.
> 
> 
> ## Test
> test/hotspot/jtreg/compiler/intrinsics/zip/TestCRC32.java, 
> test/jdk/java/util/zip/TestCRC32.java
> also run tests found by: `grep -lRi crc32 test/* | grep -v bench`

Hamlin Li has updated the pull request incrementally with one additional commit since the last revision:

  fix flag warning

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/22475/files
  - new: https://git.openjdk.org/jdk/pull/22475/files/b6b87943..ceb4a72b

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=22475&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=22475&range=02-03

  Stats: 4 lines in 1 file changed: 3 ins; 1 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/22475.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22475/head:pull/22475

PR: https://git.openjdk.org/jdk/pull/22475


More information about the hotspot-dev mailing list