mirror of
https://github.com/MariaDB/server.git
synced 2025-08-09 22:24:09 +03:00
MDEV-9288: portablity for compling on non-power platforms
Also removed surperflous stdio include.
This commit is contained in:
@@ -23,6 +23,9 @@
|
||||
* as published by the Free Software Foundation; either version
|
||||
* 2 of the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifdef __powerpc__
|
||||
|
||||
#include <ppc-asm.h>
|
||||
#include "ppc-opcode.h"
|
||||
|
||||
@@ -737,3 +740,5 @@ FUNC_START(__crc32_vpmsum)
|
||||
mr r3,r10
|
||||
blr
|
||||
FUNC_END(__crc32_vpmsum)
|
||||
|
||||
#endif /* __powerpc__ */
|
||||
|
@@ -1,3 +1,9 @@
|
||||
#ifndef CRC32_CONSTANTS_H
|
||||
#define CRC32_CONSTANTS_H
|
||||
|
||||
#ifdef __powerpc__
|
||||
|
||||
|
||||
#define CRC 0x1edc6f41
|
||||
#define CRC_XOR
|
||||
#define REFLECT
|
||||
@@ -899,3 +905,7 @@ static const unsigned int crc_table[] = {
|
||||
/* 33 bit reflected Barrett constant n */
|
||||
.octa 0x00000000000000000000000105ec76f1
|
||||
#endif
|
||||
|
||||
#endif /* __powerpc__ */
|
||||
|
||||
#endif
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include <stdio.h>
|
||||
#ifdef __powerpc__
|
||||
|
||||
#define CRC_TABLE
|
||||
#include "crc32_constants.h"
|
||||
@@ -64,3 +64,5 @@ out:
|
||||
|
||||
return crc;
|
||||
}
|
||||
|
||||
#endif /* __powerpc__ */
|
||||
|
@@ -23,6 +23,9 @@
|
||||
* as published by the Free Software Foundation; either version
|
||||
* 2 of the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifdef __powerpc__
|
||||
|
||||
#include <ppc-asm.h>
|
||||
#include "ppc-opcode.h"
|
||||
|
||||
@@ -737,3 +740,5 @@ FUNC_START(__crc32_vpmsum)
|
||||
mr r3,r10
|
||||
blr
|
||||
FUNC_END(__crc32_vpmsum)
|
||||
|
||||
#endif /* __powerpc__ */
|
||||
|
@@ -1,3 +1,9 @@
|
||||
#ifndef CRC32_CONSTANTS_H
|
||||
#define CRC32_CONSTANTS_H
|
||||
|
||||
#ifdef __powerpc__
|
||||
|
||||
|
||||
#define CRC 0x1edc6f41
|
||||
#define CRC_XOR
|
||||
#define REFLECT
|
||||
@@ -899,3 +905,7 @@ static const unsigned int crc_table[] = {
|
||||
/* 33 bit reflected Barrett constant n */
|
||||
.octa 0x00000000000000000000000105ec76f1
|
||||
#endif
|
||||
|
||||
#endif /* __powerpc__ */
|
||||
|
||||
#endif
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include <stdio.h>
|
||||
#ifdef __powerpc__
|
||||
|
||||
#define CRC_TABLE
|
||||
#include "crc32_constants.h"
|
||||
@@ -64,3 +64,5 @@ out:
|
||||
|
||||
return crc;
|
||||
}
|
||||
|
||||
#endif /* __powerpc__ */
|
||||
|
Reference in New Issue
Block a user