mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-21 23:58:51 -05:00
50ee0f5be8
Based on feedback from interested parties
20 lines
447 B
C
20 lines
447 B
C
// SPDX-FileCopyrightText: 2024 Redict Contributors
|
|
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
|
|
//
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
// SPDX-License-Identifier: LGPL-3.0-only
|
|
|
|
#ifndef CRC64_H
|
|
#define CRC64_H
|
|
|
|
#include <stdint.h>
|
|
|
|
void crc64_init(void);
|
|
uint64_t crc64(uint64_t crc, const unsigned char *s, uint64_t l);
|
|
|
|
#ifdef REDICT_TEST
|
|
int crc64Test(int argc, char *argv[], int flags);
|
|
#endif
|
|
|
|
#endif
|