summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/intel.c6
-rw-r--r--src/common/crc32c_intel_fast.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/intel.c b/src/arch/intel.c
index 0513da53c23..58668439a60 100644
--- a/src/arch/intel.c
+++ b/src/arch/intel.c
@@ -5,7 +5,7 @@ int ceph_arch_intel_sse42 = 0;
/* this probably isn't specific enough for x86_64? fix me someday */
-#ifdef __LP64__
+#ifdef __x86_64__
/* intel cpu? */
static void do_cpuid(unsigned int *eax, unsigned int *ebx, unsigned int *ecx,
@@ -35,7 +35,7 @@ int ceph_arch_intel_probe(void)
return 0;
}
-#else // __LP64__
+#else // __x86_64__
int ceph_arch_intel_probe(void)
{
@@ -43,4 +43,4 @@ int ceph_arch_intel_probe(void)
return 0;
}
-#endif // __LP64__
+#endif // __x86_64__
diff --git a/src/common/crc32c_intel_fast.h b/src/common/crc32c_intel_fast.h
index 7a394a0b82c..26a444f6061 100644
--- a/src/common/crc32c_intel_fast.h
+++ b/src/common/crc32c_intel_fast.h
@@ -8,7 +8,7 @@ extern "C" {
/* is the fast version compiled in */
extern int ceph_crc32c_intel_fast_exists(void);
-#ifdef __LP64__
+#ifdef __x86_64__
extern uint32_t ceph_crc32c_intel_fast(uint32_t crc, unsigned char const *buffer, unsigned len);