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
463a8fc5
Commit
463a8fc5
authored
Jun 03, 2020
by
Daniel Black
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-22641: postfix - crc32{,c} fixups for ppc64
parent
701efbb2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
include/my_sys.h
include/my_sys.h
+1
-1
mysys/CMakeLists.txt
mysys/CMakeLists.txt
+1
-1
mysys/checksum.c
mysys/checksum.c
+1
-1
No files found.
include/my_sys.h
View file @
463a8fc5
...
...
@@ -923,7 +923,7 @@ extern int unpackfrm(uchar **, size_t *, const uchar *);
void
my_checksum_init
(
void
);
#ifdef HAVE_CRC32_VPMSUM
extern
my_checksum
(
ha_checksum
,
const
void
*
,
size_t
);
extern
ha_checksum
my_checksum
(
ha_checksum
,
const
void
*
,
size_t
);
#else
typedef
ha_checksum
(
*
my_crc32_t
)(
ha_checksum
,
const
void
*
,
size_t
);
extern
MYSQL_PLUGIN_IMPORT
my_crc32_t
my_checksum
;
...
...
mysys/CMakeLists.txt
View file @
463a8fc5
...
...
@@ -100,7 +100,7 @@ ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|AARCH64")
ENDIF
()
ENDIF
()
ELSEIF
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"ppc64"
)
SET
(
HAVE_CRC32_VPMSUM 1
)
SET
(
HAVE_CRC32_VPMSUM 1
PARENT_SCOPE
)
SET
(
MYSYS_SOURCES
${
MYSYS_SOURCES
}
$<TARGET_OBJECTS:crc32c> $<TARGET_OBJECTS:crc32ieee>
)
ADD_LIBRARY
(
crc32c OBJECT crc32/crc32_ppc64.c
)
...
...
mysys/checksum.c
View file @
463a8fc5
...
...
@@ -18,6 +18,7 @@
#include <my_sys.h>
#include <zlib.h>
#if !defined(HAVE_CRC32_VPMSUM)
/* TODO: remove this once zlib adds inherent support for hardware accelerated
crc32 for all architectures. */
static
unsigned
int
my_crc32_zlib
(
unsigned
int
crc
,
const
void
*
data
,
...
...
@@ -26,7 +27,6 @@ static unsigned int my_crc32_zlib(unsigned int crc, const void *data,
return
(
unsigned
int
)
crc32
(
crc
,
data
,
(
unsigned
int
)
len
);
}
#if !defined(HAVE_CRC32_VPMSUM)
my_crc32_t
my_checksum
=
my_crc32_zlib
;
#endif
...
...
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