Skip to content

Commit

Permalink
Only define Fast_CRC32 on Linux (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiegley committed Feb 8, 2023
1 parent 51579ce commit 826434e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vendored/rocksdb-haskell/rocksdb-6.29.3/util/crc32c.cc
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ static inline void Slow_CRC32(uint64_t* l, uint8_t const **p) {
table0_[c >> 24];
}

#if defined(__linux__)
#if (!(defined(HAVE_POWER8) && defined(HAS_ALTIVEC))) && \
(!defined(HAVE_ARM64_CRC)) || \
defined(NO_THREEWAY_CRC32C)
Expand All @@ -372,6 +373,7 @@ static inline void Fast_CRC32(uint64_t* l, uint8_t const **p) {
#endif
}
#endif
#endif

template<void (*CRC32)(uint64_t*, uint8_t const**)>
uint32_t ExtendImpl(uint32_t crc, const char* buf, size_t size) {
Expand Down

0 comments on commit 826434e

Please sign in to comment.