Add Aarch32 and Aarch64 specific guards for Linux
parent
89ccfad2d0
commit
2ac6c6dd20
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue