Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more Hotspot HW intrinsics for hashing and BigInteger #652

Open
AliveDevil opened this issue Jan 23, 2025 · 0 comments
Open

Add more Hotspot HW intrinsics for hashing and BigInteger #652

AliveDevil opened this issue Jan 23, 2025 · 0 comments

Comments

@AliveDevil
Copy link
Collaborator

AliveDevil commented Jan 23, 2025

With #390 completed, all of the cryptography algorithms are hardware accelerated.
There's a bunch of hashing algorithms, that are hardware accelerated on Hotspot, but aren't on IKVM:

  • Crc32 (Aarch64, X86_32)
  • Sha1 (Aarch64)
  • Sha256 (Aarch64)

Some java.math.BigInteger improvements:

  • MultiplyToLen
  • SquareToLen
  • MontgomeryMultiply
  • MontgomerySquare

In library_call.cpp are all usages of these intrinsics specified, e.g. inline_digestBase_implCompressMB is used for SHA1, SHA256, SHA512 intrinsics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant