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
60d1461a
Commit
60d1461a
authored
Feb 26, 2021
by
Etienne Guesnet
Committed by
Daniel Black
Mar 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CRC32 on AIX
parent
9c7bd4f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
mysys/CMakeLists.txt
mysys/CMakeLists.txt
+1
-1
mysys/crc32/crc32c.cc
mysys/crc32/crc32c.cc
+11
-0
No files found.
mysys/CMakeLists.txt
View file @
60d1461a
...
@@ -129,7 +129,7 @@ ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|AARCH64")
...
@@ -129,7 +129,7 @@ ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|AARCH64")
COMPILE_FLAGS
"-march=armv8-a+crc+crypto"
)
COMPILE_FLAGS
"-march=armv8-a+crc+crypto"
)
ENDIF
()
ENDIF
()
ENDIF
()
ENDIF
()
ELSEIF
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"ppc64|powerpc64"
)
ELSEIF
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"ppc64|powerpc64"
OR CMAKE_SYSTEM_NAME MATCHES AIX
)
SET
(
MYSYS_SOURCES
${
MYSYS_SOURCES
}
crc32/crc32_ppc64.c crc32/crc32c_ppc.c
)
SET
(
MYSYS_SOURCES
${
MYSYS_SOURCES
}
crc32/crc32_ppc64.c crc32/crc32c_ppc.c
)
SET_SOURCE_FILES_PROPERTIES
(
crc32/crc32_ppc64.c crc32/crc32c_ppc.c PROPERTIES
SET_SOURCE_FILES_PROPERTIES
(
crc32/crc32_ppc64.c crc32/crc32c_ppc.c PROPERTIES
COMPILE_FLAGS
"
${
COMPILE_FLAGS
}
-maltivec -mvsx -mpower8-vector -mcrypto -mpower8-vector"
)
COMPILE_FLAGS
"
${
COMPILE_FLAGS
}
-maltivec -mvsx -mpower8-vector -mcrypto -mpower8-vector"
)
...
...
mysys/crc32/crc32c.cc
View file @
60d1461a
...
@@ -491,6 +491,17 @@ static int arch_ppc_probe(void) {
...
@@ -491,6 +491,17 @@ static int arch_ppc_probe(void) {
return
arch_ppc_crc32
;
return
arch_ppc_crc32
;
}
}
#elif _AIX
static
int
arch_ppc_probe
(
void
)
{
arch_ppc_crc32
=
0
;
#if defined(__powerpc64__)
// AIX 7.1+ has vector crypto features on all POWER 8+
arch_ppc_crc32
=
1
;
#endif
/* __powerpc64__ */
return
arch_ppc_crc32
;
}
#endif // __linux__
#endif // __linux__
static
bool
isAltiVec
()
{
static
bool
isAltiVec
()
{
...
...
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