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
3 changes: 3 additions & 0 deletions include/xsimd/config/xsimd_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@
// Workaround for MSVC compiler
#ifdef _MSC_VER

// NB: MSVC does not define __SSEn__
#define XSIMD_WITH_SSE4_2 1

Comment on lines +213 to +215
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a bit rude to always enable SSE4_2 for MSVC.
Per my understanding, 64bit MSVC supports at least SSE2, (/arch:SSE2 is actually an invalid option), and looks there's no way to detect SSE3/4 at compiler time.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Obviously this change causes windows-clang ci job failures.
Comments welcomed.

#if XSIMD_WITH_AVX512
#define XSIMD_WITH_AVX2 1
#endif
Expand Down