Fix the rdtscp detection bug and add prefix for the macro.

This commit is contained in:
guangli-dai
2022-12-14 17:23:41 -08:00
committed by Qi Wang
parent 8b64be3441
commit 31e01a98f1
3 changed files with 9 additions and 3 deletions

View File

@@ -522,10 +522,10 @@ typedef unsigned __int32 uint32_t;
return 0;
]])],
[je_cv_rdtscp=yes],
[je_cv_rdstcp=no],
[je_cv_rdtscp=no],
[je_cv_rdtscp=no]))
if test "x${je_cv_rdtscp}" = "xyes"; then
AC_DEFINE([HAVE_RDTSCP], 1, [])
AC_DEFINE([JEMALLOC_HAVE_RDTSCP], [ ], [ ])
fi
fi
;;