From 31e01a98f159926493158cde6453cde55f21c42b Mon Sep 17 00:00:00 2001 From: guangli-dai Date: Wed, 14 Dec 2022 17:23:41 -0800 Subject: Fix the rdtscp detection bug and add prefix for the macro. --- include/jemalloc/internal/jemalloc_internal_inlines_a.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/jemalloc/internal/jemalloc_internal_inlines_a.h') diff --git a/include/jemalloc/internal/jemalloc_internal_inlines_a.h b/include/jemalloc/internal/jemalloc_internal_inlines_a.h index 7686a9b7..cb6d78fa 100644 --- a/include/jemalloc/internal/jemalloc_internal_inlines_a.h +++ b/include/jemalloc/internal/jemalloc_internal_inlines_a.h @@ -14,7 +14,7 @@ malloc_getcpu(void) { return GetCurrentProcessorNumber(); #elif defined(JEMALLOC_HAVE_SCHED_GETCPU) return (malloc_cpuid_t)sched_getcpu(); -#elif defined(HAVE_RDTSCP) +#elif defined(JEMALLOC_HAVE_RDTSCP) unsigned int ax, cx, dx; asm volatile("rdtscp" : "=a"(ax), "=d"(dx), "=c"(cx) ::); return (malloc_cpuid_t)(dx & 0xfff); -- cgit v1.2.1