57 lines
2.1 KiB
Diff
57 lines
2.1 KiB
Diff
From 9ee82c476fcd5005d3ec1b6282464d9cc98d3726 Mon Sep 17 00:00:00 2001
|
|
From: q66 <daniel@octaforge.org>
|
|
Date: Thu, 11 Feb 2021 14:24:44 +0100
|
|
Subject: [PATCH] fix build on ppcle
|
|
|
|
---
|
|
storage/innobase/ut/ut0crc32.cc | 4 ++--
|
|
storage/xtradb/ut/ut0crc32.cc | 4 ++--
|
|
2 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git storage/innobase/ut/ut0crc32.cc storage/innobase/ut/ut0crc32.cc
|
|
index 4d2d311..897c23e 100644
|
|
--- storage/innobase/ut/ut0crc32.cc
|
|
+++ storage/innobase/ut/ut0crc32.cc
|
|
@@ -194,7 +194,7 @@ ut_crc32_power8(
|
|
const byte* buf, /*!< in: data over which to calculate CRC32 */
|
|
ulint len) /*!< in: data length */
|
|
{
|
|
-#if defined(__powerpc__) && !defined(WORDS_BIGENDIAN)
|
|
+#if defined(__powerpc64__) && !defined(WORDS_BIGENDIAN)
|
|
return crc32_vpmsum(0, buf, len);
|
|
#else
|
|
ut_error;
|
|
@@ -319,7 +319,7 @@ ut_crc32_init()
|
|
ut_crc32_sse2_enabled = (features_ecx >> 20) & 1;
|
|
#endif /* defined(__GNUC__) && defined(__x86_64__) */
|
|
|
|
-#if defined(__linux__) && defined(__powerpc__) && defined(AT_HWCAP2) \
|
|
+#if defined(__linux__) && defined(__powerpc64__) && defined(AT_HWCAP2) \
|
|
&& !defined(WORDS_BIGENDIAN)
|
|
if (getauxval(AT_HWCAP2) & PPC_FEATURE2_ARCH_2_07)
|
|
ut_crc32_power8_enabled = true;
|
|
diff --git storage/xtradb/ut/ut0crc32.cc storage/xtradb/ut/ut0crc32.cc
|
|
index 4ace913..e3526e4 100644
|
|
--- storage/xtradb/ut/ut0crc32.cc
|
|
+++ storage/xtradb/ut/ut0crc32.cc
|
|
@@ -194,7 +194,7 @@ ut_crc32_power8(
|
|
const byte* buf, /*!< in: data over which to calculate CRC32 */
|
|
ulint len) /*!< in: data length */
|
|
{
|
|
-#if defined(__powerpc__) && !defined(WORDS_BIGENDIAN)
|
|
+#if defined(__powerpc64__) && !defined(WORDS_BIGENDIAN)
|
|
return crc32_vpmsum(0, buf, len);
|
|
#else
|
|
ut_error;
|
|
@@ -319,7 +319,7 @@ ut_crc32_init()
|
|
ut_crc32_sse2_enabled = (features_ecx >> 20) & 1;
|
|
#endif /* defined(__GNUC__) && defined(__x86_64__) */
|
|
|
|
-#if defined(__linux__) && defined(__powerpc__) && defined(AT_HWCAP2) \
|
|
+#if defined(__linux__) && defined(__powerpc64__) && defined(AT_HWCAP2) \
|
|
&& !defined(WORDS_BIGENDIAN)
|
|
if (getauxval(AT_HWCAP2) & PPC_FEATURE2_ARCH_2_07)
|
|
ut_crc32_power8_enabled = true;
|
|
--
|
|
2.30.0
|
|
|