With `quadKeccak`, it is possible to have 3 extra `keccak`s calls that are 
really noops.. teach `SHA3Parallel.squeeze()` how many operations it really 
should be doing.

While it is possible to match precisely the number of keccak calls required.. 
the previous implementation always called doubleKeccak, so collapsing the odd 
numbers to the closest even.

PS:  `make install-hsdis test 
TEST="micro:org.openjdk.bench.javax.crypto.full.SignatureBench.MLDSA" 
MICRO="JAVA_OPTIONS=-XX:+UnlockDiagnosticVMOptions 
-XX:-UseSHA3Intrinsics;FORK=1;ITER=3;TIME=10;WARMUP_ITER=7;WARMUP_TIME=10;OPTIONS=-prof
 perfasm -p algorithm=ML-DSA-65"`

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - match previous doubleKeccak calls
 - whitespace
 - typo
 - revert and apply simpler fix
 - Merge remote-tracking branch 'jdk/master' into new-generatea
 - whitespace
 - draft change

Changes: https://git.openjdk.org/jdk/pull/31648/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31648&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8386911
  Stats: 23 lines in 3 files changed: 21 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/31648.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/31648/head:pull/31648

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

Reply via email to