]> git.ipfire.org Git - thirdparty/openssl.git/commit
RISC-V: Add MD5 assembly implementation with rv64gc and Zbb
authorJulian Zhu <julian.oerv@isrc.iscas.ac.cn>
Tue, 8 Jul 2025 10:10:41 +0000 (18:10 +0800)
committerPauli <ppzgs1@gmail.com>
Wed, 13 Aug 2025 08:28:38 +0000 (18:28 +1000)
commit80c664db430d882be22cd237f3e0a313ae3b15a3
tree4895669bb5be4a9c44c72f7032dd42d21ec250f2
parent5a68746099c7e81e455f70349be5ce69c9b644ad
RISC-V: Add MD5 assembly implementation with rv64gc and Zbb

For the rv64gc assembly implementation, we can get about 20%-50% better performance than compiler-generated code (-O3).
For the Zbb assembly implementation, we can get about 10%-30% better performance than compiler-generated code (-O3 -march=rv64gc_zbb).

Signed-off-by: Julian Zhu <julian.oerv@isrc.iscas.ac.cn>
Reviewed-by: Paul Yang <paulyang.inf@gmail.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/27990)
crypto/md5/asm/md5-riscv64-zbb.pl [new file with mode: 0644]
crypto/md5/build.info
crypto/md5/md5_local.h
crypto/md5/md5_riscv.c [new file with mode: 0644]