summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy B. Terriberry <territim@amazon.com>2022-07-02 15:13:10 -0700
committerTimothy B. Terriberry <territim@amazon.com>2022-07-06 09:59:12 -0700
commit918a09a344fde1eb28e0f8475fa84133691b01b1 (patch)
tree92bd31621f8e6df817d6b93d85031c5337c74a19
parent50407983f2f785adf55a16797e1d42741dc1295b (diff)
downloadopus-918a09a344fde1eb28e0f8475fa84133691b01b1.tar.gz
Update x86 CPU detection configure check.
Commit 6577534a80c8 switched from using __get_cpuid() to __get_cpuid_count(), but the corresponding configure check was not updated. Since __get_cpuid_count() was introduced much later, make sure we check for the function we actually use. Thanks to Mark Harris for the report.
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f12f0aa9..e2c88ed1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -724,7 +724,7 @@ AS_IF([test x"$enable_intrinsics" = x"yes"],[
unsigned int CPUInfo2;
unsigned int CPUInfo3;
unsigned int InfoType;
- __get_cpuid(InfoType, &CPUInfo0, &CPUInfo1, &CPUInfo2, &CPUInfo3);
+ __get_cpuid_count(InfoType, 0, &CPUInfo0, &CPUInfo1, &CPUInfo2, &CPUInfo3);
]])],
[AC_MSG_RESULT([C method])
AC_DEFINE([CPU_INFO_BY_C], [1], [Get CPU Info by c method])],