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
dc3681e5
Commit
dc3681e5
authored
Dec 06, 2020
by
pkubaj
Committed by
Daniel Black
Jan 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement CPU feature checks for FreeBSD/powerpc64
Fixes build on powerpc64 and powerpc64le. Closes: #1710
parent
deadec4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
mysys/crc32/crc32c.cc
mysys/crc32/crc32c.cc
+15
-0
No files found.
mysys/crc32/crc32c.cc
View file @
dc3681e5
...
...
@@ -476,6 +476,21 @@ static int arch_ppc_probe(void) {
return
arch_ppc_crc32
;
}
#elif __FreeBSD_version >= 1200000
#include <machine/cpu.h>
#include <sys/auxv.h>
#include <sys/elf_common.h>
static
int
arch_ppc_probe
(
void
)
{
unsigned
long
cpufeatures
;
arch_ppc_crc32
=
0
;
#if defined(__powerpc64__)
elf_aux_info
(
AT_HWCAP2
,
&
cpufeatures
,
sizeof
(
cpufeatures
));
if
(
cpufeatures
&
PPC_FEATURE2_HAS_VEC_CRYPTO
)
arch_ppc_crc32
=
1
;
#endif
/* __powerpc64__ */
return
arch_ppc_crc32
;
}
#endif // __linux__
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