Check if HWCAP_ASIMDRDM is defined, old hwcap.h headers do not define this.

This commit is contained in:
Kareem
2025-03-19 16:13:01 -07:00
parent 6d299ea943
commit 1750325c0b

View File

@@ -170,7 +170,7 @@
if (hwcaps & HWCAP_SHA512)
cpuid_flags |= CPUID_SHA512;
#endif
#ifndef WOLFSSL_AARCH64_NO_SQRDMLSH
#if defined(HWCAP_ASIMDRDM) && !defined(WOLFSSL_AARCH64_NO_SQRDMLSH)
if (hwcaps & HWCAP_ASIMDRDM)
cpuid_flags |= CPUID_RDM;
#endif