summaryrefslogtreecommitdiff
path: root/mysys/crc32
diff options
context:
space:
mode:
Diffstat (limited to 'mysys/crc32')
-rw-r--r--mysys/crc32/crc32c.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/mysys/crc32/crc32c.cc b/mysys/crc32/crc32c.cc
index 4eaceb8c438..c0f8c518691 100644
--- a/mysys/crc32/crc32c.cc
+++ b/mysys/crc32/crc32c.cc
@@ -26,11 +26,6 @@ static inline uint32_t DecodeFixed32(const char *ptr)
return uint4korr(ptr);
}
-static inline uint64_t DecodeFixed64(const char *ptr)
-{
- return uint8korr(ptr);
-}
-
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h>
@@ -343,6 +338,12 @@ static inline uint32_t LE_LOAD32(const uint8_t *p) {
}
#if defined(HAVE_SSE42) && (SIZEOF_SIZE_T == 8)
+
+static inline uint64_t DecodeFixed64(const char *ptr)
+{
+ return uint8korr(ptr);
+}
+
static inline uint64_t LE_LOAD64(const uint8_t *p) {
return DecodeFixed64(reinterpret_cast<const char*>(p));
}
@@ -364,7 +365,7 @@ static inline void Slow_CRC32(uint64_t* l, uint8_t const **p) {
table0_[c >> 24];
}
-static inline void Fast_CRC32(uint64_t* l, uint8_t const **p) {
+__attribute__((unused)) static inline void Fast_CRC32(uint64_t* l, uint8_t const **p) {
#ifndef HAVE_SSE42
Slow_CRC32(l, p);
#elif (SIZEOF_SIZE_T == 8)