mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
ccbe6bb6fc
Add CRC32C code to mysys. The x86-64 implementation uses PCMULQDQ in addition to CRC32 instruction after Intel whitepaper, and is ported from rocksdb code. Optimized ARM and POWER CRC32 were already present in mysys.
19 lines
549 B
C
19 lines
549 B
C
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
|
// Copyright (c) 2017 International Business Machines Corp.
|
|
// All rights reserved.
|
|
// This source code is licensed under both the GPLv2 (found in the
|
|
// COPYING file in the root directory) and Apache 2.0 License
|
|
// (found in the LICENSE.Apache file in the root directory).
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern uint32_t crc32c_ppc(uint32_t crc, unsigned char const *buffer,
|
|
unsigned len);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|