Skip to content

Commit b5af1bc

Browse files
committed
Add x86_64 architecture detection to config.h
1 parent a60de54 commit b5af1bc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

mypyc/lib-rt/base64/config.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
#define BASE64_WITH_SSE41 0
88
#define HAVE_SSE41 BASE64_WITH_SSE41
99

10+
#if defined(__x86_64__) || defined(_M_X64)
1011
#define BASE64_WITH_SSE42 1
12+
#else
13+
#define BASE64_WITH_SSE42 0
14+
#endif
15+
1116
#define HAVE_SSE42 BASE64_WITH_SSE42
1217

1318
#define BASE64_WITH_AVX 0

0 commit comments

Comments
 (0)