Add Aarch32 and Aarch64 specific guards for Linux

pull/461/head
Jeffrey Walton 2017-08-07 07:58:16 -04:00
parent 89ccfad2d0
commit 2ac6c6dd20
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
4 changed files with 5 additions and 5 deletions

View File

@ -78,7 +78,7 @@ bool CPU_TryCRC32_ARMV8()
}
return result;
#else
# if defined(__linux__)
# if defined(__linux__) && (defined(__aarch32__) || defined(__aarch64__))
if (getauxval(AT_HWCAP) & HWCAP_CRC32)
return true;
# endif

View File

@ -211,7 +211,7 @@ bool CPU_TryPMULL_ARMV8()
}
return result;
# else
# if defined(__linux__)
# if defined(__linux__) && (defined(__aarch32__) || defined(__aarch64__))
if (getauxval(AT_HWCAP) & HWCAP_PMULL)
return true;
# endif

View File

@ -101,7 +101,7 @@ bool CPU_TryAES_ARMV8()
}
return result;
# else
# if defined(__linux__)
# if defined(__linux__) && (defined(__aarch32__) || defined(__aarch64__))
if (getauxval(AT_HWCAP) & HWCAP_AES)
return true;
# endif

View File

@ -85,7 +85,7 @@ bool CPU_TrySHA1_ARMV8()
}
return result;
# else
# if defined(__linux__)
# if defined(__linux__) && (defined(__aarch32__) || defined(__aarch64__))
if (getauxval(AT_HWCAP) & HWCAP_SHA1)
return true;
# endif
@ -148,7 +148,7 @@ bool CPU_TrySHA2_ARMV8()
}
return result;
#else
# if defined(__linux__)
# if defined(__linux__) && (defined(__aarch32__) || defined(__aarch64__))
if (getauxval(AT_HWCAP) & HWCAP_SHA2)
return true;
# endif