Skip to content

Commit f384f27

Browse files
committed
test build for python/mypy#20342
1 parent 08670ac commit f384f27

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

lib-rt/base64/config.h

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@
88
#define HAVE_AVX 1
99
#define HAVE_AVX2 1
1010
#define HAVE_AVX512 0
11+
#elif (defined(__APPLE__) && defined(__aarch64__))
12+
#define HAVE_NEON64 1
13+
#elif (defined(__wasm__) && defined(__wasm_simd128__))
14+
#include "emscripten/version.h"
15+
#if __EMSCRIPTEN_major__ == 3
16+
#define HAVE_NEON32 1
17+
#elif __EMSCRIPTEN_major__ > 3
18+
#define HAVE_NEON64 1
19+
#endif
1120
#endif
1221

13-
#define BASE64_WITH_NEON32 0
14-
#define HAVE_NEON32 BASE64_WITH_NEON32
15-
16-
#if (defined(__APPLE__) && defined(__aarch64__)) || (defined(__wasm__) && defined(__wasm_simd128__))
17-
#define BASE64_WITH_NEON64 1
18-
#else
19-
#define BASE64_WITH_NEON64 0
20-
#endif
21-
22-
#define HAVE_NEON64 BASE64_WITH_NEON64
23-
2422
#endif // BASE64_CONFIG_H

0 commit comments

Comments
 (0)