Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e4e2d9dd
Commit
e4e2d9dd
authored
Dec 18, 2015
by
Daniel Black
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not build optimised power crc32 on bigendian
parent
953d5680
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
16 deletions
+30
-16
extra/CMakeLists.txt
extra/CMakeLists.txt
+8
-4
storage/innobase/CMakeLists.txt
storage/innobase/CMakeLists.txt
+8
-4
storage/innobase/ut/ut0crc32.cc
storage/innobase/ut/ut0crc32.cc
+3
-2
storage/xtradb/CMakeLists.txt
storage/xtradb/CMakeLists.txt
+8
-4
storage/xtradb/ut/ut0crc32.cc
storage/xtradb/ut/ut0crc32.cc
+3
-2
No files found.
extra/CMakeLists.txt
View file @
e4e2d9dd
...
...
@@ -73,17 +73,21 @@ IF(WITH_INNOBASE_STORAGE_ENGINE OR WITH_XTRADB_STORAGE_ENGINE)
# We use the InnoDB code directly in case the code changes.
ADD_DEFINITIONS
(
"-DUNIV_INNOCHECKSUM"
)
enable_language
(
ASM
)
SET
(
INNOBASE_SOURCES
../storage/innobase/buf/buf0checksum.cc
../storage/innobase/ut/ut0crc32.cc
../storage/innobase/ut/ut0ut.cc
../storage/innobase/ut/crc32_power8/crc32.S
../storage/innobase/ut/crc32_power8/crc32_wrapper.c
../storage/innobase/page/page0zip.cc
)
IF
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"ppc64le"
)
enable_language
(
ASM
)
LIST
(
APPEND INNOBASE_SOURCES
../storage/innobase/ut/crc32_power8/crc32.S
../storage/innobase/ut/crc32_power8/crc32_wrapper.c
)
ENDIF
()
MYSQL_ADD_EXECUTABLE
(
innochecksum innochecksum.cc
${
INNOBASE_SOURCES
}
)
TARGET_LINK_LIBRARIES
(
innochecksum mysys mysys_ssl
)
ADD_DEPENDENCIES
(
innochecksum GenError
)
...
...
storage/innobase/CMakeLists.txt
View file @
e4e2d9dd
...
...
@@ -362,8 +362,6 @@ IF(MSVC)
PROPERTIES COMPILE_FLAGS
"/wd4003"
)
ENDIF
()
enable_language
(
ASM
)
SET
(
INNOBASE_SOURCES
api/api0api.cc
api/api0misc.cc
...
...
@@ -478,8 +476,6 @@ SET(INNOBASE_SOURCES
ut/ut0bh.cc
ut/ut0byte.cc
ut/ut0crc32.cc
ut/crc32_power8/crc32.S
ut/crc32_power8/crc32_wrapper.c
ut/ut0dbg.cc
ut/ut0list.cc
ut/ut0mem.cc
...
...
@@ -490,6 +486,14 @@ SET(INNOBASE_SOURCES
ut/ut0wqueue.cc
ut/ut0timer.cc
)
IF
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"ppc64le"
)
enable_language
(
ASM
)
LIST
(
APPEND INNOBASE_SOURCES
ut/crc32_power8/crc32.S
ut/crc32_power8/crc32_wrapper.c
)
ENDIF
()
IF
(
WITH_INNODB
)
# Legacy option
SET
(
WITH_INNOBASE_STORAGE_ENGINE TRUE
)
...
...
storage/innobase/ut/ut0crc32.cc
View file @
e4e2d9dd
...
...
@@ -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__)
#if defined(__powerpc__)
&& !defined(WORDS_BIGENDIAN)
return
crc32_vpmsum
(
0
,
buf
,
len
);
#else
ut_error
;
...
...
@@ -338,7 +338,8 @@ ut_crc32_init()
#endif
/* defined(__GNUC__) && defined(__x86_64__) */
#if defined(__linux__) && defined(__powerpc__) && defined(AT_HWCAP2)
#if defined(__linux__) && defined(__powerpc__) && defined(AT_HWCAP2) \
&& !defined(WORDS_BIGENDIAN)
if
(
getauxval
(
AT_HWCAP2
)
&
PPC_FEATURE2_ARCH_2_07
)
ut_crc32_power8_enabled
=
true
;
#endif
/* defined(__linux__) && defined(__powerpc__) */
...
...
storage/xtradb/CMakeLists.txt
View file @
e4e2d9dd
...
...
@@ -345,8 +345,6 @@ IF (MSVC AND CMAKE_SIZEOF_VOID_P EQUAL 8)
PROPERTIES COMPILE_FLAGS -Od
)
ENDIF
()
enable_language
(
ASM
)
SET
(
INNOBASE_SOURCES
api/api0api.cc
api/api0misc.cc
...
...
@@ -464,8 +462,6 @@ SET(INNOBASE_SOURCES
ut/ut0bh.cc
ut/ut0byte.cc
ut/ut0crc32.cc
ut/crc32_power8/crc32.S
ut/crc32_power8/crc32_wrapper.c
ut/ut0dbg.cc
ut/ut0list.cc
ut/ut0mem.cc
...
...
@@ -476,6 +472,14 @@ SET(INNOBASE_SOURCES
ut/ut0wqueue.cc
ut/ut0timer.cc
)
IF
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"ppc64le"
)
enable_language
(
ASM
)
LIST
(
APPEND INNOBASE_SOURCES
ut/crc32_power8/crc32.S
ut/crc32_power8/crc32_wrapper.c
)
ENDIF
()
MYSQL_ADD_PLUGIN
(
xtradb
${
INNOBASE_SOURCES
}
STORAGE_ENGINE
DEFAULT RECOMPILE_FOR_EMBEDDED
LINK_LIBRARIES
${
ZLIB_LIBRARY
}
${
LINKER_SCRIPT
}
)
...
...
storage/xtradb/ut/ut0crc32.cc
View file @
e4e2d9dd
...
...
@@ -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__)
#if defined(__powerpc__)
&& !defined(WORDS_BIGENDIAN)
return
crc32_vpmsum
(
0
,
buf
,
len
);
#else
ut_error
;
...
...
@@ -338,7 +338,8 @@ ut_crc32_init()
#endif
/* defined(__GNUC__) && defined(__x86_64__) */
#if defined(__linux__) && defined(__powerpc__) && defined(AT_HWCAP2)
#if defined(__linux__) && defined(__powerpc__) && defined(AT_HWCAP2) \
&& !defined(WORDS_BIGENDIAN)
if
(
getauxval
(
AT_HWCAP2
)
&
PPC_FEATURE2_ARCH_2_07
)
ut_crc32_power8_enabled
=
true
;
#endif
/* defined(__linux__) && defined(__powerpc__) */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment