Skip to content

Commit

Permalink
fix(lang.h): ifdef && syntax for avx and msc
Browse files Browse the repository at this point in the history
  • Loading branch information
dnut committed Nov 18, 2024
1 parent 72521e3 commit 7c32e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion port/lang.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ constexpr bool kMustFreeHeapAllocations = false;

// MSVC doesn't support the same defines that gcc and clang provide
// but does some like __AVX__. Here we can infer some features from others.
#ifdef __AVX__ && (_MSC_VER)
#if defined(__AVX__) && defined(_MSC_VER)
#define __SSE4_2__ 1
#define __PCLMUL__ 1
#endif // __AVX__
Expand Down

0 comments on commit 7c32e83

Please sign in to comment.