Skip to content

Commit 47d6ce0

Browse files
mekhontsevsaghul
authored andcommitted
Support for AVX MSVC builds
To have <immintrin.h> we need to check the __SSE2__ and __AVX__ macros.
1 parent ee364eb commit 47d6ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xsum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868
/* INCLUDE INTEL INTRINSICS IF USED AND AVAILABLE. */
6969

70-
#if USE_SIMD && __SSE2__
70+
#if USE_SIMD && (__SSE2__ || __AVX__)
7171
# include <immintrin.h>
7272
#endif
7373

0 commit comments

Comments
 (0)