dev-libs/botan could benefit from this (came up in bug #915544). Newer ARM64 CPUs may (not always though) support an SM4 crypto extension. We should add CPU_FLAGS_ARM_SM4 for it and add detection in cpuid2cpuflags.
That's arm64 only, correct? #define HWCAP_SM4 (1 << 19) #define HWCAP2_SVESM4 (1 << 6) I suppose the first one, yes?
Looking at src/lib/utils/cpuid/cpuid_aarch64.cpp in botan, the former.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5312f4f222ef54ecf173b4d48b55dc992b94596d commit 5312f4f222ef54ecf173b4d48b55dc992b94596d Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2023-12-29 17:54:01 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-01-02 16:44:02 +0000 profiles/desc: Add cpu_flags_arm_sm4 Closes: https://bugs.gentoo.org/915624 Signed-off-by: Michał Górny <mgorny@gentoo.org> profiles/desc/cpu_flags_arm.desc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)