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
60f09cd2
Commit
60f09cd2
authored
Dec 16, 2015
by
Daniel Black
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-9288: portablity for compling on non-power platforms
Also removed surperflous stdio include.
parent
2538c7cf
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
2 deletions
+36
-2
storage/innobase/ut/crc32_power8/crc32.S
storage/innobase/ut/crc32_power8/crc32.S
+5
-0
storage/innobase/ut/crc32_power8/crc32_constants.h
storage/innobase/ut/crc32_power8/crc32_constants.h
+10
-0
storage/innobase/ut/crc32_power8/crc32_wrapper.c
storage/innobase/ut/crc32_power8/crc32_wrapper.c
+3
-1
storage/xtradb/ut/crc32_power8/crc32.S
storage/xtradb/ut/crc32_power8/crc32.S
+5
-0
storage/xtradb/ut/crc32_power8/crc32_constants.h
storage/xtradb/ut/crc32_power8/crc32_constants.h
+10
-0
storage/xtradb/ut/crc32_power8/crc32_wrapper.c
storage/xtradb/ut/crc32_power8/crc32_wrapper.c
+3
-1
No files found.
storage/innobase/ut/crc32_power8/crc32.S
View file @
60f09cd2
...
@@ -23,6 +23,9 @@
...
@@ -23,6 +23,9 @@
*
as
published
by
the
Free
Software
Foundation
; either version
*
as
published
by
the
Free
Software
Foundation
; either version
*
2
of
the
License
,
or
(
at
your
option
)
any
later
version
.
*
2
of
the
License
,
or
(
at
your
option
)
any
later
version
.
*/
*/
#ifdef __powerpc__
#include <ppc-asm.h>
#include <ppc-asm.h>
#include "ppc-opcode.h"
#include "ppc-opcode.h"
...
@@ -737,3 +740,5 @@ FUNC_START(__crc32_vpmsum)
...
@@ -737,3 +740,5 @@ FUNC_START(__crc32_vpmsum)
mr
r3
,
r10
mr
r3
,
r10
blr
blr
FUNC_END
(
__crc32_vpmsum
)
FUNC_END
(
__crc32_vpmsum
)
#endif /* __powerpc__ */
storage/innobase/ut/crc32_power8/crc32_constants.h
View file @
60f09cd2
#ifndef CRC32_CONSTANTS_H
#define CRC32_CONSTANTS_H
#ifdef __powerpc__
#define CRC 0x1edc6f41
#define CRC 0x1edc6f41
#define CRC_XOR
#define CRC_XOR
#define REFLECT
#define REFLECT
...
@@ -899,3 +905,7 @@ static const unsigned int crc_table[] = {
...
@@ -899,3 +905,7 @@ static const unsigned int crc_table[] = {
/* 33 bit reflected Barrett constant n */
/* 33 bit reflected Barrett constant n */
.
octa
0x00000000000000000000000105ec76f1
.
octa
0x00000000000000000000000105ec76f1
#endif
#endif
#endif
/* __powerpc__ */
#endif
storage/innobase/ut/crc32_power8/crc32_wrapper.c
View file @
60f09cd2
#i
nclude <stdio.h>
#i
fdef __powerpc__
#define CRC_TABLE
#define CRC_TABLE
#include "crc32_constants.h"
#include "crc32_constants.h"
...
@@ -64,3 +64,5 @@ unsigned int crc32_vpmsum(unsigned int crc, unsigned char *p,
...
@@ -64,3 +64,5 @@ unsigned int crc32_vpmsum(unsigned int crc, unsigned char *p,
return
crc
;
return
crc
;
}
}
#endif
/* __powerpc__ */
storage/xtradb/ut/crc32_power8/crc32.S
View file @
60f09cd2
...
@@ -23,6 +23,9 @@
...
@@ -23,6 +23,9 @@
*
as
published
by
the
Free
Software
Foundation
; either version
*
as
published
by
the
Free
Software
Foundation
; either version
*
2
of
the
License
,
or
(
at
your
option
)
any
later
version
.
*
2
of
the
License
,
or
(
at
your
option
)
any
later
version
.
*/
*/
#ifdef __powerpc__
#include <ppc-asm.h>
#include <ppc-asm.h>
#include "ppc-opcode.h"
#include "ppc-opcode.h"
...
@@ -737,3 +740,5 @@ FUNC_START(__crc32_vpmsum)
...
@@ -737,3 +740,5 @@ FUNC_START(__crc32_vpmsum)
mr
r3
,
r10
mr
r3
,
r10
blr
blr
FUNC_END
(
__crc32_vpmsum
)
FUNC_END
(
__crc32_vpmsum
)
#endif /* __powerpc__ */
storage/xtradb/ut/crc32_power8/crc32_constants.h
View file @
60f09cd2
#ifndef CRC32_CONSTANTS_H
#define CRC32_CONSTANTS_H
#ifdef __powerpc__
#define CRC 0x1edc6f41
#define CRC 0x1edc6f41
#define CRC_XOR
#define CRC_XOR
#define REFLECT
#define REFLECT
...
@@ -899,3 +905,7 @@ static const unsigned int crc_table[] = {
...
@@ -899,3 +905,7 @@ static const unsigned int crc_table[] = {
/* 33 bit reflected Barrett constant n */
/* 33 bit reflected Barrett constant n */
.
octa
0x00000000000000000000000105ec76f1
.
octa
0x00000000000000000000000105ec76f1
#endif
#endif
#endif
/* __powerpc__ */
#endif
storage/xtradb/ut/crc32_power8/crc32_wrapper.c
View file @
60f09cd2
#i
nclude <stdio.h>
#i
fdef __powerpc__
#define CRC_TABLE
#define CRC_TABLE
#include "crc32_constants.h"
#include "crc32_constants.h"
...
@@ -64,3 +64,5 @@ unsigned int crc32_vpmsum(unsigned int crc, unsigned char *p,
...
@@ -64,3 +64,5 @@ unsigned int crc32_vpmsum(unsigned int crc, unsigned char *p,
return
crc
;
return
crc
;
}
}
#endif
/* __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