]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
arch/intel: use intel probe instructions for x86_64 only
authorSage Weil <sage@inktank.com>
Tue, 24 Sep 2013 17:17:37 +0000 (10:17 -0700)
committerSage Weil <sage@inktank.com>
Tue, 24 Sep 2013 17:17:37 +0000 (10:17 -0700)
Not LP64, which includes ppc64 and clearly does not build.

Fixes: #6283
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
src/arch/intel.c
src/common/crc32c_intel_fast.h

index 0513da53c237a0aac7f9476f989e4e0cb394bb2f..58668439a607b5735c31581f3b01e5f3e8b6ea1a 100644 (file)
@@ -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__
index 7a394a0b82cebc39c98b40b7e5157ab0ce9d58c5..26a444f60615d1ae76299f476910b113a3d5fda2 100644 (file)
@@ -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);