mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
23 lines
701 B
Diff
23 lines
701 B
Diff
diff --git a/bcache.c b/bcache.c
|
|
index 8f37445..79806d8 100644
|
|
--- a/bcache.c
|
|
+++ b/bcache.c
|
|
@@ -26,7 +26,7 @@
|
|
* x^7 + x^4 + x + 1
|
|
*/
|
|
|
|
-static const uint64_t crc_table[256] = {
|
|
+const uint64_t crc_table[256] = {
|
|
0x0000000000000000ULL, 0x42F0E1EBA9EA3693ULL, 0x85E1C3D753D46D26ULL,
|
|
0xC711223CFA3E5BB5ULL, 0x493366450E42ECDFULL, 0x0BC387AEA7A8DA4CULL,
|
|
0xCCD2A5925D9681F9ULL, 0x8E224479F47CB76AULL, 0x9266CC8A1C85D9BEULL,
|
|
@@ -115,7 +115,7 @@ static const uint64_t crc_table[256] = {
|
|
0x9AFCE626CE85B507ULL
|
|
};
|
|
|
|
-inline uint64_t crc64(const void *_data, size_t len)
|
|
+uint64_t crc64(const void *_data, size_t len)
|
|
{
|
|
uint64_t crc = 0xFFFFFFFFFFFFFFFFULL;
|
|
const unsigned char *data = _data;
|