diff options
author | guangli-dai <gdai@fb.com> | 2022-12-14 17:23:41 -0800 |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2023-03-23 11:16:19 -0700 |
commit | 31e01a98f159926493158cde6453cde55f21c42b (patch) | |
tree | 769ab1bdf31aae14d1009d74ecc4a79ba023c331 /include/jemalloc/internal/jemalloc_internal_inlines_a.h | |
parent | 8b64be34414e92fcbcdbaf5b81db6d26289667b5 (diff) | |
download | jemalloc-31e01a98f159926493158cde6453cde55f21c42b.tar.gz |
Fix the rdtscp detection bug and add prefix for the macro.
Diffstat (limited to 'include/jemalloc/internal/jemalloc_internal_inlines_a.h')
-rw-r--r-- | include/jemalloc/internal/jemalloc_internal_inlines_a.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |