Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cpp/src/arrow/util/sse-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,12 @@ static inline uint32_t SSE4_crc32_u32(uint32_t crc, uint32_t v) {
}

static inline uint32_t SSE4_crc32_u64(uint32_t crc, uint64_t v) {
#if defined(__MINGW32__) && !defined(__MINGW64__)
DCHECK(false) << "MinGW-w64 32-bit doesn't support _mm_crc32_u64()";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you run the tests or are you only concerned about building? This is pretty much not the right solution.

Copy link
Member Author

@kou kou Jan 25, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just for fixing build error.
I'm working on test support on MSYS2 in separated issues.
I'll be back again after we can run tests on MSYS2.

return 0;
#else
return static_cast<uint32_t>(_mm_crc32_u64(crc, v));
#endif
}

#else // without SSE 4.2.
Expand Down